1

Topic: Login mismatch senders - allow only specific address to be mismatched

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.3.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable installe
- Linux/BSD distribution name and version:  Centos 7.9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MYSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello.

ALLOWED_LOGIN_MISMATCH_SENDERS can allow one or more users to send as another user.

Now I want to restrict that user and allow to spoof only specific address.
For example:
in iredapd i have: ALLOWED_LOGIN_MISMATCH_SENDERS = ['user@example.com']
i want to restrict user@example.com to be able to spoof only user123@example.com address but not user1234@example.com

How can i achieve that?

Thank you.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Login mismatch senders - allow only specific address to be mismatched

iRedAPD doesn't support this yet. Would you like to sponsor us to implement this feature?

3

Re: Login mismatch senders - allow only specific address to be mismatched

I already solved this.

I disable reject_sender_login_mismatch plugin in iRedAPD and added to Postfix under smtpd_sender_restrictions.
Than I add some custom select queries in postfix mysql files: sender_login_maps.cf, virtual_mailbox_maps.cf, virtual_mailbox_domains.cf
I combine already present select queries and new queries with UNION.

4

Re: Login mismatch senders - allow only specific address to be mismatched

Just a remind, you need to take care of the changes to these modified files in further iRedMail upgrade (if there's any).