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) Aug 21 15:29:19 petole postfix/smtp[18007]: D424D40555: to=<nicolas.kowal...@gmail.com>, relay=gmail-smtp-in.l.google.com[2a00:1450:400c:c03::1b]:25, delay=1.4, delays=0.04/0.07/0.7/0.57, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[2a00:1450:400c:c03::1b] said: 550-5.7.1 [2a01:e35:8ae7:65f0::2 16] The sender does not meet basic ipv6 550-5.7.1 sending guidelines of authentication and rdns resolution of sending 550-5.7.1 ip. Please review 550 5.7.1 https://support.google.com/mail/answer/81126for more information. gp4si4464911wib.46 - gsmtp (in reply to end of DATA command)) By testing the mail sending manually, I saw that the "550 5.7.1 ..." line, was not containing the IPv6 address: $ telnet 2a00:1450:400c:c03::1a 25 Trying 2a00:1450:400c:c03::1a... Connected to 2a00:1450:400c:c03::1a. Escape character is '^]'. 220 mx.google.com ESMTP pf5si4330259wjb.13 - gsmtp ehlo petole.demisel.net 250-mx.google.com at your service, [2a01:e35:8ae7:65f0::2] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES mail from: <r...@petole.demisel.net> 250 2.1.0 OK pf5si4330259wjb.13 - gsmtp rcpt to: <nicolas.kowal...@gmail.com> 250 2.1.5 OK pf5si4330259wjb.13 - gsmtp data 354 Go ahead pf5si4330259wjb.13 - gsmtp from: <r...@petole.demisel.net> to: <nicolas.kowal...@gmail.com> subject: test test