Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Thanks!

share|improve this question

2 Answers 2

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

share|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

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

notify_classes = resource, software, bounce
share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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