Configure SPF, DKIM, and DMARC for On-Premises Exchange Server
Question details
Determine how to authenticate email and generate DMARC aggregate reports with on-premises Exchange Server.

- Product
- Microsoft Exchange Server
- Device & OS
- not provided
- Scenario
- An administrator wants to configure SPF, DKIM, and DMARC for mail flowing through an on-premises Exchange environment, including reports for senders.
- Observed behavior
- Exchange Server does not provide a complete native solution for DKIM signing, DMARC validation, and DMARC aggregate reporting by default.
Identify the public IP addresses and services that send mail for your domain, and check your existing DNS records. Confirm whether an email gateway or security service already handles inbound or outbound mail.
Publish an SPF record for your Exchange mail flow
Use DNS to identify the servers and services authorized to send mail for your domain.
Review your Exchange send connectors in the Exchange admin center under Mail flow > Send connectors, and identify the public IP addresses or relay services used to send mail.
In your DNS provider's management console, look for a TXT record beginning with v=spf1 for the sending domain. A domain should have only one SPF record.
Edit or add the SPF TXT record at your DNS provider to include all authorized sending IP addresses and services. Use the include mechanism supplied by a sending service where required, and choose the appropriate policy ending, such as ~all or -all.
Use an SPF lookup tool to check the published TXT record, then send a test message to an external mailbox and inspect its authentication results.

Use a mail-security service for DKIM and DMARC reporting
Use a supported gateway, transport agent, or mail-security service when Exchange needs DKIM signing, DMARC validation, or aggregate reporting.
Document Your Exchange Mail-Security Setup with WPS Office
WPS Office is a free, lightweight alternative for documenting mail-flow settings and reviewing reports. Its familiar interface and Microsoft Office format support make it easy to move existing documents and spreadsheets into your workflow. It does not configure Exchange or generate DMARC reports.

Frequently Asked Questions
Can on-premises Exchange Server send DMARC aggregate reports by itself?
Exchange Server does not provide complete native DMARC aggregate reporting by default. Use a gateway or mail-security service that explicitly supports DMARC validation and aggregate report generation.
Where do I configure SPF for Exchange?
Publish or update the sending domain's SPF TXT record in your DNS provider's console. Review Exchange admin center > Mail flow > Send connectors to help identify outbound routes and include all authorized senders.
Does an SPF pass guarantee that DMARC will pass?
No. DMARC requires either SPF or DKIM to pass with the authenticated domain aligned with the domain in the visible From address.
Where are DMARC aggregate reports sent?
Reporting receivers send aggregate reports to the address specified in the sending domain's DMARC rua tag. Configure that tag in the domain's _dmarc DNS TXT record.
Can I use p=none while testing DMARC?
Yes. Set p=none in the _dmarc TXT record to monitor authentication without requesting rejection or quarantine, then review reports before changing the policy.




