Nicolas KOWALSKI:
> On Wed, Aug 21, 2013 at 09:15:46AM -0400, Wietse Venema wrote:
> > Nicolas KOWALSKI:
> > > On Wed, Aug 21, 2013 at 06:44:55AM -0400, Wietse Venema wrote:
> > > > Argh. You need to replace the 5.X.X.
> > > >
> > > > This pattern replaces both fives just to be sure.
> > > >
> > > > /^5(\d\d )5(.*your:ipv6:addr:here.*)/ 4${1}4$2
> > >
> > > I used this one ('-' instead of space):
> >
> > That is incorrect.
>
> Sorry, I was confused by the error message, forgetting about the last
> line of the server reply.
>
> So, I corrected it to be exactly as you wrote:
>
> /^5(\d\d )5(.*2a01:e35:8ae7:65f0::2.*)/ 4${1}4$2
>
>
> In the logs, the reply was then not filtered:
>
> Aug 21 15:29:18 petole postfix/smtp[18007]: Trusted TLS connection
> established to gmail-smtp-in.l.google.com[2a00:1450:400c:c03::1b]:25: TLSv1.2
> with cipher ECDHE-RSA-RC4-SHA (128/128 bits)
You made a mistake.
With this:
% cat /tmp/x.pcre
/^5(\d\d )5(.*)/ 4${1}4$2
% postmap -q - pcre:/tmp/x.pcre
550 5.7.1 whatever
550 5.7.1 whatever 450 4.7.1 whatever
So you erred in your text inside the second ().
Wietse