You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2020/07/06 00:18:36 UTC
[Bug 7831] DKIM_VALID_AU does not get set properly when mailing from
a subdomain
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7831
--- Comment #8 from Rob Mosher <ny...@countercultured.net> ---
also, PerMsgStatus->_get("EnvelopeFrom") is broken when there are multiple
Return-Path headers specified.
I should be using get("EnvelopeFrom:addr") in this patch, but it wasn't working
right in my tests. I'll update this patch to use it properly and include a
patch to fix PerMsgStatus.pm
I've also found some bugs in SPF.pm, some of that due it returning junk when
there are multiple Return-Path headers found. Others due to not checking for
empty strings. I'll open up a bug report for all of these.
Testing:
$sender = $scanner->get("EnvelopeFrom:addr");
dbg("spf: pms:from:addr " . $sender);
dbg("spf: pms:from:raw " . $scanner->get("EnvelopeFrom:raw"));
dbg("spf: pms:from " . $scanner->get("EnvelopeFrom"));
dbg("spf: pms:get:rp " . $scanner->get("Return-Path"));
$ grep Return-Path: mail2.txt
Return-Path: <us...@domain.com>
Return-Path: <us...@domain.com>
dbg: spf: pms:from:addr user@domain.com> <user@domain.com
dbg: spf: pms:from:raw user@domain.com>
dbg: spf: pms:from user@domain.com>
dbg: spf: pms:get:rp <us...@domain.com>
But with only one Return-Path:
dbg: spf: pms:from:addr user@domain.com
dbg: spf: pms:from:raw user@domain.com
dbg: spf: pms:from user@domain.com
dbg: spf: pms:get:rp <us...@domain.com>
--
You are receiving this mail because:
You are the assignee for the bug.