msimerson / mail-dmarc

Mail::DMARC, a complete DMARC implementation in Perl
Other
33 stars 23 forks source link

Handle invalid DMARC records optimally #39

Closed msimerson closed 9 years ago

msimerson commented 9 years ago

Whether because of PEBKAC, DNS truncation (see #20), or phase of moon, DMARC records arrive via DNS that aren't valid. Our intention is to do the best we can with what we get. Please use this issue to report such observed specimens. The developers will add tests to Mail::DMARC::Policy to assure we are being liberal in what we accept, thereby honoring Jon Postel's Law / aka the Robustness Principle.

marcbradshaw commented 9 years ago
domain=edm.groceryrun.com.au;v=dmarc1;p=none;rua=mailto:dmarc_feedback@inxmail.de<dmarc_feedback@inxmail.de&gt

;; ANSWER SECTION:
_dmarc.edm.groceryrun.com.au. 647 IN    TXT "v=dmarc1\; p=none\; rua= mailto:dmarc_feedback@inxmail.de &amp\;amp\;amp\;amp\;lt\;dmarc_feedback@inxmail.de&amp\;amp\;amp\;amp\;gt\;"
marcbradshaw commented 9 years ago

domain=e.accuquote.com (error: fo:0 should be fo=0)

v=DMARC1;p=none;fo:0;adkim=r;aspf=r;sp=none;rua=mailto:accu_postmaster@accuquote.com
marcbradshaw commented 9 years ago
domain=targetselect.net;v=DMARC1;p=none;rua=mailto:postmaster@targetselect.net;ruf=mailto:postmaster@targetselect.net;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none

;; ANSWER SECTION:
_dmarc.targetselect.net. 78077  IN  TXT "v=DMARC1\; p=none\; rua=mailto:postmaster@targetselect.net\; ruf=mailto:postmaster@targetselect.net\; adkim=r\; aspf=r\; pct=100\; rf:" "afrf\; ri=86400\; sp=none"
marcbradshaw commented 9 years ago
domain=1105insight.com;v=DMARC1;p=none;rua=mailto:postmaster@1105insight.com;ruf=mailto:postmaster@1105insight.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=borsheims.net;v=DMARC1;p=none;rua=mailto:postmaster@borsheims.net;ruf=mailto:postmaster@borsheims.net;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=caasco.ca;v=DMARC1;p=none;sp=none;rua=mailto:dmarc_agg@auth.returnpath.net;ruf=mailto:dmarc_afrf@auth.returnpath.net;rf=afrf;pct100
domain=consumersilver.com;v=DMARC1;p=none;rua=mailto:postmaster@consumersilver.com;ruf=mailto:postmaster@consumersilver.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=coppermail-usa.com;v=DMARC1;p=none;rua=mailto:postmaster@coppermail-usa.com;ruf=mailto:postmaster@coppermail-usa.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=eglancesender.com;v=DMARC1;p=none;rua=mailto:postmaster@eglancesender.com;ruf=mailto:postmaster@eglancesender.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=egroupconsumer.com;v=DMARC1;p=none;rua=mailto:postmaster@egroupconsumer.com;ruf=mailto:postmaster@egroupconsumer.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=eselectsender.com;v=DMARC1;p=none;rua=mailto:postmaster@eselectsender.com;ruf=mailto:postmaster@eselectsender.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=filemail.com;v=DMARC1;p=none;rua=mailto:admin@filemail.com;ruf=mailto:admin@filemail.com;fo:0;adkim=r;aspf=r
domain=fisherprograms.com;v=DMARC1;p=none;rua=mailto:postmaster@fisherprograms.com;ruf=mailto:postmaster@fisherprograms.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=mail-peninsula.com;v=DMARC1;p=none;rua=mailto:umesh@force24.co.uk;ruf=mailto:umesh@force24.co.uk;fo:0;adkim=r;aspf=r;pct=100;rf=afrf;ri=86000;sp=none
domain=reply.myphotobook.de;v=DMARC1;p=reject;adkim=s;aspf=r;rf�rf;pct0
domain=sendergroup.com;v=DMARC1;p=none;rua=mailto:postmaster@sendergroup.com;ruf=mailto:postmaster@sendergroup.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=targetselection.com;v=DMARC1;p=none;rua=mailto:postmaster@targetselection.com;ruf=mailto:postmaster@targetselection.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=theluxurycloset.info;v=DMARC1;p=reject;adkim=s;aspf=r;rf=afrf;;pct=100
domain=trondheim-redcross.no;v=DMARC1;p=none;rua=mailto:postmaster@trondheim-redcross.no;ruf=mailto:johess@trondheim-redcross.no;fo:0;adkim=r;aspf=r;pct=100;rf=afrf;ri=86400;sp=none
domain=vsender-2.com;v=DMARC1;p=none;rua=mailto:postmaster@vsender-2.com;ruf=mailto:postmaster@vsender-2.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=wfyi.org;v=DMARC1;p=none;rua=mailto:dmarc1630@wfyi.org;ruf=mailto:dmarc1630@wfyi.org;fo:0;adkim=r;aspf=r;pct=100;rf=afrf;ri=86400;sp=none
domain=wk1business.com;v=DMARC1;p=none;rua=mailto:postmaster@wk1business.com;ruf=mailto:postmaster@wk1business.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
marcbradshaw commented 9 years ago
domain=edm.groceryrun.com.au;v=dmarc1;p=none;rua=mailto:dmarc_feedback@inxmail.de<dmarc_feedback@inxmail.de&gt
domain=reply.myphotobook.de;v=DMARC1;p=reject;adkim=s;aspf=r;rf�rf;pct0
domain=teogenes.com.br;v=DMARC1;p=quarantine;rua=mailto:retorno@teogenes.com.br;fo:1:d;adkim=r;aspf=r;rf=afrf;sp=quarantine
domain=wkcplatnium.com;v=DMARC1;p=none;rua=mailto:postmaster@wkcplatnium.com;ruf=mailto:postmaster@wkcplatnium.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
marcbradshaw commented 9 years ago
domain=accuquote.com;v=DMARC1;p=none;fo:0;adkim=r;aspf=r;sp=none;rua=mailto:accu_postmaster@accuquote.com
domain=brightworksgroup.net;v=DMARC1;p=none;0;adkim=r;aspf=r
domain=bronzemail-usa.com;v=DMARC1;p=none;rua=mailto:postmaster@bronzemail-usa.com;ruf=mailto:postmaster@bronzemail-usa.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=driveconsumer.com;v=DMARC1;p=none;rua=mailto:postmaster@driveconsumer.com;ruf=mailto:postmaster@driveconsumer.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=econnect1.com;v=DMARC1;p=none;rua=mailto:postmaster@econnect1.com;ruf=mailto:postmaster@econnect1.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=esender1.com;v=DMARC1;p=none;rua=mailto:postmaster@esender1.com;ruf=mailto:postmaster@esender1.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=esender3.com;v=DMARC1;p=none;rua=mailto:postmaster@esender3.com;ruf=mailto:postmaster@esender3.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=lns.com;v=DMARC1;p=none;rua=mailto:dmarc@lns.com;ruf=mailto:dmarc@lns.com;0;adkim=r;aspf=r;pct=100;rf=afrf;ri=86400;sp=none
domain=my-dear-lady.com;v=DMARC1;p=none;rua=mailto:postmaster@my-dear-lady.com;ruf=mailto:postmaster@my-dear-lady.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=newsletter.ironpony.net;v=DMARC1;p=none;rua=mailto:postmaster@newsletter.ironpony.net;ruf=mailto:postmaster@newsletter.ironpony.net;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=vsender-3.com;v=DMARC1;p=none;rua=mailto:postmaster@vsender-3.com;ruf=mailto:postmaster@vsender-3.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
marcbradshaw commented 9 years ago
domain=aeukda.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=anxado.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=avribx.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=ayjiop.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=baayhv.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=beikaa.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=bprixr.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=diibdx.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=dujhfi.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=dwxaqq.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=eebrch.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=eesqpo.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=enmwvf.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=esender2.com;v=DMARC1;p=none;rua=mailto:postmaster@esender2.com;ruf=mailto:postmaster@esender2.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=esender4.com;v=DMARC1;p=none;rua=mailto:postmaster@esender4.com;ruf=mailto:postmaster@esender4.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=etgelw.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=eudrle.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=euzqht.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=eydpuv.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=hijutu.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=hzezbo.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=iafhia.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=iapjue.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=icdiww.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=igisvo.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=ihxhbw.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=iitwtb.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=ivaopy.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=jabrrb.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=kauawe.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=kdkxxa.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=kedkoe.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=lsecoj.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=lxlrzx.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=mhsvaa.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=nacrga.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=nhwdxr.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=nntmqa.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=oefoqs.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=ouhazn.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=peotfv.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=srxeba.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=tlcdoa.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=udixau.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=ufiipt.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=vopklo.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=wkmailer.com;v=DMARC1;p=none;rua=mailto:postmaster@wkmailer.com;ruf=mailto:postmaster@wkmailer.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=wtqwip.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=wueozx.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=yeakre.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=yodqno.perfecttrinityslaw.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.perfecttrinityslaw.net;ruf=mailto:dmarc@auth.perfecttrinityslaw.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
domain=zfefbw.luckyalexsgroup.net;v=DMARC1;p=none;sp=none;rua=mailto:dmarc@auth.luckyalexsgroup.net;ruf=mailto:dmarc@auth.luckyalexsgroup.net;aspf=r;adkim=r;pct=0;perfecttrinityslaw.net
marcbradshaw commented 9 years ago
domain=rubymail-usa.com;v=DMARC1;p=none;rua=mailto:postmaster@rubymail-usa.com;ruf=mailto:postmaster@rubymail-usa.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=reply.garten-und-freizeit.de;v=DMARC1;p=reject;adkim=s;aspf=r;rf=afrf;pct=100;ldquo
domain=nlmx.hervis-sportsclub.cz;v=DMARC1;p=reject;adkim=s;aspf=r;rf=afrf;pct=100;"
domain=mapdotbusiness.com;v=DMARC1;p=none;rua=mailto:postmaster@mapdotbusiness.com;ruf=mailto:postmaster@mapdotbusiness.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=elpaseolimo.com;v=DMARC1;p=;rua=mailto:alerts@ccitech.com;ruf=mailto:alerts@ccitech.com;rf=afrf;pct=
domain=econnect3.com;v=DMARC1;p=none;rua=mailto:postmaster@econnect3.com;ruf=mailto:postmaster@econnect3.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=econnect4.com;v=DMARC1;p=none;rua=mailto:postmaster@econnect4.com;ruf=mailto:postmaster@econnect4.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=econnect5.com;v=DMARC1;p=none;rua=mailto:postmaster@econnect5.com;ruf=mailto:postmaster@econnect5.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
domain=bizsourceinfo.com;v=DMARC1;p=none;rua=mailto:postmaster@bizsourceinfo.com;ruf=mailto:postmaster@bizsourceinfo.com;adkim=r;aspf=r;pct=100;rf:afrf;ri=86400;sp=none
msimerson commented 9 years ago

What I've noticed so far is that this change resolves the vast majority of parse failures:

--- a/lib/Mail/DMARC/Policy.pm
+++ b/lib/Mail/DMARC/Policy.pm
@@ -31,7 +31,7 @@ sub parse {
     my @tag_vals = split /;/, $str;
     my %policy;
     foreach my $tv (@tag_vals) {
-        my ($tag, $value) = split /=/, $tv, 2;
+        my ($tag, $value) = split /=|:/, $tv, 2;
         if ( !defined $tag || !defined $value || $value eq '') {
             warn "invalid DMARC record, please post this message to\n" .
                  "\thttps://github.com/msimerson/mail-dmarc/issues/39\n" .
marcbradshaw commented 9 years ago

That gets a large chunk of them yes. The change looks good, can't think of a way it would break valid records. Would it still be worth warning on these ones? the records are still technically invalid.

msimerson commented 9 years ago

can't think of a way it would break valid records

I've got some tests for it written and I don't see any opportunity for it to break valid records.

Would it still be worth warning on these ones?

Maybe a different warning, that doesn't ask for them to be reported. It'd probably be good to add a config option to shut up those warnings. No point in polluting peoples logs if they aren't going to do anything about the warnings.

marcbradshaw commented 9 years ago

A few more which don't match already reported patterns

domain=cmnet.org;v=DMARC1;p=none;sp=none;rua=mailto:postmaster@cmnet.org!10m;;pct=100;ri=86400
domain=coachingcompass.com;v=DMARC1;p=quarantine;rua=mailto:dan@darau.com;ruf=mailto:dan@darau.com;1:d:s;adkim=r;aspf=r;rf=afrf;sp=quarantine
domain=email.ex.kbhmaui.com;v=DMARC1;p=none;rua=mailto:dmarc-reports@email.ex.kbhmaui.com;pct=100;”
domain=genetex.com;v=DMARC1;p=none;sp-none;rua=mailto:postmaster@genetex.com!1m;ruf=mailto:postmaster@genetex.com!1m;rf=afrf;pct=100;ri=86400
msimerson commented 9 years ago
tomkicamp commented 9 years ago

Depending on just how tolerant of broken records you want to be, here are some other fairly common problems I've noticed: p=monitor (should be 'none') rua=dmarc@dmarctest.com (needs 'mailto:') v=dmarc1 (per spec, must be uppercase DMARC1)

msimerson commented 9 years ago

I'm closing this issue because:

bigio commented 4 years ago

$ dig +short txt _dmarc.viaggiailmondo.store "v=DMARC1; p=none; rua=mailto:dmarc@be-mail.it; ruf=mailto:dmarc@be-mail.it; sp=none; aspf"

hege-li commented 2 years ago

domain=instant-iptv.net;v=DMARC1; p=none; pct=100; rua=mailto:postmaster@instant-iptv.net; checkmark

hege-li commented 2 years ago

dig +short txt _dmarc.ospedalerc.it "v=DMARC1; p=none; sp=none; fo=; ri=3600; rua=mailto:dmarca@ospedalerc.it; ruf=mailto:dmarcf@ospedalerc.it"

freddieleeman commented 1 year ago

domain=seta.net;v=DMARC1;p=none;pct100;rua=mailto:dmarc_rua@emrl.com;ruf=mailto:dmarc_ruf@emrl.com

Legit error as there is a "=" missing in the pct value: https://www.uriports.com/tools?method=dmarc&domain=seta.net

Philippe23 commented 1 year ago

invalid DMARC record noted in my SpamAssassin 4.0 logs:

domain=mutualart.com;v=DMARC1; p=none; rua=; ruf=; fo=1
Philippe23 commented 1 year ago

invalid DMARC record noted in my SpamAssassin 4.0 logs:

domain=advisortohr.com;v=DMARC1; p=none; rua=mailto: [...]dmarc.monitor.x@sendloop.com; ruf=mailto:dmarc.monitor.x@sendloop.com; sp=quarantine; fo=1; pct=100; ri=86400; adkim=s; aspf=s;"
hleskien commented 10 months ago

domain=sthree.com;v=DMARC1; p=none; sp=none; fo=; ri=3600; rua=mailto: [...]dmarcsthree@sthree.com,mailto:dmarc_agg@vali.email; ruf=mailto:dmarcsthree@sthree.com;

jbusuttil commented 6 months ago
SpamAssassin Server version 4.0.0
  running on Perl 5.36.0
  with SSL support (IO::Socket::SSL 2.081)
  with zlib support (Compress::Zlib 2.106)

domain=meetup.com;v=DMARC1; p=reject; pct=100; rua=mailto:dmarc-reports@bendingspoons.com; sp=reject;.

msimerson commented 6 months ago

For anyone else perusing these, note that SpamAssassin is injecting the [...] nonsense into the log entry.

sfrothwell commented 1 month ago

SpamAssassin version 4.0.0 running on Perl version 5.36.0 SpamAssassin Server version 4.0.0 running on Perl 5.36.0 with SSL support (IO::Socket::SSL 2.081) with zlib support (Compress::Zlib 2.106)

domain=yeehaa.fr v=DMARC1; p=reject; rua=mailto:dmarc@yeehaa.fr; ruf=mailto:dmarc@yeehaa.fr; 1; adkim=r; aspf=r; rf=afrf; sp=reject; fo=0

mfichtner commented 2 weeks ago

Invalid DMARC record logged by SpamAssassin 4.0.0:

domain=kh-karlsruhe.de;v=DMARC1; p=none;.

dig +short txt _dmarc.kh-karlsruhe.de

v=DMARC1; p=none;.