When my site tries to send an email to a bad domain, my postfix server sends an "Undelivered Mail Returned to Sender" notification to the sending account.

How can I instead send these notifications to a single email account, regardless of the sender?

If this is not possible, is there a way to disable these notifications?



The notify_classes directive is probably what you're looking for.

notify_classes = resource, software, bounce
| improve this answer | |
  • So if I use the above config and also set bounce_notice_recipient to admin@example.com, will the notifications go to just admin@example.com or will they also be sent to the Sender? – Vladimir Giverts Dec 5 '09 at 1:53
  • 1
    So I just tested this and the postmaster gets a copy of the headers of "Undelivered Mail..." message and the sender gets the entire thing. What I would like is for the postmaster to get the Undelivered message and for the sender to get nothing. – Vladimir Giverts Dec 6 '09 at 17:28
  • @VladimirGiverts did soft_bounce work for you? – CMag Sep 13 '12 at 16:24

So I managed to disable the notifications by setting "soft_bounce = yes".

| improve this answer | |
  • 2
    soft_bounce will merely cause the message to stay in the queue until it times out. – Devdas Dec 13 '09 at 20:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.