Comments (5)
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.
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.
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.
Thank you, this fix works :)
from mail-dmarc.
Great, I just pushed a release with that in there.
from mail-dmarc.
Related Issues (20)
- Unable to build master from source HOT 7
- distribution missing in CPAN HOT 3
- Undeclared dependency Net::SMTPS HOT 1
- Undeclared dependency Net::HTTP
- Undeclared dependency JSON
- t/12.Report.Store.SQL.t fails HOT 1
- Sending error query called by Mail::DMARC::Report::Store::SQL, 156 HOT 3
- 'responsebeacon.com not in DNS'
- Can't locate Email/Sender/Transport/Test.pm in @INC
- defined-or used
- no more verbose output with dmarc_send_reports --verbose
- Use of uninitialized value $value
- dmarc_send_reports causing protocol synchronization errors on receiving MTA
- Invalid XML in generated reports HOT 3
- error sending report: Can't locate object method "code" via package "timeout " HOT 1
- Would like to have a way to specify port and ssl actions for imap
- t/04.PurePerl.t started to fail
- Reports with delivery issues aren't removed HOT 1
- Possible issue with ARC-signed emails HOT 2
- spamassassin 4 fails to make dmarc repots HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mail-dmarc.