“Sender address rejected” means a mail server refused the address you are sending from. The rejection is about the envelope sender, the address in the SMTP MAIL FROM command, which usually matches your From address. The words after it tell you exactly why.
553 5.7.1 <alerts@example.com>: Sender address rejected: not owned by user app@example.com
553 5.7.1 <alerts@example.com>: Sender address rejected: not logged in
450 4.1.8 <bounce@exmaple.com>: Sender address rejected: Domain not found
554 5.7.1 <spam@example.net>: Sender address rejected: Access denied
What it means
This wording comes from Postfix, the most common open-source mail server, and from servers that copy it. Each line is the result of a different restriction:
| Reason | Postfix restriction | Default reply |
|---|---|---|
| not owned by user | reject_sender_login_mismatch |
553 5.7.1 |
| not logged in | reject_unauth_sender_login_mismatch (or the same check above) |
553 5.7.1 |
| Domain not found | reject_unknown_sender_domain |
450 4.1.8 (unknown_address_reject_code) |
| Access denied | check_sender_access table entry |
554 5.7.1 (access_map_reject_code) |
553 in RFC 5321 means “mailbox name not allowed”. 5.7.1 is “delivery not authorized” and 4.1.8 is “bad sender’s system address” in RFC 3463.
Why it happens
- Sending as someone else. Your app logs in as
app@example.combut sets From toalerts@example.com, and the server’ssmtpd_sender_login_mapssays only another user owns that address. - No login. Your code connects without SMTP AUTH while using a local domain address.
- A typo or a fake domain in the sender, like
exmaple.comornoreply@localhost, so DNS lookup fails. - A domain with no DNS records. A sending subdomain like
mail.example.comwith no A or MX record. - A block list entry. The receiving admin blocked your address or domain.
How to fix it
-
Not owned by user: send as the address you log in with, or create the sender address as an alias of your login. Admins add the mapping to
smtpd_sender_login_maps:alerts@example.com app@example.com -
Not logged in: enable SMTP authentication in your client or code, on port 587 with STARTTLS or 465 with TLS.
-
Domain not found: fix the spelling, or publish DNS for the sending domain. At minimum an MX or A record; for real delivery, also SPF, DKIM and DMARC (setup guide).
send.example.com. MX 10 feedback-smtp.example-provider.net. send.example.com. TXT "v=spf1 include:<your provider's SPF domain> -all" -
Access denied: contact the recipient’s admin; you are on their block list.
-
Check the Return-Path your library sets. Some set the envelope sender separately (for example
envelope.fromin Nodemailer). Make it an address on a real domain.
Which server sent it
- Postfix and many hosting control panels use this exact text, as shown.
- Gmail words sender problems differently:
553 5.1.7 The sender address address is not a valid RFC 5321 address.per Google’s list. - Microsoft 365 uses NDR codes such as
5.1.8 Access denied, bad outbound senderfor accounts blocked for spam. - Yahoo says its servers check that the MAIL FROM and From domains exist with an SOA lookup, and reject or defer unresolvable domains with 451 or 554.
Is it temporary?
The 553 and 554 replies are permanent, so fix the setting and resend. 450 4.1.8 Domain not found is temporary by default because a DNS lookup can fail briefly; your server retries. If your domain really has no records, the retries will fail until it expires. If you see the same reason with 550 and 5.1.8, the admin has made it permanent.
How Mailcandor handles it
Mailcandor checks that you verified the domain you send from, and gives each domain a bounce MX and SPF on send.yourdomain, so the envelope sender always resolves. Sending keys can be locked to one domain. When a message bounces, the deliverability coach explains it in plain English and hard bounces are suppressed automatically. Decode any reply with the free bounce code lookup, browse the error library, and see more free tools.