What the message looks like
553 5.7.1 <info@example.com>: Sender address rejected: not owned by user anna@example.comCommon causes
reject_sender_login_mismatchis active and the sender address is missing fromsmtpd_sender_login_maps.- Sending from a shared address (info@, noreply@) with a personal login.
- The application sets a different envelope sender than the login address.
- The map only lists the address itself, not aliases or capitalised variants.
Check
- Show sender restrictions and login map
postconf smtpd_sender_restrictions smtpd_sender_login_maps - Check which login owns the sender address
postmap -q info@example.com $(postconf -h smtpd_sender_login_maps) - Show the submission port settings
postconf -M submission/inet - Find rejected senders in the log
Fix
- For shared addresses add an entry to the login map, e.g.
info@example.com anna@example.com,ben@example.com. - For hash maps run
postmap, thenpostfix reload. - In applications set MAIL FROM to the login address and use the desired address only as Reply-To.
- Do not just disable the check: without it any logged-in user can send as anyone.
Typical scenario
Anna logs in with her own account and sends on behalf of the shared address info@example.com. This used to work through an alias, but since the Postfix configuration was hardened it returns '553 5.7.1 Sender address rejected: not owned by user anna@example.com'. Run postmap -q info@example.com hash:/etc/postfix/sender_login_maps to see which login names are registered for that sender address. If anna@example.com is missing there, that is the cause.
FAQ
How is this different from 550 5.7.1?
553 5.7.1 is about the sender address when you send. 550 5.7.1 is usually a recipient-side policy or relay access denied.
Can one address belong to several users?
Yes. The login map accepts several logins separated by commas. With SQL maps the query returns several rows.
What is smtpd_sender_login_maps for?
The table stops authenticated users from using arbitrary sender addresses. Without it a hijacked account could send mail in the name of the management. With it, the damage stays limited to the addresses assigned to that account.
How do I allow several people to use a shared address?
The map can hold several login names per sender address, separated by commas. Alternatively, use a dedicated account for the shared address and hand its credentials only to the authorised people or systems.
Why does the website's contact form fail with this error?
The form logs in with one account but sets a different sender address, for example the visitor's. Use an address of your own domain that matches the account as the sender and put the visitor's address into Reply-To.