On 11/25/2014 10:51 AM, John Oliver wrote: > I'm looking for a way to remove anything from the original email from > bounces. Yes, I know this is a goofy use case :-) I found a useful > article about customizing bounce messages which I'll look into, but I > didn't see anything in it about making sure the bounce contains nothing > but the bounce message and maybe specific elements from the original > like destination, time/date, etc. >
http://www.postfix.org/postconf.5.html#bounce_size_limit You can set "bounce_size_limit = 0" to return the message headers only. This will insure there is nothing of the body left. There is no option to restrict which headers are returned. Bounces should be a rare occurrence. Mail to unknown recipients or mail with unwanted content should be rejected at the gateway, never accepted and later bounced. Let us know if you need help getting that configured correctly. -- Noel Jones