SRS does this fine. But if the From domain (not the envelope from, the domain in the "From" header) publishes a DMARC record with a reject rule, Gmail may still decline the forwarded message. They say as much in their documentation. While SRS handles almost everything fine, Gmail will still sometimes reject forwarded email that they otherwise would have accepted were it sent directly to a Gmail account, and sometimes there is nothing you can do about this other than not forward that email.

There will be no scenario in which Gmail accepts 100% of forwarded email (unless you're working with a small sample size to declare that statement invalid). This is just something you have to keep in mind, as Gmail never promised to be the perfect recipient of forwarded emails.

On 2023-11-05 11:45, Mihamina RKTMB via Exim-users wrote:

Hi all,

I have an Exim installation where I just setup aliases.

exim.conf:

[...]
local_domains= @:myfoobar.com
[...]

aliases:

[...]
mihamina:rakotomandi...@gmail.com
[...]

In other words, if I send a message to miham...@myfoobar.com, it gets forwarded to rakotomandi...@gmail.com. When I test, the sender is miham...@atscom.io and the receiver is miham...@myfoobar.com. The message is effectively forwarded to rakotomandi...@gmail.com, but the "From:" header is kept to miham...@atscom.io.

The problem:
GMail rejects the message because my Exim server sends a message with a "From:" set to miham...@atscom.io but atscom.io's SPF does not allow this server to send such messages.
I have no authority on senders domains SPF (that's fair).

I guess there is a setting I have to set on Exim in order to fix this?

Regards

--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to