13

I want postfix to stop sending non-delivery notifications to my local account, here is example from my log

17:47:08  A727B62C6F61: message-id=<20121124174708.A727B62C6F61@mail.***********>
17:47:08  F151362C6F5F: sender non-delivery notification: A727B62C6F61
17:47:08  A727B62C6F61: from=<>, size=4676, nrcpt=1 (queue active)
17:47:08  F151362C6F5F: removed
17:47:08  warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
17:47:08  A727B62C6F61: to=<**********>, relay=local, delay=0.01, delays=0/0.01/0/0, ...

How can I configure this in my main.cf?

David MZ
  • 249
  • 1
  • 3
  • 7

3 Answers3

13

The answer:

master.cf

bounce    unix  -       -       n       -       0       bounce

should be changed to:

master.cf

bounce    unix  -       -       n       -       0       discard
Michael Hampton
  • 252,907
tesst
  • 151
5

To control where bounce notifications are sent, and when, look at the following settings:

bounce_notice_recipient
notify_classes

Both are described here: http://www.postfix.org/bounce.8.html

adaptr
  • 16,746
4

The postconf docs list 8 types of notify classes: bounce, 2bounce, data, delay, policy, protocol, resource and software. I suggest the following:

notify_classes = 2bounce, data, delay, resource, software

You get notifications about bounced undeliverable mail, problems of postfix (data, resource and software) and mail that couldn't be delivered for technical reasons (can indicate a problem on your side, delay).

bounce and policy would notify you about rejected/bounced mail, and protocol about spammers or alike (they violate SMTP protocol)

sebix
  • 4,432