blob: ad556d2ab4ce7a08c81ba19aed73979371f134b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<?xml version="1.0"?>
<feedback>
<report_metadata>
<org_name>{{ feedback.rm_org_name }}</org_name>
<email>{{ feedback.rm_email }}</email>
{% if feedback.rm_extra_contact_info %}
<extra_contact_info>{{ feedback.rm_extra_contact_info }}</extra_contact_info>
{% endif %}
<report_id>{{ feedback.rm_report_id }}</report_id>
<date_range>
<begin>{{ feedback.rm_date_begin }}</begin>
<end>{{ feedback.rm_date_end }}</end>
</date_range>
</report_metadata>
<policy_published>
<domain>{{ feedback.pp_domain }}</domain>
<adkim>{{ feedback.pp_adkim }}</adkim>
<aspf>{{ feedback.pp_aspf }}</aspf>
<p>{{ feedback.pp_p }}</p>
<sp>{{ feedback.pp_sp }}</sp>
<pct>{{ feedback.pp_pct }}</pct>
</policy_published>
{% for r in records %}
<record>
<row>
<source_ip>{{ r.row_source_ip }}</source_ip>
<count>{{ r.row_count }}</count>
{% if r.row_pol_disposition and r.row_pol_dkim and r.row_pol_spf %}
<policy_evaluated>
<disposition>{{ r.row_pol_disposition }}</disposition>
<dkim>{{ r.row_pol_dkim }}</dkim>
<spf>{{ r.row_pol_spf }}</spf>
{% for rs in reasons if rs.recordid == r.recordid %}
<reason>
<type>{{ rs.type }}</type>
{% if rs.comment %}
<comment>{{ rs.comment }}</comment>
{% endif %}
</reason>
{% endfor %}
</policy_evaluated>
{% endif %}
</row>
<identifiers>
{% if r.ids_envelope_to %}
<envelope_to>{{ r.ids_envelope_to }}</envelope_to>
{% endif %}
<header_from>{{ r.ids_header_from }}</header_from>
</identifiers>
<auth_results>
{% for d in resdkim if d.recordid == r.recordid %}
<dkim>
<domain>{{ d.domain }}</domain>
{% if d.selector %}
<selector>{{ d.selector }}</selector>
{% endif %}
<result>{{ d.result }}</result>
{% if d.human_result %}
<human_result>{{ d.human_result }}</human_result>
{% endif %}
</dkim>
{% endfor %}
{% for s in resspf if s.recordid == r.recordid %}
<spf>
<domain>{{ s.domain }}</domain>
<result>{{ s.result }}</result>
</spf>
{% endfor %}
</auth_results>
</record>
{% endfor %}
</feedback>
|