Giter Site home page Giter Site logo

Comments (5)

msimerson avatar msimerson commented on July 30, 2024

I think if you'll read that code more carefully, especially with the comment I just added, you'll see that no changes are necessary.

from mail-dmarc.

SebastianS90 avatar SebastianS90 commented on July 30, 2024

Are you sure? I get to this for a aol.com unaligned mail (note the quarantine disposition together with p=reject, pct=100 and absence of any whitelist or other settings)

$VAR1 = bless( {
                 'disposition' => 'quarantine',
                 'published' => bless( {
                                         'rua' => 'mailto:[email protected]',
                                         'pct' => '100',
                                         'domain' => 'aol.com',
                                         'p' => 'reject',
                                         'ruf' => 'mailto:[email protected]',
                                         'v' => 'DMARC1'
                                       }, 'Mail::DMARC::Policy' ),
                 'dkim' => 'fail',
                 'spf' => 'fail',
                 'result' => 'fail'
               }, 'Mail::DMARC::Result' );

paypal.com (without pct) works as expected:

$VAR1 = bless( {
                 'disposition' => 'reject',
                 'published' => bless( {
                                         'rua' => 'mailto:[email protected]',
                                         'domain' => 'paypal.com',
                                         'p' => 'reject',
                                         'ruf' => 'mailto:[email protected],mailto:[email protected]',
                                         'v' => 'DMARC1'
                                       }, 'Mail::DMARC::Policy' ),
                 'dkim' => 'fail',
                 'spf' => 'fail',
                 'result' => 'fail'
               }, 'Mail::DMARC::Result' );

from mail-dmarc.

msimerson avatar msimerson commented on July 30, 2024

Ahah. The issue is that IF block was selecting those to be sample out (hence the reason being set in it). But the sampling logic followed the IF block instead of being contained in it. So I inverted the IF condition as you suggested, set the disposition to the effective policy, and moved the reason setter down below that IF block. Check this commit instead.

from mail-dmarc.

SebastianS90 avatar SebastianS90 commented on July 30, 2024

Thank you, this fix works :)

from mail-dmarc.

msimerson avatar msimerson commented on July 30, 2024

Great, I just pushed a release with that in there.

from mail-dmarc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.