Opens in a new tab

SMTP 521: host does not accept mail — what it means

521 is the greeting of a server that never accepts mail — a host that runs something on port 25 only to say no. It lets senders give up at once instead of retrying for days. It was added to SMTP in 2015.

Code521
MeaningHost does not accept mail
KindPermanent failure — the sender gives up
Sent in reply toThe connection greeting
What the sender doesGives up at once — though Postfix first tries the next MX host
Defined inRFC 7504 (June 2015)

Paste your bounce

Paste the line with the code — or the whole bounce: we explain each code in it, say whether the sender will try again, and link the service’s own page where it has one. It is read in your browser; nothing is sent.

What causes it

  • The domain’s MX points at a host that does not take mail.
  • A filter that drops a client it has judged a bot — Postfix’s postscreen answers 521 as it disconnects.

What to do

  • If the domain should take mail, its MX records point at the wrong host.
  • If postscreen dropped you: your server failed a test before the greeting — check its reputation and that it waits for the banner.

What each provider means by it

WhoWhat they say
Postfixpostscreen’s drop action closes the connection with 521.

Worth knowing

For refusing particular clients, 554 stays the code; for a domain that takes no mail at all, the right record is a null MX, answered with 556.

Related: 556, 554.

Sources

Checked on 27 September 2026 against these official sources:

See every bounce before your customers do

Add your domain and send us a test message: we show what a receiving server saw — authentication, reverse DNS, blocklists, TLS — and monitor the servers you send from for blocklistings every day. Free for your first domain.

Create a free account