After years of waiting, Google has finally enabled IPv6 for their email service Gmail. And a few weeks ago, they updated their policy, adding one specific rule: reject email from IP addresses with no reverse name:
% nc -Cv gmail-smtp-in.l.google.com. smtp Connection to gmail-smtp-in.l.google.com. 25 port [tcp/smtp] succeeded! 220 mx.google.com ESMTP bz2si13656083wjc.108 - gsmtp HELO boo.example.com 250 mx.google.com at your service MAIL FROM: <me@example.com> 250 2.1.0 OK bz2si13656083wjc.108 - gsmtp RCPT TO: <you@gmail.com> 250 2.1.5 OK bz2si13656083wjc.108 - gsmtp DATA 354 Go ahead bz2si13656083wjc.108 - gsmtp Subject: Test From: Me <me@example.com> To: You <you@gmail.com> Test. . 550-5.7.1 [2001:db8:8e3f:43c7::12 16] Our system has detected that this 550-5.7.1 message does not meet IPv6 sending guidelines regarding PTR records 550-5.7.1 and authentication. Please review 550-5.7.1 https://support.google.com/mail/?p=ipv6_authentication_error for more 550 5.7.1 information. bz2si13656083wjc.108 - gsmtp
That sucks
- It is not a sane anti-spam measure, because not having a reverse
name tells absolutely nothing about the email emitter or the
message itself: it only indicates that the email emitter has a lame
access provider. Specifically:
- spammers can have perfect reverse names;
- regular email emitter can have no reverse name because their access provider suck, and have no way of fixing it because all access providers suck the same way.
- While IPv6 is the future of the Internet, this measure discourages its use. Yes, providing no reverse names suck, but it is by no mean the user's fault, and since IPv6 is more complicated to implement than IPv4, Internet actors must tolerate youth errors or people will just keep what works, i.e. IPv4.
By the way, I would love to have a perfect Internet access provider, but that does not exist where I live, and I do not think it exists at all anywhere. Google, instead of complaining about lame access providers, you are welcome to offer me a fibre service with decent upload rate, static IPv4, static IPv6 /64, customizable reverse DNS for IPv4 and IPv6, and full respect of the network neutrality. Until then, I am doing the best I can with the least bad provider available.
Workaround
As I said, their is an easy workaround. Google does not accept my
mail on IPv6? Fine, I will keep using IPv4. Only for Google of course,
no need to punish the whole Internet for Google's damn restrictions.
With Postfix, you can do that this way (thanks to Christian
Skala for his blog post about this problem). In
/etc/postfix/master.fr
, enable an IPv4-only SMTP
client service:
smtp4 unix - - - - - smtp -o inet_protocols=ipv4
Then, in /etc/postfix/main.cf
, define a transport
map if you do not already use one:
transport_maps = hash:/etc/postfix/transport
Create that transport map
/etc/postfix/transport
or complete it:
gmail.com smtp4:
Finally, hash that transport map and have Postfix reload its configuration:
# postmap /etc/postfix/transport # service postfix reload
55 comments
tuesday 17 september 2013 à 15:05 Philippe Marzouk said : #1
tuesday 17 september 2013 à 15:19 Samaël said : #2
tuesday 17 september 2013 à 15:21 Tanguy said : #3
tuesday 17 september 2013 à 15:25 gregoa said : #4
tuesday 17 september 2013 à 15:54 David Edmondson said : #5
tuesday 17 september 2013 à 16:01 Paul said : #6
tuesday 17 september 2013 à 16:30 Tanguy said : #7
tuesday 17 september 2013 à 16:35 David Edmondson said : #8
tuesday 17 september 2013 à 16:47 pywy said : #9
tuesday 17 september 2013 à 16:54 Tanguy said : #10
tuesday 17 september 2013 à 17:21 Philipp Kern said : #11
tuesday 17 september 2013 à 17:28 Tanguy said : #12
tuesday 17 september 2013 à 18:25 agi said : #13
tuesday 17 september 2013 à 20:35 Karellen said : #14
wednesday 18 september 2013 à 08:43 laurentb said : #15
wednesday 18 september 2013 à 08:45 PAB said : #16
wednesday 18 september 2013 à 14:25 pywy said : #17
wednesday 18 september 2013 à 14:38 Paul said : #18
wednesday 18 september 2013 à 15:20 pywy said : #19
wednesday 18 september 2013 à 15:29 Tanguy said : #20
wednesday 18 september 2013 à 18:40 Philipp Kern said : #21
thursday 19 september 2013 à 14:57 Jean-Marc Liotier said : #22
wednesday 25 september 2013 à 04:46 Cesar Peralta said : #23
wednesday 16 october 2013 à 22:00 Piotr said : #24
friday 08 november 2013 à 08:15 Jean-Marc Liotier said : #25
thursday 14 november 2013 à 00:16 Dmitriy said : #26
saturday 16 november 2013 à 14:57 Jocelyn Delalande said : #27
saturday 16 november 2013 à 15:03 Jocelyn Delalande said : #28
wednesday 27 november 2013 à 03:24 peterlim said : #29
wednesday 27 november 2013 à 10:00 Tanguy said : #30
friday 29 november 2013 à 12:32 prietus said : #31
friday 29 november 2013 à 13:50 Tanguy said : #32
sunday 08 december 2013 à 02:15 Neil said : #33
tuesday 10 december 2013 à 22:16 Hans said : #34
wednesday 22 january 2014 à 02:40 Emily Smith-Lee said : #35
monday 10 february 2014 à 10:49 Michael said : #36
tuesday 11 march 2014 à 16:11 Nisse said : #37
tuesday 11 march 2014 à 21:39 Andi said : #38
friday 21 march 2014 à 08:14 Lisa Smith said : #39
sunday 08 june 2014 à 15:50 login01 said : #40
sunday 08 june 2014 à 19:31 Tanguy said : #41
monday 04 august 2014 à 12:51 Alex Lennon said : #42
monday 29 december 2014 à 21:01 Holger said : #43
wednesday 31 december 2014 à 18:37 Tanguy said : #44
thursday 16 april 2015 à 14:15 Maribeth said : #45
wednesday 22 april 2015 à 02:26 Jake said : #46
wednesday 22 april 2015 à 09:54 Tanguy said : #47
tuesday 25 august 2015 à 06:05 justin said : #48
monday 26 october 2015 à 11:51 Huub Knops said : #49
friday 30 october 2015 à 02:45 Waltman said : #50
friday 27 november 2015 à 13:31 eric said : #51
friday 18 december 2015 à 20:28 Robb Allan said : #52
saturday 23 january 2016 à 15:04 Legion said : #53
thursday 28 april 2016 à 23:12 mario_26 said : #54
wednesday 04 january 2017 à 22:29 greg said : #55