DMARC & TLS¶
This page shows who sends mail in your domains' name and whether mail to your domains arrives encrypted. It reads the DMARC aggregate reports and TLS reports (TLS-RPT) that other mail servers send you, imported from a mailbox over IMAP or uploaded by hand, and the DMARC and TLS-RPT records of each domain.
The main report views cover the last 30 days; day views cover their selected day, and report management includes all retained reports. A message counts as Passed DMARC when the receiver reported an aligned SPF pass or an aligned DKIM pass for it. Rates show in green from 95%, in amber from 80% and in red below. A rate with no messages or sessions behind it shows -. What alignment means is explained in How DMARC works.
All domains¶
Domains with reports counts every domain that has a DMARC or TLS report. Enforced (quarantine or reject) counts the domains that publish a DMARC policy that acts on failing mail.
In the domain table, Not on server marks a domain that is not an active domain or alias domain on this server, for example a domain you removed from mailcow that still has reports. Not checked means the domain's DNS has not been checked yet. A domain with only TLS reports shows - under Messages and Passed DMARC. Encrypted is the share of TLS sessions to the domain that succeeded. Failing senders counts the sending addresses that failed DMARC for most of their mail. Records come from Domains DNS checks, or a page-load lookup for domains outside those checks.
To do¶
The list shows up to 8 items, most urgent first, and the remaining count:
- Publish a DMARC record: the domain has no DMARC record. The record window offers one to publish.
- N senders fail DMARC: mail in your name failed SPF and DKIM.
- The policy only monitors (p=none): mail that fails is still delivered. When the reports support a stricter policy, the item says so.
- Publish a TLS-RPT record: without one, receivers do not tell you when mail to you could not be encrypted.
A domain¶
Pass rate per day has a square for each day over the reports kept (see How long reports are kept; a year when that is set to 365 days). Its color follows the day's DMARC pass rate and grows stronger with more mail; an outline is a day without reports, and a hatched square is a day before the retention period, whose reports may already be gone. Select a day to open it.
In Mail flow, each box's color follows its pass rate and each line is as wide as the volume it carries. It shows up to 8 senders and 8 receivers. On a phone it is left out, because the Senders table shows the same.
Senders group by network organization, failing groups first, then by volume. MaxMind supplies network and country. Unknown networks stay as individual IPs; without MaxMind every IP stands alone. See Settings.
To do¶
The same kinds of items as on the all-domains view, for this domain only, plus:
fails DMARC : a sender that failed for most of its mail, with its SPF and DKIM rates. If it is yours, set up SPF or DKIM for it; if not, a stricter policy stops it.passes on DKIM only : at least 95% of its mail passes DMARC, but fewer than 50% pass aligned SPF; this does not prove it is missing from your SPF record.
Records¶
- DMARC is tagged Monitoring (
p=none), Partial (p=quarantine), Enforced (p=reject) or Missing. - SPF is the share of mail that passed with SPF aligned, tagged OK from 95% and Gaps below.
- DKIM is OK when any reported mail passes aligned DKIM; Missing means none does.
- TLS-RPT is OK when a record is published at
_smtp._tls, Missing when not.
Without mail in the last 30 days, SPF and DKIM say No data.
The record windows¶
DMARC record¶
The window takes the published record apart. A tag that is not set shows its default: Subdomains follow the domain's policy, Applied to (pct=) is 100% and Alignment is relaxed. Below are the notes of the DNS check, for example the advice to use a stricter policy.
Policy marks the policy in place with Now and picks the next stricter one when the window opens. Pick a policy to see what it would change:
- Ready. means that every sender group passing DMARC on most of its mail passes on 95% or more. Senders that fail on most of their mail are treated as not yours. Not yet. means such a group passes on under 95%, or no group passes on most of its mail. Without mail in the last 30 days, it says No data. Review known senders before changing policy.
- How many messages receivers would have sent to spam or refused in the last 30 days with that policy: every message that failed DMARC, from any sender.
- The record to publish: your current record with only
p=changed, so all its other tags stay, for example_dmarc.example.com TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com; adkim=s". Without a record, it isv=DMARC1; p=<policy>; rua=mailto:dmarc@<domain>.
SPF and DKIM¶
The senders are listed with their aligned SPF or DKIM share, the weakest first. For a known sender below 95%, check SPF authorization or aligned DKIM signing before tightening your policy.
TLS-RPT record¶
With a record, the window shows where reports go and any warnings, for example a report address that is not mailto: or https:. Without one, it offers a record with the address of the report mailbox this page reads, so the reports show up here. When IMAP is not set up, it suggests tls-reports@<domain>.
A sender¶
Fails DMARC means the sender failed for more than half of its mail. The sender view uses Passes on DKIM only when at least half passes DMARC but fewer than half passes aligned SPF; the To do item above requires a 95% DMARC pass rate. Review unfamiliar senders before treating them as spoofing or tightening your policy.
In What receivers saw, From is the header From domain, and SPF and DKIM show Aligned or the result the receiver reported, such as fail.
A day of TLS reports¶
Policy is the policy the receiver applied: STS for MTA-STS, TLSA for DANE, or NO-POLICY-FOUND. Each kind of failure has its own line with the number of sessions and the MX host, for example certificate-expired: 3 sessions to mail.example.com.
Fetching reports from the mailbox¶
DMARC and TLS reports arrive by email at the addresses in the rua= tags of your records. The app reads them from that mailbox over IMAP. Set it up under Settings > DMARC & TLS IMAP; with Import reports automatically on, the app imports every hour (Import every (seconds), 3600 seconds by default) and once 30 seconds after it starts (Import when the app starts).
How the import works:
- It reads the folders chosen in Report folders (
INBOXby default). Choose folders lists the mailbox's folders; a folder with With subfolders also covers every folder below it, including folders created later, for example the subfolders mailcow creates for plus-tag addresses. - In each folder it reads unread messages whose subject contains
Report Domain:,DMARC,Report-ID:,TLS-RPTorTLS Report. With Check all unread emails on, it reads every unread message, for reports with subjects in other languages, also in folders read through With subfolders. - An XML attachment is read as a DMARC report, a JSON attachment as a TLS report; a ZIP is opened to see which one it holds, and must hold only one. Each report must expand to 10 MB or less.
- A message may hold at most 10 reports, with at most 20,000 records together (for TLS, policies and failure details) and 10 MB of report data. Identical records in a report are stored once, with their counts added up. A message over a limit is not imported at all.
- A report counts as a duplicate, and is not imported twice, only when the same report with the same content is already stored. The sender writes the report ID, so a report with the ID of a stored report but other content is stored as well, and both are marked Shared report ID under Manage Reports. Its message stays in the mailbox, marked as read.
- A message is deleted with Delete emails after import on (the default), or marked as read with it off, once every report in it is imported or already stored. Only that message is removed. A server that cannot remove a single message gets it marked as deleted and read, for a mail client to remove.
- A chosen folder that does not exist does not stop the others; the import reads them and ends with an error that names the folder.
- Bounces and messages without a report are marked as read and skipped. They are not counted as failures and never deleted. mailcow sends its own DMARC reports from an address that often receives reports, so bounces of those reports land here.
- A message with a report that cannot be imported is marked as read, left in the mailbox and counted as failed; its other reports are imported. Messages larger than 20 MB are not downloaded at all and count as failed.
- Messages are handled in batches of Emails per batch (10 by default).
Reading a report in a mail client before import makes it ineligible until you mark it unread again.
Note
Use a mailbox that receives only reports. With Check all unread emails on, the import reads every unread message in the folders it reads, subfolders included, and marks it as read, reports or not.
Fetch reports starts an import and reloads the page after a few seconds. Only one import runs at a time: while one runs, Fetch reports says "Reports are already being fetched", and a scheduled import skips its turn. An import left running because the app stopped during it is marked failed when the next one starts.
View History shows the last 20 imports. An import whose connection failed has the status error. An import that finished with some failed emails has the status success and a number under Failed.
Uploading a report¶
Upload Report imports one file:
- DMARC: a plain
.xmlfile, a gzip file (.xml.gz) or a ZIP that holds the XML. - TLS:
.json,.json.gz, or a ZIP that holds the JSON, whatever its name.
The file may be at most 10 MB and must expand to 10 MB or less. The app tells XML, gzip and ZIP apart by their content, not by the file name. The limits and the duplicate rule of the import apply.
Upload is allowed by default. Turn it off with Allow report uploads under Settings > DMARC & TLS; the button then disappears.
Manage Reports¶
Manage Reports lists the stored reports by domain and one by one. Delete all removes all reports of a domain, Delete a single report. In All reports, the search finds reports by domain or reporter, and a click on a column header sorts the whole list, across all pages.
Deleting is off by default. Turn it on with Allow report deletion under Settings > DMARC & TLS (DMARC_ALLOW_REPORT_DELETE=true). Deletion cannot be undone. New reports can recreate a deleted domain's entry.
How long reports are kept¶
Every day at 02:15 the app deletes DMARC and TLS reports that were imported more than Keep reports (days) ago (60 by default, under Settings > DMARC & TLS). The age counts from the import, not from the report's period.
Emails from this page¶
- Import errors. When an import leaves messages it could not import, the app sends
DMARC & TLS: N report emails could not be imported, with the subject, Message-ID and error of each message. It goes to Report import error email (comma-separated addresses), or the Admin email when that is empty (both under Settings > Notifications), and to the notification destinations that receive Report import errors. Email needs SMTP; the other notification destinations receive the alert without it. Skipped bounces do not trigger it. - The weekly summary has no figures from the reports. Its DNS issues section lists DMARC records with an error, from the DNS checks. See Domains.
- DNS change alerts cover the DMARC and TLS-RPT records. See Domains.
See Notifications for the destinations.
Policy advice in the menu and on the Dashboard¶
The DMARC & TLS entry in the menu shows a count: the domains whose reports suggest a stricter policy, show a low pass rate, or show new addresses that fail DMARC. The Dashboard lists the same under its items that need attention.
Both use Settings > DMARC & TLS > Policy suggestions, not the 30 days of the report views. By default, with at least 100 messages (Minimum messages before a suggestion) over 28 days (Review reports from the last (days)), they suggest a stricter policy at a pass rate of 99.5% or more (Minimum DMARC pass rate (%)) and warn below 90%. The record window's Ready. is a separate calculation, described above.
When something is missing¶
- The page is not in the menu: the DMARC & TLS feature is off. Turn it on under Settings > Features. While it is off, the import and the daily cleanup do not run.
- No reports yet: nothing has been imported. Check that your DMARC records have a
rua=address that ends up in the report mailbox, that IMAP is set up, and that the address may receive reports for the domain (see Receiving reports at another domain). Receivers send aggregate reports about once a day, so the first ones take a day or two. - A domain says it has no TLS reports: it has no TLS-RPT record, or no server has sent mail to it with TLS reporting turned on yet. The TLS-RPT record window shows a record to publish.
- Fetch reports is greyed out with Not set up under it: IMAP is not set up. Import reports automatically is off by default; the connection defaults are port 993, SSL on and Verify TLS certificates off.
- Last fetch failed: the import could not connect or log in. View History shows the import; the error is in the app's log. A certificate problem names the setting to change (Verify TLS certificates).
- There is no Manage Reports button: there are no reports.
- No location or network known on a sender: the MaxMind databases are not set up, or the address is not in them.
How DMARC works¶
DMARC connects authentication to the visible From: domain. SPF checks the connecting IP against the envelope sender domain; DKIM checks a signature from its d= domain. DMARC passes when at least one passes and is aligned with From.
Relaxed alignment (aspf=r and adkim=r, the defaults) accepts the same organizational domain, so bounces.example.com aligns with example.com. Strict alignment (s) needs an exact match. Forwarding can break SPF while a surviving aligned DKIM signature still passes DMARC.
The policy¶
| Tag | Meaning |
|---|---|
p=none |
Request no DMARC enforcement; receivers still apply spam rules. |
p=quarantine |
Request suspicious-mail handling, usually a spam folder. |
p=reject |
Request rejection of failing mail. |
sp= |
Subdomain policy; otherwise subdomains inherit p=. |
pct= |
Policy sampling percentage, default 100. Unsampled failing mail gets the next weaker policy. |
rua= |
Aggregate-report destinations, separated by commas. |
ruf=, fo= |
Failure-report destinations and conditions. Few receivers send these reports; this page does not display them. |
Receivers choose the final disposition. See RFC 7489.
Aggregate reports¶
Receivers usually send daily XML reports, often compressed. They list sending IPs, message counts, authentication and alignment results, and dispositions, but no message content. Missing reports do not prove that no mail was sent.
Receiving reports at another domain¶
When a destination is outside the policy's organizational domain, its operator must authorize reports. For example.com reporting to dmarc-reports@example.net, publish in the receiving domain:
| Name | TXT value |
|---|---|
example.com._report._dmarc.example.net |
v=DMARC1 |
To authorize all domains, use *._report._dmarc.example.net if your DNS provider supports wildcard TXT records.
From p=none to p=reject¶
- Publish
v=DMARC1; p=none; rua=mailto:dmarc-reports@example.comand set up SPF and DKIM. See Domains. - Collect reports through a full sending cycle, including monthly jobs.
- Identify legitimate Senders and fix their aligned SPF or DKIM. Investigate unknown senders before classifying them as spoofing.
- Move to
quarantine, optionally increasingpct=in steps. Ready. is a prompt to review reports, not proof that all senders work. - Monitor the results before moving to
reject.
How TLS-RPT and MTA-STS work¶
Opportunistic STARTTLS can fall back to plain text and is open to downgrade attacks. MTA-STS and DANE require encrypted delivery for senders that support them. TLS-RPT reports delivery failures.
TLS-RPT¶
TLS-RPT (RFC 8460) asks sending servers to send a daily report about their connections to your MX hosts: how many sessions were encrypted, how many failed and why, for example an expired certificate or a host name that does not match. The record is a TXT record at _smtp._tls:
_smtp._tls.example.com. TXT "v=TLSRPTv1; rua=mailto:dmarc-reports@example.com"
- Use the report mailbox of this page; the same import reads DMARC and TLS reports.
- Senders deliver reports only to
mailto:andhttps:addresses. - Publish exactly one record. With more than one, senders ignore them.
The reports matter most with MTA-STS in enforce mode or DANE, where a TLS failure means the mail is not delivered.
MTA-STS¶
Start MTA-STS in testing, review TLS reports, then use enforce when legitimate delivery works. For records, policy syntax and certificate requirements, see Domains.









