On Fri, Mar 06, 2009 at 11:33:34AM -0600, Noel Jones wrote: > Victor Duchovni wrote: >> On Fri, Mar 06, 2009 at 10:11:24AM -0600, Noel Jones wrote: >>> /^Received: .* (myhostname \(Postfix\) with ESTMPS?A .*)$/ >>> REPLACE X-Submitted to $1 >>> That way you at least keep the original QUEUEID. >> Probably want a ":" in there to make it a valid header: >> header_checks.pcre: >> if /^Received:/ >> /\n\tby (smtp\.example\.com \(Postfix\) with ESTMPS?A id \w+)/ >> REPLACE X-Submitted: to $1 >> endif > > Yes, thanks.
Note, there may be a spam-score penalty to sending out mail with no Received headers at all. If the MSA sends directly to the outside without going through additional SMTP servers (post-filter, ...), it is probably best to replace just the Received: header IP address, with an RFC-1918 address and leav the received header intact. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.