Thursday, August 16, 2012

Cool: Gmail accepts SMTP over IPv6

Cool: Gmail accepts mail via SMTP over IPv6



sander@toverdoos:~$ telnet gmail-smtp-in.l.google.com. smtp
Trying 2a00:1450:8005::1a...
Escape character is '^]'.
220 mx.google.com ESMTP 1si2968615eee.121
ehlo asdf
250-mx.google.com at your service, [2001:41d0:2:bb58:dead:beef:8637:e45b]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
mail from: <blabla@gmail.com>
250 2.1.0 OK 1si2968615eee.121
250 2.1.5 OK 1si2968615eee.121
data
354  Go ahead 1si2968615eee.121

Cool, it works!
.
250 2.0.0 OK 1345123513 1si2968615eee.121
quit
221 2.0.0 closing connection 1si2968615eee.121
Connection closed by foreign host.
sander@toverdoos:~$


Raspi's Raspbian: no IPv6 by default ...

Strange: Raspberry Pi's Raspbian ("2012-07-15-wheezy-raspbian") has no IPv6 activated by default. Just plain IPv4. Strange ... why leave out IPv6 in 2012? On Ubuntu IPv6 is even built-in into the kernel.

Anyway:
  • A manual "modprobe ipv6" solved it ... until the next reboot.
  • Adding "ipv6" (without the quotes) to /etc/modules solved it really

Some specs:

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l GNU/Linux
pi@raspberrypi ~ $ 

pi@raspberrypi ~ $ lsmod | grep -i ipv6
ipv6                  290227  20 
pi@raspberrypi ~ $

pi@raspberrypi ~ $ ping6 -nc4 www.google.com
PING www.google.com(2a00:1450:4007:803::1012) 56 data bytes
64 bytes from 2a00:1450:4007:803::1012: icmp_seq=1 ttl=50 time=39.9 ms
64 bytes from 2a00:1450:4007:803::1012: icmp_seq=2 ttl=50 time=38.0 ms
64 bytes from 2a00:1450:4007:803::1012: icmp_seq=3 ttl=50 time=38.9 ms
64 bytes from 2a00:1450:4007:803::1012: icmp_seq=4 ttl=50 time=38.1 ms

--- www.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 38.094/38.783/39.923/0.780 ms
pi@raspberrypi ~ $

HTH