LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I want to save emails that postfix is removing due to a 550 response (https://www.linuxquestions.org/questions/linux-software-2/i-want-to-save-emails-that-postfix-is-removing-due-to-a-550-response-4175507626/)

rubanek 06-10-2014 12:56 PM

I want to save emails that postfix is removing due to a 550 response
 
On of my postfix servers is getting a lot of 550 responses from it's downstream relay and I want to see the contents of the email that is being sent to help me find its origin.

Code:

Jun 10 13:48:22 members postfix/cleanup[2161]: BF7312382A: message-id=<20140610174822.BF7312382A@members.aws>
Jun 10 13:48:22 members postfix/qmgr[6184]: BF7312382A: from=<donotreply@example.com>, size=44121, nrcpt=1 (queue active)
Jun 10 13:48:22 members postfix/bounce[2164]: B84452382D: sender non-delivery notification: BF7312382A
Jun 10 13:48:22 members postfix/smtp[2162]: BF7312382A: to=<donotreply@example.com>, relay=clavin.aws[10.112.240.101]:25, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (host clavin.aws[10.112.240.101] said: 550 5.1.1 <donotreply@example.com>: Recipient address rejected: User unknown in local recipient table (in reply to RCPT TO command))
Jun 10 13:48:22 members postfix/bounce[2164]: BF7312382A: sender non-delivery notification: C45122382D
Jun 10 13:48:22 members postfix/qmgr[6184]: BF7312382A: removed

I want to retain email message C45122382D within the mail queue so I can look at it and possible discern its origin. How can I tell postfix not to remove bounced emails but rather defer them so I can review them?

Thanks.

rubanek 06-10-2014 01:02 PM

Nevermind. Solved my own question (rather quickly too). Sorry for gumming up the forums.

The answer was to set the soft_bounce directive within the main.cf configuration file:

soft_bounce = yes


All times are GMT -5. The time now is 02:57 AM.