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:
I run into an issue with forwarding emails. Can you please advice?
External user firstname.lastname@example.org sends email to my iRedMail user email@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 firstname.lastname@example.org - 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 email@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 (firstname.lastname@example.org in example above)? Something like SRS does?