IPv6 offers every host a vast number of addresses, and most networks and clouds now provide it. Mail has been slower to follow. Receivers apply stricter rules to IPv6 senders, reputation systems have to deal with address blocks that are astronomically larger than IPv4 ones, and a dual-stack mail server may start sending over IPv6 without anyone having prepared for it. The outcome is a recurring support story: mail that was fine for years begins to bounce at one large provider after an operating system update or a network change that enabled IPv6. This guide explains how mail servers choose between IPv4 and IPv6, what you must configure to send reliably over IPv6, how reputation and blocklists treat IPv6 addresses, what the large providers expect and when the best decision is to keep outgoing mail on IPv4.
How a server chooses IPv4 or IPv6
When your server delivers a message, it looks up the MX records of the recipient domain, then the A and AAAA records of the MX host. If the host has an AAAA record and your server has working IPv6, many mail servers try IPv6 first (the default in some software, a setting in others) and fall back to IPv4 if the connection fails. Because the choice is made per recipient, you can send over both protocols in the same minute, to different providers. That is why a problem with IPv6 may appear to affect "only some" recipients. Check which family each delivery used in your logs: the connecting address is recorded in the Received header at the destination and in your own MTA log.
What to configure
| Item | IPv4 practice | IPv6 equivalent |
|---|---|---|
| Stable address | Static public IP | Static address from your allocated prefix; avoid privacy or temporary addresses |
| Reverse DNS | PTR in in-addr.arpa | PTR in ip6.arpa, requested from the block owner |
| Forward record | A record for the mail hostname | AAAA record for the same hostname |
| SPF | ip4:203.0.113.25 | ip6:2001:db8::25 or a range you control |
| EHLO name | Hostname that resolves to the IP | The same hostname, with an AAAA record |
| DKIM and DMARC | Same for both | Same for both; messages are signed regardless of IP family |
| TLS | Valid certificate | Same certificate and policy |
See Gmail 550 5.7.25 for the exact rejection that appears when a PTR or authentication is missing, and reverse DNS and HELO. SPF with IPv6 entries is explained in SPF record syntax. A frequent oversight is an SPF record listing only ip4: addresses while the server connects over IPv6; SPF then fails for those messages.
Reputation on IPv6
An IPv4 address is a scarce resource, and receivers keep reputation for individual addresses. A single IPv6 allocation to a customer is typically a /64 (about 18 quintillion addresses) or larger, and a spammer can switch to a new address inside it in an instant. To stay ahead, receivers and blocklists judge IPv6 reputation at the level of the network prefix, commonly a /64, and sometimes a /48 or /32. Several consequences follow:
- Sending from many addresses in one /64 does not spread your reputation; it is treated as one sender.
- If a neighbour in your /64, such as another virtual machine in the same allocation, sends spam, your reputation suffers. Prefer a dedicated /64 for mail.
- Blocklist entries may cover a whole prefix, so a listing is broader and removal may need contact with the network owner. See blocklist removal.
- A new prefix has no history, so warm it up like any new IP. See email warm-up.
What the large providers expect
Public guidance from the major mailbox providers asks IPv6 senders to publish a PTR, to pass SPF or DKIM authentication and to use TLS. Gmail documents these rules in its sender guidelines and rejects IPv6 mail that does not meet them. Others apply similar checks with their own thresholds. Because the rules change, read the current sender documentation of each provider you rely on. In practice the setup that passes for IPv4 (PTR, forward match, SPF, DKIM, DMARC, TLS) also passes for IPv6, as long as every item exists for the IPv6 address, not only for the IPv4 one. Check with the SPF, DKIM and DMARC checker and test both families.
Receiving mail over IPv6
Sending and receiving are separate decisions. To receive over IPv6, publish an AAAA record for your MX host and make sure the server listens on the IPv6 address, the firewall allows port 25 on it and the same filters run on both families. If you add an AAAA record to your MX host, senders that prefer IPv6 will use it, so the receiving side must be as well maintained as the IPv4 side. A half-configured IPv6 listener causes timeouts that senders see as delays. See MX records and SMTP connection timeouts.
Common failure patterns
| Symptom | Cause | Fix |
|---|---|---|
| Rejections at Gmail only for some messages | Server used IPv6 without PTR or authentication | Fix IPv6 setup or force IPv4 |
| SPF fail for IPv6 connections | SPF lists only ip4 entries | Add the ip6 address or range |
| Delivery works from laptop but not from server | Server has a different IPv6 address | Check the outbound address with a "what is my IP" lookup over IPv6 |
| Address changes after restart | Temporary or privacy address in use | Configure a static address and disable temporary addresses for mail |
| Listed on a blocklist you never heard of | Prefix-level listing caused by a neighbour | Contact the network owner; use a dedicated prefix |
| Long delays on sending | IPv6 connection attempts time out before falling back to IPv4 | Fix routing and firewall, or prefer IPv4 |
Forcing IPv4 for outgoing mail
If you are not ready, the simplest remedy is to tell the MTA to use IPv4 for outbound connections. In Postfix, set smtp_address_preference = ipv4 or restrict inet_protocols = ipv4. In Exim use the dnslookup router with ipv4_only. Managed services handle this for you: their sending IPs are chosen and configured, and you do not need to do anything. This is a legitimate, stable choice. IPv6 offers nothing for deliverability by itself, and the large providers do not favour IPv6 senders. The reasons to adopt it are operational, such as networks that are IPv6-only or a requirement of your organisation.
Deployment checklist
- Decide whether you want IPv6 for sending at all. If not, force IPv4 and check that it works.
- If yes, allocate a dedicated static prefix and a single stable sending address.
- Create AAAA and PTR records and test forward-confirmed reverse DNS.
- Add the ip6 address to SPF and verify with the checker.
- Make sure DKIM and DMARC are in place, and TLS is enabled.
- Warm up the new address in small steps and monitor complaints and bounces.
- Monitor blocklists for the prefix, not only the single address.
- Test delivery to the main providers over both families before moving production traffic.
IPv6 for email is workable and increasingly normal, and it rewards the careful. Treat the IPv6 address as a first-class sender with its own DNS, authentication and reputation, or keep it out of the path until you are ready.
Let us run the sending infrastructure Managed IP addresses with reverse DNS, authentication and warm-up handled for you.
References and further reading
Frequently asked questions
Do I need IPv6 to send email?
No. Sending over IPv4 only is fully valid. IPv6 gives no deliverability advantage by itself.
How do I stop my server from using IPv6 for outgoing mail?
Configure the MTA to prefer or require IPv4, for example smtp_address_preference = ipv4 in Postfix.
Is IPv6 reputation per address?
No. Receivers usually judge it per network prefix such as a /64, so use a dedicated prefix for mail.
Does SPF need a separate entry for IPv6?
Yes. Add ip6 mechanisms for your IPv6 sending addresses, in addition to ip4 entries.
Why does Gmail reject only my IPv6 mail?
Gmail applies stricter checks to IPv6 sources: valid PTR, authentication and TLS. Missing items cause rejections such as 5.7.25.