0

When a client contacts me to report a recipient is receiving a bounced email "Undelivered Mail Returned to Sender", I ask them to kindly get the recipient to forward me the bounced email report so I can see the error.

Is there any way to get Postfix to copy me in when it sends the "Undelivered Mail Returned to Sender" email from "MAILER-DAEMON@"? It will save asking the client to forward me the email each time.

ckhatton
  • 101

1 Answers1

0

Follow these steps to get a copy of the bounced email report. The client(s) will still receive the report.

  1. Edit the Postfix configuration file to add bounce reports:
    1. nano /etc/postfix/main.cf (add sudo if you are not root) opens the file in the Nano editor.
    2. Add the line notify_classes = bounce, resource, software. Default classes for this configuration parameter are resource and software. Set bounce_notice_recipient configuration parameter if you would like the notifications to be sent to a different address than postmaster.
    3. Press ctrl+x, y, and then return key (to save the file).
  2. Execute service postfix reload (add sudo if you are not root) for the new configuration parameter(s) to be picked up by Postfix.

(source)


Note:

You should not be using root as your daily login account. The root account should only be used for emergencies, such as rescueing an account. If you use root as your daily login account, you run the risk of breaking the account from being able to log into it. Create a sudo user and prevent SSH access to root.

ckhatton
  • 101