553 5.7.1 means the mail server refused the sender address you gave it. Your app connected and maybe logged in, then said “this mail is from X”, and the server said you are not allowed to send as X. Nothing was sent.
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
What it means
553 in RFC 5321 means “Requested action not taken: mailbox name not allowed”. The enhanced code 5.7.1 in RFC 3463 means “Delivery not authorized, message refused”. Together: the server will not let this client use this sender address. The two lines above are the exact replies Postfix sends from its reject_sender_login_mismatch and reject_unauth_sender_login_mismatch checks.
Why it happens
- Your login does not own the address. You authenticate as
app@example.comand send Fromalerts@example.com, and the server’s sender login map assigns that address to someone else, or to no one. - You did not log in. The address belongs to a local user, but your connection is anonymous.
- You are sending as a different domain. Web hosts and company mail servers usually block sending as a domain they do not host, such as a Gmail address.
- A contact form uses the visitor’s address as From. The form tries to send “from” the person who filled it in. Put their address in Reply-To instead.
- A custom server rule rejects certain sender addresses with 553.
How to fix it
-
Send as the address you authenticate with. The simplest fix: make the From and envelope sender match your SMTP username.
-
Turn on SMTP authentication if your app connects without it, on port 587 with STARTTLS or 465 with TLS.
-
Use Reply-To for other addresses. For contact forms:
From: Website <forms@example.com> Reply-To: Visitor <visitor@example.net> -
Ask the admin to allow the address. In Postfix, add it to
smtpd_sender_login_mapsagainst your login:alerts@example.com app@example.com -
For other domains, send through a service where you have verified that domain, and publish SPF, DKIM and DMARC for it (setup guide).
Which server sent it
- Postfix, used by most hosting providers and control panels, sends the exact 553 5.7.1 texts above. See sender address rejected for its other variants.
- Gmail uses 553 for address syntax problems instead:
553 5.1.7 The sender address address is not a valid RFC 5321 address.and553 5.1.3for recipients, per Google’s list. - Microsoft 365 reports sender problems with other codes, such as
5.1.8 Access denied, bad outbound sender. - Yahoo uses 553 among its permanent errors, for example when a MAIL FROM or From domain does not resolve.
- Other servers may use 553 5.7.1 with their own wording; the meaning, “not allowed to use this sender”, is the same.
How to tell 553 5.7.1 from similar errors
If the text mentions the recipient or “Relay access denied”, the problem is where you are sending, not who you are sending as: see relay access denied. If the code is 554 or 550 with 5.7.1 and mentions a blocklist or spam, the receiving server is judging your reputation instead. 553 with 5.7.1 nearly always points at the sender address itself.
Is it temporary?
No. 553 is a 5xx permanent reply: the server will reject the same sender every time. Change the sender address or your login, then send again. The recipient is not the problem, so do not suppress their address.
How Mailcandor handles it
Mailcandor lets you send from any address on a domain you have verified, and sending keys can be locked to one domain so a leaked key cannot send as another. 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.