Hi,
I want to prevent the local users to send emails to a certain domain, lets
say baddomain.com
In order to do that, I set
smtpd_recipient_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
check_recipient_access hash:/etc/postfix/blacklist
In the blacklist file, I put :
baddomain.com REJECT Should not send mail to baddomain.com
Then I did postmap /etc/postfix/blacklist and restarted postfix.
Now it is almost working as I would like, meaning that all mails sent to
[email protected] get rejected. However, the sender does not receive any
non-delivery notification. Can I change that in order the user to know his
mail was rejected ?
Best regards,
Cédric Laruelle