What does “relay denied” mean?
Still have a question, spotted an error, or have a better explanation or a source we should cite?
You hit send, and instead of a delivery confirmation, you get back something like "relay denied" or "relaying not permitted." Frustrating. But the error is actually pretty specific about what went wrong.
Relaying is when a mail server forwards your message onward to another server on your behalf. Think of it as asking a post office to pass your letter to a different branch. Most mail servers only do this for senders they recognize and trust. If you're not on that list, they refuse.
There are three common reasons a server throws this error at you.
You connected to the wrong server. Every domain has MX records that point to the servers responsible for handling its mail. If you connect to a server that isn't listed for that domain, it has no idea why you're there and won't forward anything.
You're missing authentication. Most legitimate mail servers require you to prove who you are before they'll relay anything. That usually means providing SMTP credentials. If your mail client or sending setup skips that step, the server won't play along.
Anti-spam rules blocked you. Servers actively guard against "open relay" abuse, where spammers exploit any server willing to forward mail for strangers. Even if you're a legitimate sender, a misconfigured setup can look like exactly that kind of abuse.
The typical SMTP codes you'll see are 550 or 553 with text like "relay not permitted" or "relaying denied." The enhanced code is usually 5.7.1 (sender not authorized).
To fix it, start here. Confirm you're connecting to the correct outbound SMTP host for your sending domain. Check whether the server requires authentication and that your credentials are correct. If you're using an ESP like Postmark or Mailgun, double-check that your sending domain is verified and that your API key or SMTP password is still valid.
Still stuck? Our email header analyzer can help you read exactly what the receiving server said and where the handshake broke down. Or drop a message through our SOS hotline if you want a human to look at it with you.
Contributors
Who worked on this answer
Every name links to their profile. Every company links to their site. Real people, real accountability.