3

I have searched for this question already and found this question but the basic question was never answered.

How do I completely disable Postfix from sending undeliverable notifications? I want to do this temporarily because we are in the process of migrating mail servers and can't properly check to see if the recipient is valid at the moment.

bistromath
  • 89
  • 1
  • 7

1 Answers1

1

Found the answer here.

How do I configure Postfix to never send NDR responses? For example, if someone tries to send an email to a user that doesn't exist, I don't want my server to respond and let them know that it doesn't exist. I just simply don't want it to respond.

It is strongly suggested that you do not disable NDR responses on any mail server. However, it is possible to disable NDR responses in Postfix if you would like to.

Open your Postfix master.cf file and find the following line:

bounce unix - - n - 0 bounce

Change it to this:

bounce unix - - n - 0 discard

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:

Dec 15 16:07:40 websrv1 postfix/discard[15220]: warning: unexpected attribute nrequest from bounce socket (expecting: flags)

Dec 15 16:07:40 websrv1 postfix/discard[15220]: warning: >deliver_request_get: error receiving common attributes

bistromath
  • 89
  • 1
  • 7
  • You may also want to see if [this](http://serverfault.com/questions/792442/postfix-reject-not-bounce-unknown-virtual-aliases/792510#792510) helps at all, or even meets your needs. – Aaron Jan 04 '17 at 18:32