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): /^5(\d\d-)5(.*2a01:e35:8ae7:65f0::2.*)/ 4${1}4${2} But even with a return code rewritten as 450-4.X.Y, it bounces: Aug 21 14:13:07 petole postfix/smtp[15786]: 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 14:13:08 petole postfix/smtp[15786]: gmail-smtp-in.l.google.com[2a00:1450:400c:c03::1b]:25: replacing server reply "550-5.7.1 [2a01:e35:8ae7:65f0::2 16] The sender does not meet basic ipv6" with "450-4.7.1 [2a01:e35:8ae7:65f0::2 16] The sender does not meet basic ipv6" Aug 21 14:13:08 petole postfix/smtp[15786]: 6135140557: to=<nicolas.kowal...@gmail.com>, relay=gmail-smtp-in.l.google.com[2a00:1450:400c:c03::1b]:25, delay=0.94, delays=0.03/0/0.28/0.63, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[2a00:1450:400c:c03::1b] said: 450-4.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. lf4si4080770wjb.170 - gsmtp (in reply to end of DATA command)) How must be the return code for the mail to be retried to another host? "450 <some-text-here>" or "450-<subcode> <some-text-here>" ? Thanks, -- Nicolas