SMTP Error 521: Server Does Not Accept Mail
SMTP Error 521 means “Server Does Not Accept Mail.” The receiving server does not accept any incoming email. The domain exists but its mail server is explicitly configured to reject all mail, or the domain has published a null MX record indicating it does not receive email.
521 5.1.2 mx.example.com does not accept mail
What does 521 mean?
SMTP code 521 means the server at the other end does not accept incoming email at all. This is a permanent failure that indicates the domain is not set up to receive email. Some domains are configured for sending-only or exist purely as website domains with no email functionality.
RFC 7504 defines 521 as a permanent rejection response for servers that never accept mail. Domains that want to signal they do not accept email may publish a null MX record (a single MX record with a period as the target). When you encounter a 521, the recipient address should be removed from your list immediately - there is no point in retrying.
How 521 plays out
521 rejectionWhere 521 sits: soft vs hard bounce
| Soft bounce (4xx) | Hard bounce (5xx) | |
|---|---|---|
| Nature | Temporary | Permanent |
| SMTP class | 4xx | 5xx |
| What to do | Let it retry | Suppress the address |
| Recoverable? | Often | No |
| 521 is | ✓ this code |
Common causes of 521
- Domain has a null MX record indicating it does not accept email
- Server is configured for outbound-only email
- Domain is not set up for email reception
- Organization has deprecated email for this domain
How to fix 521
- Remove the address from your mailing list immediately - this domain does not accept email
- Verify the domain MX records using an MX Lookup tool
- Check if you have the correct domain for the recipient
- Look for an alternative contact address on the correct domain