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.
| Code | 521 |
| Meaning | Host does not accept mail |
| Kind | Permanent failure — the sender gives up |
| Sent in reply to | The connection greeting |
| What the sender does | Gives up at once — though Postfix first tries the next MX host |
| Defined in | RFC 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
| Who | What they say |
|---|---|
| Postfix | postscreen’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.
Sources
Checked on 27 September 2026 against these official sources:
- RFC 7504: SMTP 521 and 556 Reply Codes — rfc-editor.org
- RFC 1846: SMTP 521 Reply Code — rfc-editor.org
- Simple Mail Transfer Protocol (SMTP) Enhanced Status Codes Registry — iana.org
- Postfix Configuration Parameters — postfix.org
- Postfix Postscreen Howto — postfix.org