On Tue, Feb 24, 2009 at 09:43:16AM -0800, Corey Chandler wrote:

> I have a regexp header_checks rule as follows:
>
> /^Received: from (.* \([-._[:alnum:]]+ 
> \[[.[:digit:]]{7,15}\]\)).*\(Authenticated sender: ([^)]+)\).*by 
> (alcatraz\.sequestered\.net) \(([^)]+)\) with (E?SMTP) id 
> ([A-F[:digit:]]+)(.*)/
>  REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated 
> sender: $2) with $5 id $6 $7
>
> The header it's failing to replace:
>
> Received: from Singularity.local 
> (pool-71-106-82-23.lsanca.dsl-w.verizon.net
>    [71.106.82.23])
>    (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
>    (No client certificate requested)
>    (Authenticated sender: j...@sequestered.net)
>    by alcatraz.sequestered.net (Postfix) with ESMTPSA id 177CBBDE66
>    for <redac...@domain.com>; Sun, 22 Feb 2009 01:09:02 -0800 (PST)
>
> What am I doing wrong in this instance?

ESMTPSA does not match (E?SMTP). There may be other issues, test this
expression one part at a time. Also avoid multiple ".*" rules. Consider
using PCRE and .*? to reduce backtracking, use (PCRE) \S+ instead of .*
whenever possible.

-- 
        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.

Reply via email to