On Fri, Mar 06, 2009 at 01:16:07PM -0600, Nate Carlson wrote: > On Fri, 6 Mar 2009, Noel Jones wrote: >> Victor Duchovni wrote: >>> 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. > > I extrapolated from this, and got something that works perfectly - thanks > so much! > > if /^Received:/ > /.*by (hostname \(Postfix\) with ESMTPS?A).*/ > REPLACE X-Submitted: to $1 > endif
Replace the ".*" with "\n\t" or "\012\011" if not PCRE and you are losing the queue-id, which is very useful for later trouble-shoots. -- 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.