Topic: Forward of emails and SPF
==== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PgSQL
- Linux/BSD distribution name and version: Debian7/Wheezy
- Related log if you're reporting an issue:
====
Hi Zhang,
I run into an issue with forwarding emails. Can you please advice?
Situation:
External user user@1.example.com sends email to my iRedMail user internal@2.example.com.
The email gets delivered correctly into local mailbox (according to alias.goto attribute in DB). But I have in the goto another recipient (copy of all emails) to external address forward@3.example.com - the email is redirected, but with original sender in body of email (this is fine) but also in SMTP header "MAIL FROM" (this is not good). The targer mailserver reject the email saying my iRedMail is not authorized to send emails in behalf of user@1.example.com
In short, original sender has SPF records set for his domain and the recipient of the forwarded email is checking SPF and doesn't allow me to do it...
Do you have any solution? e.g. rewrite the MAIL FROM to the original recipient (internal@2.example.com in example above)? Something like SRS does?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.