SMTP
"SMTP Error 517" isn't a standard RFC 5321 reply code. Learn what really triggers it (usually an invalid sender mail attribute), how to verify it, and how to fix it.
Updated Jul 1, 2026
The short answer
"SMTP Error 517" is not a standard SMTP reply code. RFC 5321 defines no 51z codes, and the second digit "1" denotes an informational response, not a permanent failure, so a "517" rejection is non-standard. Third-party vendor lists disagree on what it means in practice — some tie it to a malformed sender "mail" attribute (often Exchange/Active Directory), others to the recipient server blocking the sender for policy reasons. Fix it by reading the full server response and validating the sender address, headers, and authentication.
No — 517 is not a reply code defined by the SMTP standard. RFC 5321 §4.2.1 lays out the three-digit reply structure, and the second digit carries a specific meaning:
x0z — Syntaxx1z — Informationx2z — Connectionsx3z/x4z — Unspecifiedx5z — Mail systemA leading 5 means a permanent negative completion (the request will not be accepted), but the 1 in the second position means informational. A "permanent informational" reply is a contradiction, which is why the RFC defines no 51z codes at all. The closest standardized code is 521 ("server does not accept mail," RFC 7504). There is no 517 in RFC 5321, RFC 7504, or the major ESP catalogs (SendGrid/Twilio, Amazon SES, Mailgun).
So if you literally see 517 in a bounce or log, treat it as a vendor- or appliance-specific string, not a protocol code. The most honest fix is to read the full text the server returned alongside it.
The "517" label circulates on third-party code lists, but those lists don't agree with each other. One common framing pairs it with the text "Problem with senders mail attribute, check syntax" — pointing at the sender side, and in practice often showing up in Microsoft Exchange / Active Directory environments where a user object's mail attribute (the primary SMTP address) is missing, malformed, or contains invalid characters. The originating server rejects the message before it ever reaches the recipient's MTA.
Other vendor documentation describes "517" differently — for example, as the recipient server blocking or suspending the sender's address for policy reasons (spam, blacklist, or phishing suspicion), or pairing it with different extended status codes (e.g. 517 5.2.2, 517 4.3.1) that point at mailbox or policy issues rather than a syntax problem. Because 517 was never standardized, there is no single authoritative meaning — different mail systems and vendors have attached different explanations to the same three digits.
This also means the neighboring non-standard labels you may see aren't governed by one coherent convention either:
None of those three are RFC reply codes. Given the disagreement across sources, the full response text from the specific server that issued it is the only reliable signal for what a "517" actually means in your case.
MAIL FROM / From address is a syntactically valid RFC 5321 address — no spaces, no leading/trailing dots, no invalid characters, and a real domain.mail and proxyAddresses attributes. For the affected user(s), ensure the mail attribute is populated with a valid, correctly-cased SMTP address and that proxyAddresses has exactly one primary SMTP: entry. Remove stray whitespace or non-ASCII characters.From, Sender, or Return-Path headers can trigger sender-attribute rejections. Send a test through a tool that shows raw headers.From/envelope sender, some servers reject with a custom message. Align them (or grant send-as permission).If you cannot reproduce or locate the source, contact the operator of the rejecting server with the full response text — because 517 is non-standard and vendors define it inconsistently, only that server's own documentation can tell you its exact intent.
With Courier
References
FAQ
No. RFC 5321 defines no 51z reply codes. The second digit "1" means an informational response, which conflicts with the "5" permanent-failure class, so 517 is structurally invalid as a standard code. It is a vendor- or appliance-specific string, and different vendors define it differently — some point to an invalid sender mail attribute (often Exchange/Active Directory), others to the recipient server blocking the sender for policy reasons.
One API, every provider
Courier connects to your email, SMS, and push providers, handles retries and failover, and surfaces delivery errors in plain language.
Reply-code definitions per RFC 5321 §4.2.1, §4.2.3. Last reviewed Jul 1, 2026. Courier is not affiliated with third-party providers; error behavior may vary by implementation.
© 2026 Courier. All rights reserved.