0 XP

SPF for Exchange Online

The record for Exchange Online

SPF is a DNS TXT record that lists who may send mail for your domain. For a domain that sends only through Exchange Online, Microsoft's example is:

v=spf1 include:spf.protection.outlook.com -all

The include is spf.protection.outlook.com. Don't confuse it with mail.protection.outlook.com, which is the MX target, or with v=DKIM1, which starts a DKIM key record. You publish it at your DNS host.

One record per domain

A domain may have only one SPF TXT record. When marketing adds a newsletter platform that sends as your domain, merge its include into the existing record. Publishing a second SPF record breaks SPF, and replacing the record drops Exchange Online from it.

The 10-lookup limit

The whole record may trigger at most 10 DNS lookups. Every include costs lookups, so a record that grows one department at a time can quietly pass the limit and fail. Review it whenever a new sending service is added.

SPF and forwarded mail

SPF also decides how Exchange Online sends mail it forwards or relays:

  • Forwarded or relayed mail goes out through the relay pool unless the sender is in one of your accepted domains or SPF passes when the message arrives.
  • The relay pool isn't in the published SPF record, and you can't add it.
  • Sender Rewriting Scheme is applied when the sender can be authenticated.
  • Enabling DKIM for every accepted domain improves authentication of forwarded mail.

Message trace shows which pool sent a message in the OutboundIpPoolName property.

Knowledge check

4 questions on what you just read. Each answer shows the full explanation and its source.

Loading…