Gmail MX over IPv6

It looks like even gmail.com is now advertising SMTP over IPv6:

lucab@galatea:~$ dig mx gmail.com
;; QUESTION SECTION:
;gmail.com.            IN    MX

;; ANSWER SECTION:
gmail.com.        408    IN    MX    10 alt1.gmail-smtp-in.l.google.com.
gmail.com.        408    IN    MX    20 alt2.gmail-smtp-in.l.google.com.
gmail.com.        408    IN    MX    5 gmail-smtp-in-v4v6.l.google.com.
gmail.com.        408    IN    MX    40 alt4.gmail-smtp-in.l.google.com.
gmail.com.        408    IN    MX    30 alt3.gmail-smtp-in.l.google.com.

lucab@galatea:~$ dig any gmail-smtp-in-v4v6.l.google.com.
;; QUESTION SECTION:
;gmail-smtp-in-v4v6.l.google.com. IN    ANY

;; ANSWER SECTION:
gmail-smtp-in-v4v6.l.google.com. 259 IN    AAAA    2a00:1450:8005::1a
gmail-smtp-in-v4v6.l.google.com. 205 IN    A    173.194.67.27

Looking at my mailserver logs, only inbound so far.

Annunci
Gmail MX over IPv6

Sending mail through a SSL-only relay server with ssmtp

I sometime feel the need of sending mail directly from my terminal (eg. with mail or reportbug) without having a complete mail-server on my laptop, which is often offline or NATted. For this, I’ve started to use ssmtp, a simple MTA which only delivers local mails to a more powerful remote SMTP-server. I’ve configured it to only communicate over an encrypted TLS connection to well-known port 465, to avoid man-in-the-middle sniffers and firewalls filtering outgoing port 25. This is my configuration (can be tuned via /etc/ssmtp/smtp.conf on Debian-like systems):

root=myuser
mailhub=mail.example.org:465
rewriteDomain=example.org
hostname=myhost.example.org
UseTLS=yes
UseSTARTTLS=no
AuthUser=myuser@example.org
AuthPass=XXXXX
FromLineOverride=YES

Of course, you need an external mail server configured to relay your mail and accepting TLS connections. For this purpose, you could also use a free mail service, like GMail.

Sending mail through a SSL-only relay server with ssmtp