1

Topic: SMTP with "from" address different than the authenticated email

Hi,
this question might be related to a old forum topic:
http://www.iredmail.org/forum/topic5076 … ients.html

I'm trying to send via 'SMTP' emails in which the 'from' address is different than the authenticated address.
basically an account has a user 'usera@domain1.ltd' but, using authenticated SMTP would like to send a message from 'userb@domain2.ltd'.
domain2.ltd is not hosted in the same server (but SPF records for domain2.ltd allows mail to be sent from domain1.ltd).
I believe that this is a postfix check. how can i disable it on a domain level (allow users of 1 domain to send email this way)?
Thank you.



==== Required information ====
This is likely a generic postfix settings issue, but here it goes:
- iRedMail version: 0.9.6
- Linux/BSD distribution name and version: FreeBSD 10.3.x
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro?: yep
- Related log if you're reporting an issue: -
====

----

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

2

Re: SMTP with "from" address different than the authenticated email

Add parameter below in /opt/iredapd/settings.py, then restart iredapd service:

ALLOWED_LOGIN_MISMATCH_SENDERS = ['domain1.ltd']

With this setting, all users under 'domain1.ltd' are allowed to send email as (any) different From address.