spamassassin-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzilla-dae...@spamassassin.apache.org
Subject [Bug 7831] DKIM_VALID_AU does not get set properly when mailing from a subdomain
Date Mon, 06 Jul 2020 00:18:36 GMT
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7831

--- Comment #8 from Rob Mosher <nyt-apachebz@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: <user@domain.com>
Return-Path: <user@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 <user@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 <user@domain.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message