[ DNS & domains ]

DNS A and AAAA records in mail-service configuration

Check IPv4 and IPv6 mail endpoints separately and understand when address records affect routing or SPF.

By the EmailAuth research team

[ Key points ]

  • Address publication does not prove a working SMTP endpoint.
  • Test every advertised address family and actual external source.
  • Address edits can affect explicit SPF a or mx dependencies.
On this page

A and AAAA records map a hostname to IPv4 and IPv6 addresses. They are dependencies of a mail service, not declarations that the service is ready or authorized to send. Publishing an address can expose a route that clients actually try, so verify every advertised family and endpoint.

Follow the name used by the protocol

References: RFC 5321 §5.1, RFC 7208 §5.3, RFC 7208 §5.4.

For inbound SMTP, resolve the exchange hostnames returned by MX. The recipient domain's website address is not a substitute when explicit exchanges are unusable. If no MX exists, SMTP's implicit-MX rule can make the recipient domain's own A or AAAA records relevant instead.

For outbound SPF, examine the actual policy and evaluated identity. An a mechanism can authorize addresses returned for its specified name; a plain A record does not authorize anything by itself. Similarly, changing a hostname used by an SPF mx mechanism can change the addresses evaluated as authorized. Record these references before treating a DNS address edit as a website-only change.

Treat dual stack as two operating paths

References: RFC 1035 §3.4.1, RFC 3596 §2.1, RFC 3596 §2.3.

A hostname can have several A records and several AAAA records. Their presence does not guarantee reachability, SMTP service, the correct certificate or equivalent policy. A healthy IPv4 endpoint does not establish that IPv6 works. Conversely, failure on one client path does not prove every sender uses that path.

Capture the destination address actually attempted, address family, connection outcome and SMTP response. If investigating outbound traffic, capture the externally observed source address rather than assuming it matches the address used inside the application. NAT and provider egress pools can make those values different.

Reproduce an address-family fault

Synthetic fixture: example.com. MX 10 mx.example.com.; mx.example.com. A 192.0.2.10; mx.example.com. AAAA 2001:db8::10. In the lab, configure the IPv4 endpoint to accept TCP connections on port 25 and leave the IPv6 endpoint unreachable. Expected DNS checks succeed for both record types, while a family-specific connection test succeeds only for IPv4.

Query dig @AUTH mx.example.com. A +norecurse and then the same command with AAAA. Replace AUTH with the isolated authority. Record both answers. Use your approved lab SMTP client to pin each destination independently, recording connection and protocol outcomes. The fixture illustrates why DNS success is not service success; it makes no claim about a particular sender's fallback timing.

A second fixture changes only the A address from 192.0.2.10 to 192.0.2.20 while the SPF policy is v=spf1 a:mx.example.com -all. For an IPv4 SPF evaluation with otherwise successful lookups, the address eligible to match the a mechanism changes. An explicit ip4:192.0.2.10 mechanism would instead remain tied to that literal network until the policy itself changed.

Make address changes reversible

References: RFC 8767 §4.

Inventory all consumers of the hostname, including mail routing, SPF references, monitoring and certificate expectations. Prepare the endpoint before advertising it. Retain the old service while appropriate caches can still direct traffic there, based on the actual migration plan rather than a universal waiting period.

After the change, compare authoritative answers with recursive observations and message-level evidence. A failed IPv6 endpoint should be repaired or removed through an approved change, not hidden by weakening unrelated authentication policies. Close the work only when the intended addresses and operating paths match the documented service design.

Keep the evidence scope explicit

For the two-family scenario, keep the expected IPv4 success and IPv6 failure as proposed lab observations until tested. The SPF address-change example assumes successful lookups and the stated policy; it does not establish current authorization for any real sender.

[ Takeaway ]

Address publication does not prove a working SMTP endpoint. Test every advertised address family and actual external source. Address edits can affect explicit SPF a or mx dependencies.

[ By role ]

What this means for you

Choose your role for practical next steps.

IT / Mail Admin

Test every advertised address

Successful DNS resolution and an operational SMTP endpoint are different observations.

Next steps

  1. Query A and AAAA independently.
  2. Test each advertised SMTP endpoint.
  3. Inventory SPF dependencies before address edits.

CISO / SecOps

Review indirect address permissions

A change to a shared hostname can alter SPF behavior when the policy references that name.

Next steps

  1. Review untested IPv6 exposure.
  2. Verify externally observed egress identities.
  3. Keep transport and authentication findings separate.

Founder / Non-technical

Own both network families

Advertising IPv6 creates an operating dependency alongside the familiar IPv4 service.

Next steps

  1. Fund both advertised network paths.
  2. Assign ownership for shared hostnames.
  3. Require migration acceptance evidence.

[ FAQs ]

Frequently asked questions

What does A store?

An IPv4 address.

RFC 1035 §3.4.1

What does AAAA store?

An IPv6 address.

RFC 3596 §2.1

Does AAAA prove IPv6 SMTP is working?

No. Test reachability and SMTP behavior independently.

Can several addresses be returned?

Yes. Check every advertised address rather than only the first.

RFC 3596 §2.3

Does an A edit change SPF?

It can when the evaluated SPF policy references that name through an address-dependent mechanism.

RFC 7208 §5.3 RFC 7208 §5.4

Should I inspect the apex A for inbound mail?

Start with the MX targets when explicit MX exists; the apex may matter under implicit-MX fallback.

RFC 5321 §5.1

Is the private server IP the sending IP?

Not necessarily. Record the public source address observed on the actual outbound path.

Does a connection prove inbox delivery?

No. Connection, SMTP acceptance and final mailbox placement are separate observations.

RFC 5321 §4.2.5

[ Sources ]

Sources

  1. RFC 7208

    Sections §5.3 · §5.4

  2. RFC 1035

    Sections §3.4.1

  3. RFC 5321

    Sections §4.2.5 · §5.1

  4. RFC 8767

    Sections §4

  5. RFC 3596

    Sections §2.1 · §2.3

  6. ISC BIND dig reference

    Sections Syntax, -x reverse lookup, norecurse query option

[ Glossary ]

Glossary

AAAA record
A DNS record holding one IPv6 address.

RFC 3596 §2.1

Address-dependent SPF
SPF mechanisms such as a and mx use DNS address data during evaluation rather than a fixed literal IP policy alone.

RFC 7208 §5.3 RFC 7208 §5.4

Enterprise provenance

Why top financial institutions and governments retired their email security dashboards.

Traditional email authentication platforms sell you a dashboard and ask your engineers to do the labour. In high-stakes environments, manual oversight means delayed enforcement, configuration drift and unmonitored shadow domains.

EmailAuth is the agentic email provenance platform. Our agents enforce p=reject, keep third-party senders aligned and move your domains to full RFC 9989 compliance, the new DMARC standard,, with human-in-the-loop auditability.

Governments Large enterprises Tier-1 financial institutions

SaaS · Dedicated tenancy · Air-gapped on-prem · BYOK encryption

Knowledge Base