NAME
Mail::DMARC::Report::Aggregate - aggregate report object
VERSION
version 1.20240314
DESCRIPTION
This class is used as the canonization of an aggregate report.
When reports are received, the XML is parsed into an Aggregate object, which then gets passed to the Report::Store and saved. When sending DMARC reports, data is extracted from the Store as an Aggregate object, exported as XML, and sent.
2013 Draft Description
AGGREGATE REPORTS
The report SHOULD include the following data:
o Enough information for the report consumer to re-calculate DMARCdisposition based on the published policy, message disposition, andSPF, DKIM, and identifier alignment results. {R12}o Data for each sender subdomain separately from mail from thesender's organizational domain, even if no subdomain policy isapplied. {R13}o Sending and receiving domains {R17}o The policy requested by the Domain Owner and the policy actuallyapplied (if different) {R18}o The number of successful authentications {R19}o The counts of messages based on all messages received even iftheir delivery is ultimately blocked by other filtering agents {R20}
Aggregate reports are most useful when they all cover a common time period. By contrast, correlation of these reports from multiple generators when they cover incongruous time periods is difficult or impossible. Report generators SHOULD, wherever possible, adhere to hour boundaries for the reporting period they are using. For example, starting a per-day report at 00:00; starting per-hour reports at 00:00, 01:00, 02:00; et cetera. Report Generators using a 24-hour report period are strongly encouraged to begin that period at 00:00 UTC, regardless of local timezone or time of report production, in order to facilitate correlation.
Report Structure
This is a translation of the XML report format in the 2013 Draft, converted to perl data structures.
feedback => {version => 1.0, # decimalreport_metadata => { # info about DMARC reporterreport_id => stringorg_name => 'Art Farm',email => '[email protected]',extra_contact_info => string # min 0date_range => {begin => epoch time,end => epoch time,},error => string, # min 0, max unbounded},policy_published => {domain => stringadkim => r, saspf => r, sp => none, quarantine, rejectsp => none, quarantine, rejectpct => integerfo => string},record => [{ row => {source_ip => # IPAddresscount => # integerpolicy_evaluated => { # min=1disposition => # none, quarantine, rejectdkim => # pass, failspf => # pass, failreason => [ # min 0, max unbounded{ type => # forwarded sampled_out, trusted_forwarder, mailing_list, local_policy, othercomment => # string, min 0},],}},identifiers => {envelope_to min=0envelope_from min=1header_from min=1},auth_results => {spf => [ # min 1, max unbounded{ domain => # min 1scope => # min 1, helo, mfromresult => # min 1, none neutral pass fail softfail temperror permerror}] # ( unknown -> temperror, error -> permerror )dkim => [ # min 0, max unbounded{ domain => , # min 1, the d= parameter in the signatureselector => , # min 0, stringresult => , # none pass fail policy neutral temperror permerrorhuman_result => # min 0, string},],},]},};
AUTHORS
- •
-
Matt Simerson <[email protected]>
- •
-
Davide Migliavacca <[email protected]>
- •
-
Marc Bradshaw <[email protected]>
COPYRIGHT AND LICENSE
This software is copyright (c) 2024 by Matt Simerson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.