Nevermind, there actually was a non delivery notification but I didn’t see
it !

 

Best regards,


Cédric Laruelle

 

De : owner-postfix-us...@postfix.org
[mailto:owner-postfix-us...@postfix.org] De la part de Cédric Laruelle
Envoyé : mardi 27 janvier 2009 14:06
À : postfix-users@postfix.org
Objet : Problem with non-delivery notifications and
smtpd_recipient_restrictions

 

Hi,

 

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 ?

 

Best regards,

 

Cédric Laruelle

Reply via email to