Closed djc closed 6 years ago
From my understanding, DMARC passes if at least one of two conditions is met:
Clearly, forwarding breaks the first condition, but if you keep the original DKIM signature, the second condition should still hold and the DMARC check pass. Just make sure that you do not accidentally replace the original DKIM signature with your own.
This message doesn't have a DKIM signature. As the From
header doesn't match the SMTP MAIL FROM domain (it was not rewritten by postsrsd), the receiving server would then rightfully refuse it.
If you ask me, deploying a reject
DMARC policy without routinely signing outgoing mails with DKIM is asking for trouble, for the exact reason you're encountering now. This is something that has to be fixed by registar.tld, so I would file a bug report with them.
Theoretically, messing with the From: header could help, but this will introduce all kinds of side effects, most notably it will leak the ephemeral SRS addresses in a user-visible way; the addresses might end up in someone's address book, even though they will stop working after a few days.
That makes a lot of sense. Thanks for the explanation!
I'm using postsrsd mostly successfully on my server (with Postfix), which I use to host a number of domains and forward (most of the) incoming mail to some GMail addresses. In order to make sure GMail accepts the forwarded messages, I'm using postsrsd. However, today I noticed that messages from a domain registrar are being rejected by GMail:
In the server logs, I see that the Return-Path is correctly rewritten:
srs_forward: <support@registrar.tld> rewritten as <SRS0=8CcT=FX=registrar.tld=support@example.td>
.I'm using the recommended postfix config from the README:
My hypothesis is that, because the Sender and From addresses are not rewritten, the DMARC checks fail. I tried to add
header_sender
to the postfix config, but that doesn't seem to have helped. Any suggestions for if/how postsrsd can help with this problem?