Menu

#234 DMARC alignment check fails when the address in the From header has a trailing whitespace

1.1.3
open
nobody
None
2018-08-25
2018-08-25
No

Hello,
DMARC alignment check fails when the address in the From header has a trailing whitespace.

Here is a test using opendmarc-check

$ ./opendmarc-check "John Doe <johndoe@yahoo.com >"
opendmarc-check: opendmarc_policy_query_dmarc(John Doe <johndoe@yahoo.com >): Looked up domain lacked a DMARC record
$

$ ./opendmarc-check "John Doe <johndoe@yahoo.com>"
DMARC record for John Doe <johndoe@yahoo.com>:
Sample percentage: 100
DKIM alignment: relaxed
SPF alignment: relaxed
Domain policy: reject
Subdomain policy: unspecified
Aggregate report URIs:
mailto:dmarc_y_rua@yahoo.com
Forensic report URIs:
        (none)
$

Here is a fix that worked for me:

opendmarc-1.1.3/opendmarc/opendmarc.c

@@ mlfi_eom(SMFICTX *ctx)
        }

        ostatus = opendmarc_policy_store_from_domain(cc->cctx_dmarc,

-                                                    from->hdr_value);
+                                                    dfc->mctx_fromdomain);
        if (ostatus != DMARC_PARSE_OKAY)
        {
                if (conf->conf_dolog)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB