Topic: reject_sender_login_mismatch and aliases
==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PgSQL
- Linux/BSD distribution name and version: Debian 7
- Related log if you're reporting an issue:
====
Hi all,
I have a problem sending email from aliased email address.
Situation:
- mailbox.username = 'me@example.com'
- alias.address = 'something@example.com', alias.goto = 'me@example.com'
Now, when I send email from something@example.com with SMTPAUTH me@example.com, the login succeeds but the mail is rejected with message "Sender address rejected not owned by user me@example.com"
I have investigated the configuration and it seems related to postfix option reject_sender_login_mismatch (which is a good thing) and the query stored in /etc/postfix/pgsql/sender_login_maps.cf
The query is:
SELECT mailbox.username FROM mailbox,domain WHERE mailbox.username='%s' AND mailbox.domain='%d' AND mailbox.domain=domain.domain AND mailbox.enablesmtp=1 AND mailbox.active=1 AND domain.backupmx=0 AND domain.active=1
In my opinion is the query wrong as it allows the mailbox owner to send only emails from mailbox.username
Correct me if I'm wrong but the mailbox owner should be allowed to send email from all aliases pointing to his/her mailbox.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.