Fix Microsoft's 550 5.7.509 error by finding why DMARC failed
550 5.7.509 is the bounce Microsoft's mail servers send when a message fails DMARC for the domain in its From address and that domain's DMARC policy is p=reject, which asks receivers to refuse failing mail. The domain's owner set that policy, so the fix is on the sending side: get SPF or DKIM to pass for a domain that matches the From address, or stop putting a domain you don't control in the From address.
Why the message failed DMARC
SPF or DKIM passed for another domain
The message passed SPF or DKIM, but for the email service's own domain rather than the one in the From address, so DMARC still fails. Microsoft calls this an alignment failure.
DKIM is missing
The DKIM record is missing from DNS, or the service sent the message without signing it.
SPF misses the sender
The domain has no SPF record, or the server that sent the message isn't in it.
The message was forwarded
Forwarding sends the message on from a new server, which breaks SPF alignment, and changes to the body along the way break DKIM.
The From address isn't yours
When the From address is on a domain you don't control, such as a visitor's address in a contact form, that domain's records decide the result, and your server can't pass them.
Microsoft lists the first four causes under Why does DMARC fail? in its Exchange Online bounce reference, which documents 5.7.509, and its DMARC guide covers forwarding.
Read the authentication results in the bounce
| Header shows | What it means |
|---|---|
dmarc=fail action=oreject | The message failed DMARC, the From domain publishes p=reject and Microsoft rejected the message. |
header.from= | The domain in the From address, the one DMARC checks. |
smtp.mailfrom= | The return-path domain that SPF checked. If it doesn't match the From domain, an SPF pass doesn't count toward DMARC. |
header.d= | The domain that signed with DKIM. dkim=none (message not signed) means there was no signature at all. |
spf= and dkim= | Each check's own result. DMARC needs one of them to pass for a domain that matches the From address. |
The same failure can bounce as 550 5.7.1
Microsoft's DMARC guide says a Microsoft 365 organization with its Honor DMARC record policy setting turned on rejects mail that fails a p=reject policy during SMTP with 550 5.7.1. The Authentication-Results header shows dmarc=fail action=oreject in both cases, so check that header before you treat a 5.7.1 bounce from Microsoft as a spam block.
How to fix the 550 5.7.509 error
- Check whose domain is in the From addressIf it's a domain you don't control, change how the message is built: send from an address on your own domain and put the other person's address in Reply-To.
- Read the headers in the bounceMicrosoft includes the original message's headers in the bounce it sends back. Find the spf, dkim and dmarc results and the domains beside them.
- Sign with DKIM for the From domainSet up DKIM at the service that sent the message so it signs with your domain. A DKIM pass for the From domain is enough for DMARC on its own.
- Line up the return-path domainIf you rely on SPF instead, the service's return-path has to use your domain, and the service has to be in that domain's SPF record.
- Read your DMARC reportsAdd a rua address to your DMARC record if it has none. The aggregate reports receivers send there list the servers sending as your domain and whether each one passed.
Frequently asked questions
Why did I get 5.7.509 when I only sent a normal email?
Microsoft's bounce reference says a person gets this bounce when their message failed DMARC and the From domain's policy rejects every failure. If you use a work or school address, the domain's setup is for your email administrator to fix, so forward them the bounce.
Should I change my DMARC policy from reject to none?
Only as a short step back while you find the failing sender, and only if the bounces are your own legitimate mail. With p=none, Microsoft takes no DMARC-specific action on failing mail, forged mail included. Microsoft's DMARC guide recommends reaching reject gradually, through none and quarantine, while you watch the reports.
Can the recipient let my message through?
If they're on Microsoft 365, their administrator can. Microsoft's DMARC guide lists marking a forwarding service as a trusted ARC sealer, which it prefers, a mail flow rule for your sending IP and domain, or an allow entry that expires after 30 days. For Outlook.com, Hotmail and Live.com addresses, Microsoft honors the sender's policy, so fixing your own authentication is the only route, and it works for every recipient at once.
Check your DMARC policy and records
- SPF, DKIM and DMARCFind out why your emails land in spam, and who else can send mail as you.
- DMARC policy: none, quarantine or rejectUnderstand the consequences before tightening how receivers treat failing mail.
- DMARC recordTells receivers what to do with mail that fails, and where to send reports.
- Outlook error 550 5.7.515Find which of SPF, DKIM or DMARC failed for Outlook.com, then fix it at the service that sent the message.