I am testing postfix on a local network with sasl and tls.
In the last step the mail server would send mail outside.
Actually I don’t want to send mail outside.
During my test with sasl, I succeed to send a mail outside but I was expecting that my mail was rejected.
Currently I have put a dummy address in the relayhost parameter
relayhost = [192.168.130.250]
I would like to know if there is any parameter that I can set to be sure that no mails can go out.
I shall remove this parameter ( or change the value ) when I will be ready to send mail outside.
# for relaying domain
# user@domain.com OK
non_existent_user@somedomain.com REJECT
good_existent_user@somedomain.com OK
somedomain.com REJECT
Then the mail is sent.
Nota : mydomain.com does not exists. It is local.
The mx record is set by the router using dnsmasq config.
I have found a site where you got an arbitrary email address wher to send mails.
Mails are destroyed 60 mn later.
This way I can test if outbound mails are delivred or not.
I want to be sure during my tests that no mail goes outside until I use a isp as relay.