On 1/27/09 7:05 AM, Cédric Laruelle at laruel...@aiderdonner.com wrote: > I want to prevent the local users to send emails to a certain domain, let¹s > 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 > x...@baddomain.com 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 ?
Despite your later post saying it is working, I can't see how. Assuming your local users are on machines that are part of mynetworks or they are using SASL authentication, permit_mynetworks or permit_sasl_authenticated will OK the message. And if they're not, then reject_unauth_destination will reject it. Either way, you never get down to check_recipient_access. -- Larry Stone lston...@stonejongleux.com http://www.stonejongleux.com/