The error "553 5.7.1 Sender address rejected: not owned by user" means the SMTP server authenticated you as one account but you asked it to send mail from an address that account is not allowed to use. The check happens at the MAIL FROM command, on the envelope sender. The server compares the address you gave with the login you authenticated as, finds no permission, and refuses the transaction before any message is transferred.
This is a configuration problem, not a delivery problem. Either change the sender address to one the login owns, or change the server (or provider account) so that the login is allowed to send as that address. This guide explains how the check works in common systems, shows the Postfix configuration that produces it and its fix, and covers the provider-specific variants for hosted services.
What 553 means
RFC 5321 defines 553 as "requested action not taken: mailbox name not allowed (e.g., mailbox syntax incorrect)". Servers use it for two situations: the address is syntactically wrong, or the address is not acceptable in context. The "not owned by user" wording belongs to the second. It is common on shared hosting, cPanel and Postfix servers, and on any submission service that ties senders to logins to stop users from forging each other's addresses. It is a permanent (5xx) reply for that attempt.
MAIL FROM:<[email protected]>
553 5.7.1 <[email protected]>: Sender address rejected: not owned by user [email protected]The reply often names the authenticated user, which is the quickest way to see the mismatch: you logged in as [email protected] but asked to send as [email protected].
The two sender addresses involved
Every message has an envelope sender (MAIL FROM, which receives bounces) and a header From (what the recipient sees). The 553 check normally looks at the envelope sender, although some servers also check the header From. Libraries frequently set them to different values, and that is a classic cause: the application sets the header From to the brand address, while the library uses the SMTP login as the envelope sender, or the other way around. See envelope from and Return-Path versus From.
| Value | Set by | Checked by 553 rule |
|---|---|---|
| Envelope sender (MAIL FROM) | SMTP client library or application option | Yes, in most configurations |
| Header From | Message headers | Sometimes, if the server enforces it |
| Authenticated login | AUTH command | This is what the sender must match |
| Return-Path in delivered message | Added by the final server from MAIL FROM | No, it is a record of the envelope sender |
Cause 1: From differs from the login
The simplest case. A web form, CMS or script authenticates as one mailbox and sends from another address, often no-reply@ or info@. If those are separate mailboxes or aliases the login has not been granted, the server refuses them.
- Look at the 553 text for the authenticated user.
- Compare it with the envelope sender your application uses. Many libraries have a separate setting, such as a return path or envelope sender option.
- Either log in as the account that owns the address, or send from the login's own address and set a Reply-To for the public address. See Reply-To.
- If you need several From addresses, add them as aliases of the account, or create a send-as permission, as described below.
Cause 2: Postfix sender login maps
On Postfix, this message is produced by reject_sender_login_mismatch together with a map of which logins own which addresses. The configuration below rejects mismatches and allows the listed mappings.
# /etc/postfix/main.cf
smtpd_sender_login_maps = hash:/etc/postfix/sender_login_maps
smtpd_sender_restrictions =
reject_sender_login_mismatch,
permit_sasl_authenticated
# /etc/postfix/sender_login_maps
# envelope sender address login(s) allowed to use it
[email protected] [email protected]
[email protected] [email protected], [email protected]
@example.org [email protected]postmap /etc/postfix/sender_login_maps
postfix reload
# Test what Postfix would do
postmap -q [email protected] hash:/etc/postfix/sender_login_mapsIf the address is missing from the map, the login is rejected with exactly this message. Add the line, rebuild the map with postmap, and reload. If you use a database-backed virtual domain setup, point smtpd_sender_login_maps at the same table that defines mailboxes and aliases, so owners are derived automatically. Order matters in smtpd_sender_restrictions: place the mismatch check where only authenticated sessions reach it, to avoid rejecting unauthenticated inbound mail incorrectly. For relay setup on Postfix see Postfix SMTP relay.
Cause 3: hosting panels and shared servers
Shared hosting providers enforce the rule to stop customers on the same server from forging each other's domains. cPanel and similar panels typically require the sender to be a mailbox or forwarder you own in the account, and may check the header From as well. Create the missing address as a mailbox or forwarder in the panel, or send from an existing one. Server mail scripts that call mail() or sendmail directly are subject to the same checks. See server mail scripts and PHPMailer SMTP setup.
Cause 4: hosted email providers
Large providers prevent authenticated users from using arbitrary senders, with their own wording.
| Provider | What you see | Fix |
|---|---|---|
| Gmail SMTP | Message sent but From rewritten to the account address | Add the address as a verified Send mail as alias in the account settings. See Gmail SMTP settings |
| Microsoft 365 | 550 5.7.60 SMTP; Client does not have permissions to send as this sender | Grant Send As permission on the mailbox, or send as the login. See Send As and on behalf |
| Sending service with domain verification | Sender rejected until the domain or address is verified | Verify the domain. See verifying your sending domain |
| Hosting mail server | 553 5.7.1 not owned by user | Create the mailbox or alias and authorise it for the login |
Menu names and permission models in these products change, so confirm the steps in the provider's current documentation.
Related 553 messages that look similar
- 553 5.1.3 invalid address. The address syntax is wrong, such as a missing @, spaces or an illegal character. Fix the address string, and check for stray angle brackets or display names in an address-only field.
- 553 5.1.8 bad sender's system address. The sender domain does not resolve. See sender domain not found.
- 553 sorry, your envelope sender has been denied. Policy: the sender address or domain is on a deny list for this server.
- 553 mailbox name not allowed. A generic form that might refer to either the sender or recipient, depending on the command that triggered it.
- 553 relaying not allowed. The recipient is external and you are not authorised to relay. See relay access denied.
Test and verify
Reproduce the rejection with swaks, which makes the envelope sender and the authenticated user explicit and separate.
swaks --server smtp.example.com --port 587 --tls \
--auth LOGIN --auth-user [email protected] --auth-password 'secret' \
--from [email protected] --to [email protected] \
--header 'From: News <[email protected]>' --header 'Subject: sender test'If this reproduces the 553, change --from to the login address and confirm it succeeds. That tells you the login works and only the sender permission is missing. After fixing, send a real message and check the headers of what arrives: the Return-Path should be the envelope sender you intended and the From should show your public address. See reading email headers.
Do not forget authentication alignment
Fixing the 553 gets the message accepted by your own server. Whether it reaches the inbox is a separate question. If the From domain differs from the domain that signs with DKIM or the domain used in the envelope sender, DMARC alignment fails at the recipient. Make sure SPF and DKIM are set up for the From domain. See DMARC alignment and authenticating your sending domain.
Troubleshooting table
| Symptom | Likely cause | Action |
|---|---|---|
| 553 on every message from one script | Envelope sender is not the login | Set the library's envelope sender or login to match |
| 553 only for some From addresses | Only some addresses are mapped | Add the missing mappings or aliases |
| 553 after migrating to a new server | Sender login maps not copied | Recreate maps and run postmap |
| Works from the mail client, fails from the CMS | Client uses the login address as sender, CMS uses another | Align the CMS From setting |
| Accepted but From shows a different address | Provider rewrote the From | Add a verified send-as alias |
| 553 5.1.3 | Syntax problem in the address | Remove display names, spaces and brackets from the address field |
Next steps
Decide on a sender model once. The cleanest is one verified domain, a small set of authorised addresses per credential, and a Reply-To for anything else. Document which application uses which login and which sender address, and add a test message to your deployment checks so a mapping gap is found before customers see it.
Send from verified domains and addresses Verify your domain once, then send from any address on it with authenticated SMTP or the API.
References and further reading
Frequently asked questions
What does 553 sender address rejected not owned by user mean?
The authenticated SMTP login is not permitted to send from the address in MAIL FROM, so the server refused the transaction.
How do I fix 553 not owned by user?
Send from the login's own address, or authorise the address for that login with an alias, sender login map or send-as permission.
Is the header From or envelope sender checked?
Usually the envelope sender (MAIL FROM) is checked, though some servers also enforce the header From.
Why does it happen after I migrate servers?
Sender login maps or aliases are often not copied, so addresses that used to be permitted are now unowned.
Does fixing 553 guarantee inbox delivery?
No. It only gets the message accepted by your server. SPF, DKIM and DMARC alignment still decide acceptance at the recipient.