Skip to content

Management

Stalwart exchanges reports with other mail servers about authentication and TLS. The reports that other organisations send show how they see the local domains, and the reports that Stalwart sends tell other domains how their mail fared. An administrator reviews the first to detect spoofing or delivery problems, and can inspect or discard the second before they are sent.

The server creates report objects itself, as reports arrive or reporting periods end, and an administrator cannot create them. They are managed through the WebUI, the CLI or the JMAP API, and each kind allows only the operations that make sense for it:

ObjectList and viewCreateUpdateDelete
DmarcInternalReport, TlsInternalReportYesNoYesYes
DmarcExternalReport, TlsExternalReport, ArfExternalReportYesNoNoYes

Other organisations send reports about the mail they receive from the local domains. Stalwart keeps these reports for review for the period set by holdMtaReportsFor on the DataRetention singleton, which is 30 days unless changed. When the field is not set, received reports are not kept. Three kinds of report are stored:

  • DmarcExternalReport (found in the WebUI under Management › Reports › Inbox › DMARC): DMARC aggregate reports. Each summarises how a receiver evaluated SPF, DKIM and DMARC for the messages that claimed to come from a local domain.
  • TlsExternalReport (found in the WebUI under Management › Reports › Inbox › TLS): TLS reports. Each describes whether other servers could establish TLS when they delivered mail to the local domains.
  • ArfExternalReport (found in the WebUI under Management › Reports › Inbox › ARF): feedback reports in the Abuse Reporting Format, such as abuse complaints and authentication failure reports.

These reports are records of what other servers observed, so they cannot be modified. They can only be viewed and deleted. Report analysis describes how Stalwart recognises and stores them.

Stalwart also sends DMARC and TLS reports to other domains, and these reports are built up over a reporting period. While a period is open, Stalwart keeps the results it collects as counters, which are not listed anywhere. About five minutes after the period ends, a DmarcReportWindow or TlsReportWindow task turns the counters into one report object per destination domain. Each report is kept until it is sent, which happens between five and fifteen minutes after the end of the period. Two kinds of pending report exist:

  • DmarcInternalReport (found in the WebUI under Management › Reports › Outbox › DMARC): DMARC aggregate reports for the domains whose DMARC record requests them.
  • TlsInternalReport (found in the WebUI under Management › Reports › Outbox › TLS): TLS reports for the domains that publish a TLS reporting record.

Deleting a pending report discards it, so the report is never sent. DMARC reports and TLS reports describe how the reports are produced and sent.