Karta.Reports.DMARC.Report (Karta v1.0.0)

A report Karta received at a report route. kind says which: an :aggregate DMARC report (RFC 7489 §7.2), a :forensic DMARC failure report (§7.3) or a :tls_rpt TLS report (RFC 8460). A row of any kind is called a report below, and the table keeps its first name.

For an aggregate report: who reported (org_name, email, extra_contact_info), which report and period (report_id, date_begin, date_end), the policy it published (policy), and how many records it holds (record_count). records are its rows. A TLS report has the reporter, report id and period too, and record_count is its number of policies. A forensic report has only the reporter's fields. details is what is particular to a kind: the fields of a failure report, or the policies of a TLS report (see Karta.Reports.DMARC.Forensic and Karta.Reports.TLSRPT).

status is :parsed (the report was read) or :failed (error says why: it was not a report, was too large, or could not be read). report_key identifies the report, so one delivered twice is recorded once.

domain_id is the verified domain of the server's organisation the report is attributed to, and nil when the report is about no domain Karta serves. Nothing in a report decides which domain that is: what the report says is compared with the domains the organisation has verified, and a report about a stranger's domain is kept, unattributed. message_id and mailbox are the received message and the address it came to; both are kept for the operator, and neither is trusted for anything.

Summary

Types

t()

@type t() :: %Karta.Reports.DMARC.Report{
  __meta__: term(),
  created_at: term(),
  date_begin: term(),
  date_end: term(),
  details: term(),
  domain: term(),
  domain_id: term(),
  email: term(),
  error: term(),
  extra_contact_info: term(),
  id: term(),
  kind: term(),
  mailbox: term(),
  message: term(),
  message_id: term(),
  org_name: term(),
  policy: term(),
  received_at: term(),
  record_count: term(),
  records: term(),
  report_id: term(),
  report_key: term(),
  server: term(),
  server_id: term(),
  status: term(),
  updated_at: term()
}