Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 1 down vote accepted

Add bounce to your notify_classes directive in 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.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.