In main.cf currently I have
notify_classes = delay, policy, protocol, resource, software
bounce_notice_recipient =
2bounce_notice_recipient =
Followed another thread, and it recommends setting bounce to "discard", of which I have done.
bounce unix - - n - 0 discard
I am still getting a notice email to postmaster for each bounced spam.
What else do I have to set?
In main.cf set
notify_classes=bounce
andbounce_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.
Open your Postfix master.cf file and find the following line:
Change it to this:
Next, restart Postfix.
Please be advised that you will see an error in your logs whenever Postfix runs the discard handler instead of the bounce handler. The errors will look similar to this: