dmarcap package¶
dmarcap.auth_results module¶
dmarcap/auth_results.py - DMARC aggregate report AuthResultsType representation. Ref. https://tools.ietf.org/html/rfc7489#appendix-C
-
class
dmarcap.auth_results.
AuthResults
¶ Bases:
future.types.newobject.newobject
Representation of AuthResultsType
-
dkim
= None¶
-
spf
= None¶
-
-
class
dmarcap.auth_results.
Authentication
(domain=None, result=None)¶ Bases:
future.types.newobject.newobject
Base class for verification results
-
domain
= None¶ Domain name represented in this verification
-
result
= None¶ Verification result
-
-
class
dmarcap.auth_results.
DkimAuthentication
(domain=None, result=None)¶ Bases:
dmarcap.auth_results.Authentication
Representation of DkimAuthResultType
-
human_result
= None¶ Any friendly, human-readable message.
-
selector
= None¶ DKIM selector, e.g. k1, used in authentication
-
-
class
dmarcap.auth_results.
SpfAuthentication
(domain=None, result=None)¶ Bases:
dmarcap.auth_results.Authentication
Representation of SpfAuthResultType
-
scope
= None¶ SPF domain scope
-
dmarcap.identifiers module¶
dmarcap/identifiers/py - DMARC aggregate report IdentifierType representation Ref. https://tools.ietf.org/html/rfc7489#appendix-C
-
class
dmarcap.identifiers.
Identifiers
¶ Bases:
future.types.newobject.newobject
Represention of the aggregate record IdentifierType
-
envelope_from
= None¶ Envelope from of the evaluated message or SMTP transaction. E.g.
MAIL FROM:<errors@example.com>
orReturn-Path: <errors@example.com>
-
envelope_to
= None¶ Envelope recipient of the SMTP transaction. E.g
RCPT TO: <jane@example.com>
-
header_from
= None¶ From header field of the evaluated message
-
dmarcap.meta_data module¶
dmarcap.py/meta_data.py - DMARC aggregate report meta data representation. Ref. https://tools.ietf.org/html/rfc7489#appendix-C
-
class
dmarcap.meta_data.
MetaData
¶ Bases:
future.types.newobject.newobject
Representation of aggregate report MetaDataType
-
begin_localized_date_iso
()¶ Return report begin date in localtime ISO format
-
begin_utc_date_iso
()¶ Returns report begin date in UTC ISO format
-
date_range_begin
= None¶ Report date range beginning (unix timestamp).
-
date_range_end
= None¶ Report date range ending (unix timestamp).
-
email
= None¶ Organzation contact email
-
end_localized_date_iso
()¶ Return report end date in localtime ISO format
-
end_utc_date_iso
()¶ Returns report end date in UTC ISO format
-
extra_contact_info
= None¶ Additional organization contact info
-
org_name
= None¶ Organization which generated the report
-
report_id
= None¶ Unique report id
-
dmarcap.parser module¶
dmarcap/parser.py - Primary DMARC XML aggragate report parsing class
-
class
dmarcap.parser.
Parser
(dmarc_report_xml_file)¶ Bases:
future.types.newobject.newobject
Aggregate report parser base class
-
parse_policy_published
()¶ Parse report published policy into
PolicyPublished
-
dmarcap.policy_evaluated module¶
dmarcap/policy_evaluated.py - DMARC aggregate report evaluation policy representation. Ref. https://tools.ietf.org/html/rfc7489#appendix-C
dmarcap.policy_published module¶
dmarcap/policy_published.py - DMARC aggregate report published policy representation. Ref. https://tools.ietf.org/html/rfc7489#appendix-C
-
class
dmarcap.policy_published.
PolicyPublished
¶ Bases:
future.types.newobject.newobject
Representation of PolicyPublishedType
-
adkim
= None¶ Dkim authentication mode
-
aspf
= None¶ Spf authentication mode
-
domain
= None¶ Domain publishing this policy
-
fo
= None¶ Failure reporting options
-
p
= None¶ DMARC policy
-
pct
= None¶ Policy percent, i.e. what percent of mail stream to apply the published policy to.
-
rf
= None¶ Preferred report format
-
ri
= None¶ Preferred report interval
-
rua
= None¶ Aggregate report delivery URI
-
ruf
= None¶ Forensic report delivery URI
-
sp
= None¶ Sub domain policy
-
v
= None¶ DMARC version
-
dmarcap.record module¶
dmarcap/record.py - DMARC aggregate report RecordType representation. Ref. https://tools.ietf.org/html/rfc7489#appendix-C
-
class
dmarcap.record.
Record
¶ Bases:
future.types.newobject.newobject
Representation of an aggregate report record
-
auth_results
= None¶ Message
AuthResults
-
count
= None¶ Number of messages received from this IP
-
identifiers
= None¶ Message or SMTP
Identifiers
-
policy_evaluated
= None¶ Message
PolicyEvaluated
-
source_ip
= None¶ IP traffic source
-
dmarcap.report module¶
dmarclib/report.py - DMARC aggregate report representation. Ref. https://tools.ietf.org/html/rfc7489#appendix-C
-
class
dmarcap.report.
Report
¶ Bases:
future.types.newobject.newobject
DMARC aggregate report representation
-
meta_data
= None¶ Aggregate report
MetaData
. Contains information about the reporting organization and the report range.
-
policy_published
= None¶ Aggregate report
PolicyPublished
. Contains the policy and reporting values published in DNS by the domain owner. These were the policies used to evaluate incoming mail.
-