0

I'd like to save the details (headers and contents) of all messages that are rejected when sent out from our server, so I can figure out why they might have been rejected.

Is there any way for postfix to save a message somewhere when it has been rejected?

Forwarding a copy to the root mail account would be fine.

1 Answer 1

1

Add bounce to your notify_classes directive in main.cf. This will send a copy of all of the message headers to postmaster. (For privacy reasons, Postfix truncates the message body on the copy sent to postmaster.)

1
  • 1
    sorry to revive this but is there a way to stop Postfix from truncating the message body when sending a copy to postmaster?
    – smaili
    Jul 22, 2022 at 3:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .