Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnvelopeFrom Domain cannot be extracted for SA 3.4.2 (SPF alignment fails) #11

Open
ouvtam opened this issue Dec 13, 2022 · 1 comment

Comments

@ouvtam
Copy link

ouvtam commented Dec 13, 2022

SpamAssassin 3.4 does not support the special tag ":host" when extracting the sender domain in
$pms->get('EnvelopeFrom:host', undef)

$mfrom_domain = $pms->get('EnvelopeFrom:host', undef);

Same goes for $pms->get('From:domain', undef);

$mfrom_domain = $pms->get('From:domain', undef);

@ouvtam
Copy link
Author

ouvtam commented Dec 23, 2022

Thanks for confirming and fixing the bug.

In general, it would make sense NOT to fall back to 'From:domain' when no sender is available. Otherwise SPF always aligns and DMARC check can be circumnavigated.

Having a null sender should only pass DMARC if DKIM is valid/aligned or SPF HELO is valid/aligned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant