Score:0

Postfix on IPV6: no MX host for yahoo.co.uk has a valid address record

fo flag
Run

I have my new cloud server running on ipv6 only. I have set the AAAA mx record. Postfix installed with the following config:

$ sudo nano /etc/postfix/main.cf

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 3.6 on
# fresh installs.
compatibility_level = 3.6

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_security_level=may

smtp_tls_CApath=/etc/ssl/certs
smtp_tls_security_level=may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache


smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = ubuntu-4gb-fsn1-1
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv6
myorigin = /etc/mailname

virtual_alias_domains = hash:/etc/postfix/virtual_domains
virtual_alias_maps = hash:/etc/postfix/virtual_forwards

I also set to forward all incoming emails to my googlemail account:

$ sudo nano /etc/postfix/virtual_forwards

[email protected] [email protected]

I tested it and sent emails to other gmail addresses and all went through ok, for example:

$ echo "test email" | sendmail -F "L XXX" -f "[email protected]" [email protected]
$ sudo tail /var/log/mail.log

Jul 18 15:48:22 ubuntu-4gb-fsn1-1 postfix/pickup[46761]: 6766367234: uid=0 from=<[email protected]>
Jul 18 15:48:22 ubuntu-4gb-fsn1-1 postfix/cleanup[48067]: 6766367234: message-id=<20230718154822.6766367234@ubuntu-4gb-fsn1-1>
Jul 18 15:48:22 ubuntu-4gb-fsn1-1 postfix/qmgr[46403]: 6766367234: from=<[email protected]>, size=271, nrcpt=1 (queue active)
Jul 18 15:48:23 ubuntu-4gb-fsn1-1 postfix/smtp[48069]: 6766367234: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[2a00:1450:400c:c08::1a]:25, delay=0.8, delays=0.02/0.02/0.12/0.65, dsn=2.0.0, status=sent (250 2.0.0 OK  1689695303 a5-20020adfeec5000000b003143d46910bsi1155011wrp.645 - gsmtp)
Jul 18 15:48:23 ubuntu-4gb-fsn1-1 postfix/qmgr[46403]: 6766367234: removed

But I got the following errors when trying to send emails to yahoo addresses, for example:

$ echo "test email" | sendmail -F "L XXX" -f "[email protected]" [email protected]
$ sudo tail /var/log/mail.log

Jul 18 15:52:17 ubuntu-4gb-fsn1-1 postfix/cleanup[48086]: 7FC9567234: message-id=<20230718155217.7FC9567234@ubuntu-4gb-fsn1-1>
Jul 18 15:52:17 ubuntu-4gb-fsn1-1 postfix/qmgr[46403]: 7FC9567234: from=<[email protected]>, size=271, nrcpt=1 (queue active)
Jul 18 15:52:17 ubuntu-4gb-fsn1-1 postfix/smtp[48088]: warning: no MX host for yahoo.co.uk has a valid address record
Jul 18 15:52:17 ubuntu-4gb-fsn1-1 postfix/smtp[48088]: 7FC9567234: to=<[email protected]>, relay=none, delay=0.04, delays=0.02/0.02/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=mx-eu.mail.am0.yahoodns.net type=AAAA: Host found but no data record of requested type)
Jul 18 15:52:17 ubuntu-4gb-fsn1-1 postfix/cleanup[48086]: 8D9F567235: message-id=<20230718155217.8D9F567235@ubuntu-4gb-fsn1-1>
Jul 18 15:52:17 ubuntu-4gb-fsn1-1 postfix/bounce[48089]: 7FC9567234: sender non-delivery notification: 8D9F567235
Jul 18 15:52:17 ubuntu-4gb-fsn1-1 postfix/qmgr[46403]: 8D9F567235: from=<>, size=2440, nrcpt=1 (queue active)
Jul 18 15:52:17 ubuntu-4gb-fsn1-1 postfix/qmgr[46403]: 7FC9567234: removed

Why? Any ideas how to fix this?

It was ok with yahoo addresses when my old server was on ipv4. But it seems yahoo has some issues with ipv6?

anx avatar
fr flag
anx
Not just Yahoo, Microsoft too. It seems for the time being, sending mail to popular provider means you better have full connectivity to both internets. *If only there had been a way to foresee such scenario and plan our IPv6 "transition" accordingly..*
Run avatar
fo flag
Run
@anx yeah I figured it could happen on other email servers. damn, can't really ditch ipv4 yet
Score:2
cn flag

First lets look up the MX record

$ dig mx yahoo.co.uk
...
;; ANSWER SECTION:
yahoo.co.uk.        1717    IN  MX  10 mx-eu.mail.am0.yahoodns.net.
...

Now lets see what IPv4 addresses that hostname resolves to:

$ dig a mx-eu.mail.am0.yahoodns.net
...
;; ANSWER SECTION:
mx-eu.mail.am0.yahoodns.net. 60 IN  A   188.125.72.73
mx-eu.mail.am0.yahoodns.net. 60 IN  A   188.125.72.74
...

All good 2 valid IPv4 addresses, now lets check IPv6

$ dig aaaa  mx-eu.mail.am0.yahoodns.net
; <<>> DiG 9.18.16 <<>> aaaa mx-eu.mail.am0.yahoodns.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58383
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
...

The important bit is the ANSWERS: 0 which says that yahoo.co.uk has no mail servers that have IPv6 addresses. This means that your IPv6 only host has no way to contact the mail servers responsible for handling mail to [email protected]

Unless your hosting provider supports some form of NAT64, you use a mail relay that supports both IPv4 and IPv6, or Yahoo join the 20th century then you are going to be out of luck.

Run avatar
fo flag
Run
thanks for the answer! the problem is with `yahoo.co.uk` then. damn
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.