Hurricane Electric's IPv6 Tunnel Broker Forums

IPv6 Certification Program Topics => General Discussion => Topic started by: Hello71 on November 17, 2012, 10:12:35 AM

Title: Can't send email to AAAA-only domain [Solved]
Post by: Hello71 on November 17, 2012, 10:12:35 AM
Trying to do the IPv6 MTA challenge. I have a domain registered at afraid.org, hello71.us.to, with no MX record but an AAAA record pointing to 2001:470:1d:32::1, which is in my /64 and has been configured (other hosts can ping it). I can also send email from other hosts (Gmail) to hello71.us.to successfully. When I try to send email to *@hello71.us.to from the certification page, it says "No MX found for your domain. Failed to get AAAA" even though there is an AAAA record for hello71.us.to and has been for the past few hours. (the TTL is 1 hour) Any help?
Title: Re: Can't send email to AAAA-only domain
Post by: KiLaHuRtZ on November 17, 2012, 11:39:13 AM
You need the MX record to point your domain towards your mail servers.  Likewise, you also need the AAAA record for said mail server so it can discover the server's IP address.  In bind, it is done like this...

@ IN MX 10 mailserver.somedomain.tld.

mailserver IN AAAA <IPv6 Address>
Title: Re: Can't send email to AAAA-only domain
Post by: Hello71 on November 17, 2012, 11:42:38 AM
But if there's no MX record, then it should use the AAAA/A record, no?
Title: Re: Can't send email to AAAA-only domain
Post by: mikie on November 17, 2012, 03:48:13 PM
There needs to be a MX (mail exchanger) record in your DNS zone file pointing to a host for email to work.
Some email systems are slacker than others in what they will allow to work.
Title: Re: Can't send email to AAAA-only domain
Post by: snarked on November 17, 2012, 04:21:22 PM
Wrong.  An MX record is not required for SMTP to work.  Where there is no MX record, the host is supposed to be contacted directly (as if an MX of priority 0 existed) via its address records (A or AAAA; A6 and APL aren't used).

It's possible that the MX test requires an MX-RR to exist.  It is also good practice to have an MX record (even if it points to itself), especially for those systems that don't cache negative DNS answers.
Title: Re: Can't send email to AAAA-only domain
Post by: Hello71 on November 17, 2012, 04:39:00 PM
Okay then, I added an MX record pointing to itself and now it works. Sent off an email to ipv6@he.net informing them that their MTA is itself non-compliant. Thanks everyone!
Title: Re: Can't send email to AAAA-only domain [Solved]
Post by: broquea on November 17, 2012, 09:17:42 PM
It isn't an MTA in the sense of Sendmail, Postfix, etc. It is a PHP script that looks for an MX record, then tries connecting directly to that :)
Title: Re: Can't send email to AAAA-only domain [Solved]
Post by: kasperd on November 18, 2012, 12:52:15 AM
Fallback to using an A record directly without going through an MX record exists for backward compatibility with systems from before the MX record was introduced. Since the MX record is older than IPv6, those systems would be IPv4 only. As such using AAAA records directly shouldn't be needed. I haven't found an RFC giving a clear answer as to whether such a configuration is valid, but it is definitely not a recommended configuration.