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.

The situation is that we have a number of guests, say 80, sending through a central mail infrastructure out to the web. The way the network is setup the mail server cannot necessarily initiate connections back to each of the senders.

I understand I can disable bounce messages completely by turning disabling the bounce daemon but I'm concerned if I do this I will miss system-problems. What would be good if all bounces went to postmaster and I could look for them there. There is no reason to ever try to contact the senders back.

Any ideas how to achieve this? Googling mentioned NOTIFY=NEVER and some stuff about smtpd_command_filter although what I'm doing feels like it should be simpler than that. I can get the bounce messages to postmaster using notify_classes but I think that relies upon the bounce daemon.

I'm running CentOS 5.5 and postfix 2.3.3-2.1.el5_2

EDIT:

soft_bounce=yes seems to be another way to disable bounces, but this is not exactly what I want

share|improve this question

2 Answers 2

Using canonical_maps to rewrite all local, Postfix-generated addresses should allow you to set the envelope address (different from the sender) and have the bounces returned to a central postmaster address. Maybe http://s19n.net/articles/2011/postfix_nullclient.html can give some hints:

/etc/postfix/main.cf
myhostname = host.example.com
canonical_maps = hash:/etc/postfix/canonical

/etc/postfix/canonical
@host.example.com   alert@example.com
share|improve this answer

In main.cf set notify_classes=bounce and bounce_notice_recipient=postmaster (which should be the default. And then postmaster gets the copies of every bounce message.

You MUST NOT disable bounces. They are needed to notify the sender! And as there has to be a sender for a mail, this particular sender will be informed.

What do you mean by "cannot necessarily initiate connections back to each of the senders"? The server never initiates a "connection" to the sender. It delivers a bounce into the inbox of the sender. And don't tell me that you allow people to send mails without having an account at the mail system.

share|improve this answer
    
You should also consider enabling resource and software problem notification: notify_classes = resource, software, bounce (see: hsc.fr/ressources/cours/postfix/doc/basic.html) –  SailAvid Jul 1 '13 at 16:21

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.