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 email@example.com sends email to my iRedMail user firstname.lastname@example.org.
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 email@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 firstname.lastname@example.org
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 (email@example.com in example above)? Something like SRS does?
- Urgent issue? Pay iRedMail developer to solve it remotely at $39.