Skip to content
iBlockSpam
SMTP error code · Standard (RFC)

SMTP 521: this host does not accept mail

521 Permanent failure (5xx): the message bounced
By iBlockSpam Team Checked against sources 2 sources How we check our content
What it means

The server you connected to does not accept mail under any circumstances. Your message reached a host that is not a mail server for that domain.

What 521 means

RFC 7504 added the 521 reply code. A server sends it when the connection opens, instead of the usual 220 greeting, to say the host does not accept mail under any circumstances. It is meant for dummy SMTP servers whose only job is to tell connecting systems that the host never takes mail.

RFC 7504 is specific about what 521 is not for: it should not be used to reject mail from particular hosts or addresses. For those cases 554 is more appropriate. So a 521 is about the destination, not about you.

If you get a 521 when sending to a domain, the domain's mail routing is the problem. Either its MX records point at a host that doesn't take mail, or the domain has no MX records and your server fell back to the domain's own address (its A record), which belongs to a web server. Run an MX lookup on the recipient's domain and let the recipient know what you found.

Likely causes

  • The domain has no MX record, so senders fall back to its website's IP address.
  • An MX record points to a host that doesn't run a mail service.
  • The domain intentionally doesn't receive email.

How to fix it

If you sent the message

  1. Check the recipient's domain with an MX lookup and confirm the address is spelled correctly.
  2. Tell the recipient by another channel; only they can fix their mail routing.

If you're the recipient or their admin

  1. Publish correct MX records for your domain that point to your mail provider or filtering service.
  2. If the domain should not receive mail at all, publish a null MX record (RFC 7505) so senders fail fast with a clear reason.

Frequently asked questions

Is a 521 error a block against my server?

No. RFC 7504 says 521 should not be used to reject mail from particular hosts or addresses. It means the host you reached never accepts mail, so the recipient's mail routing needs checking.

How do I stop senders getting 521 for my domain?

Publish MX records that point to the servers that should receive your mail. If the domain doesn't use email, publish a null MX record instead so senders know right away.

Sources

  1. RFC 7504: SMTP 521 and 556 Reply Codes
  2. RFC 7505: A "Null MX" No Service Resource Record for Domains That Accept No Mail

Provider messages are quoted as the provider publishes them. Servers can change their wording, so the bounce you received may differ slightly.