This page provides technical information about Email Routing to professionals who administer email systems, and other email providers.
Here you will find information regarding Email Routing, along with best practices, rules, guidelines, troubleshooting tools, as well as known limitations for Email Routing.
Authenticated Received Chain (ARC)
Email Routing supports . ARC is an email authentication system designed to allow an intermediate email server (such as Email Routing) to preserve email authentication results. Google also supports ARC.
Through this standard, the sender publishes its public key to a domain’s DNS once, and then signs the body of each message before it leaves the server. The recipient server reads the message, gets the domain public key from the domain’s DNS, and validates the signature to ensure the message was not altered in transit.
Email Routing signs email on behalf of
email.cloudflare.net. If the sender did not sign the email, the receiver will likely use Cloudflare’s signature for authentication.
Below is the DKIM key for
$ dig TXT 2022._domainkey.email.cloudflare.net +short
"v=DKIM1; h=sha256; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnraPy1d8e6+lzeE1HIoUvYWoAOUSREkNHcwxA/ueVM8f6FKXvPu/9gVpgkn8iUyaCfk2z1MW+OVLuFeH64YRMa39mkaQalgke2tZ05SnjRUtYEHYvfrqPuMT+Ouk+GecpgvrtMq5gMXm6ZfeUhQkdWxmMQJGf4fdW5I0piUQJMhK/Qc1dNRSskk" "TiUtXKnsEdjTN2xcnHhyj985S0xOEAxm9Uj1rykPqVvKpqEdjUkujbXOwR0KmHTvPyFpBjCCfxAVqOwwo9zBYuvk/nh0qlDgLIpy0SimrYhNFCq2XBxIj4tdUzIl7qZ5Ck6zLCQ+rjzJ4sm/zA+Ov9kDkbcmyrwIDAQAB"
Email Routing enforces Domain-based Message Authentication, Reporting & Conformance (DMARC). Depending on the sender’s DMARC policy, Email Routing will reject emails when there is an authentication failure. Refer to for more information on this protocol.
Currently, Email Routing will connect to the upstream SMTP servers using IPv6 if they provide AAAA records for their MX servers, and fall back to IPv4 if that is not possible.
Below is an example of a popular provider that supports IPv6:
$ dig mx gmail.com
gmail.com. 3084 IN MX 5 gmail-smtp-in.l.google.com.
gmail.com. 3084 IN MX 20 alt2.gmail-smtp-in.l.google.com.
gmail.com. 3084 IN MX 40 alt4.gmail-smtp-in.l.google.com.
gmail.com. 3084 IN MX 10 alt1.gmail-smtp-in.l.google.com.
gmail.com. 3084 IN MX 30 alt3.gmail-smtp-in.l.google.com.
$ dig AAAA gmail-smtp-in.l.google.com
gmail-smtp-in.l.google.com. 17 IN AAAA 2a00:1450:400c:c09::1b
Email Routing also supports IPv6 through Cloudflare’s inbound MX servers.
MX, SPF, and DKIM records
Email Routing automatically adds a few DNS records to the zone when our customers enable Email Routing. If we take
example.com as an example:
example.com. 300 IN MX 13 amir.mx.cloudflare.net.
example.com. 300 IN MX 86 linda.mx.cloudflare.net.
example.com. 300 IN MX 24 isaac.mx.cloudflare.net.
example.com. 300 IN TXT "v=spf1 include:_spf.mx.cloudflare.net ~all"
tell the Internet where the inbound servers receiving email messages for the zone are. In this case, anyone who wants to send an email to
example.com can use the
isaac.mx.cloudflare.net SMTP servers.
In addition to the outbound prefixes, Email Routing will use the domain
email.cloudflare.net for the
PTR records (reverse DNS) ensure that each hostname has an corresponding IP. For example:
$ dig a0-7.email.cloudflare.net +short
$ dig -x 18.104.22.168 +short
Email Routing sends its traffic using both IPv4 and IPv6 prefixes, when supported by the upstream SMTP server.
If you are a postmaster and are having trouble receiving Email Routing’s emails, allow the following outbound IP addresses in your server configuration:
Ranges last updated: October 4th, 2022
This has no effect to the end user’s experience, though. The message headers will still report the original sender’s
In most cases, Email Routing simply forwards the upstream SMTP errors back to the sender client in-session.
Spam and abusive traffic
Handling spam and abusive traffic is essential to any email provider. Email Routing filters emails based on advanced anti-spam criteria, . When Email Routing detects and blocks a spam email, you will receive a message with details explaining what happened. For example:
found on one or more DNSBLs (abusixip). Refer to https://developers.cloudflare.com/email-routing/postmaster/#spam-and-abusive-traffic/
A SPF DNS record is an anti-spoofing mechanism that is used to specify which IP addresses and domains are allowed to send emails on behalf of your zone.
Email Routing’s SPF record contains the following:
v=spf1 include:_spf.mx.cloudflare.net ~all
In the example above:
spf1: Refers to SPF version 1, the most common and more widely adopted version of SPF.
include: Include a second query to
_spf.mx.cloudflare.netand allow its contents.
~all: Otherwise on all other origins.
SoftFailmeans NOT allowed to send, but in transition. This instructs the upstream server to accept the email but mark it as suspicious if it came from any IP addresses outside of those defined in the SPF records.
If we do a TXT query to
_spf.mx.cloudflare.net, we get:
_spf.mx.cloudflare.net. 300 IN TXT "v=spf1 ip4:22.214.171.124/20 ~all"
This response means:
- Allow all IPv4 IPs coming from the
Below, you will find information regarding known limitations for Email Routing.
Email address internationalization (EAI)
This means that you can have email addresses with an internationalized domain, but not an internationalized local-part (the first part of your email address, before the
@ symbol). Refer to the following examples:
Non-delivery reports (NDRs)
Email Routing does not forward non-delivery reports to the original sender. This means the sender will not receive a notification indicating that the email did not reach the intended destination.
Restrictive DMARC policies can make forwarded emails fail
Sending or replying to an email from your Cloudflare domain
Email Routing does not support sending or replying from your Cloudflare domain. When you reply to emails forwarded by Email Routing, the reply will be sent from your destination address (like
[email protected]), not your custom address (like
Signs such “
+” and “
.” are treated as normal characters for custom addresses
Email Routing does not have advanced routing options. Characters such as
., which perform special actions in email providers like Gmail and Outlook, are currently treated as normal characters on custom addresses. More flexible routing options are in our roadmap.
Subdomains are only supported for Enterprise customers
Subdomains cannot use Email Routing to forward emails, unless they are part of an Enterprise account.