Topic: rewrite smtp mailfrom
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian V7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
This is merely a question on how to
the issue is quite simple: single alias forwards mail to some external mailbox
an email incoming from a strongly SPF-secured domain should be forwarded by this alias, but the final recipient (external mailbox) rejects this mail as it says its coming from the original sender in the smtp dialogue, the forwarding mailserver (iredmail) is not permitted to send mail from this domain (because of SPF) therefore the forward never reachets its destination.
the solution would be to rewrite the smtp dialog mailfrom portion to the forwarding alias mailbox while preserving the mail-from-header within the original mailcontent.
my question would be: is there a smart way to achieve this using iRedMail?
thx
hk
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.