A clinic in Riyadh has done everything the earlier articles in this series ask: ibtisamat-riyadh.com publishes SPF, signs with DKIM, and sits at DMARC p=reject after the rollout plan. Nobody can send as the clinic any more. Yet three questions remain that those records do not answer. When a hospital’s server sends test results to the clinic, can someone on the path read them by stripping the encryption? When a patient’s mail is forwarded or passes through a mailing list, does it still count as authenticated? And can the patient see at a glance that a message really is from the clinic? This article covers the five standards that answer those questions: MTA-STS and DANE for the connection, TLS-RPT for reporting on it, BIMI for the logo, and ARC for forwarding, and when each is worth the work.
01What the big three leave open
Mail between servers travels over SMTP on port 25, and encryption there is opportunistic: the receiving server offers STARTTLS, and the sender upgrades the connection if both sides can. An attacker who sits on the path can remove that offer, and the sender, seeing no STARTTLS, carries on in plain text. This is a . The sender also does not normally check the receiving server’s certificate, so an attacker who redirects the connection can present any certificate at all. The article on a VPS as a mail server introduced MTA-STS as the fix; here we go into both fixes in depth.
| Standard | What it protects | What you publish | Depends on |
|---|---|---|---|
| MTA-STS (RFC 8461) | Mail coming to you: encrypted, to the right server | A TXT record and a policy file over HTTPS | A web certificate for mta-sts.<domain> |
| TLS-RPT (RFC 8460) | Nothing directly: it reports failures | A TXT record | MTA-STS or DANE to report on |
| DANE (RFC 7672) | Mail coming to you, without trusting certificate authorities | TLSA records | DNSSEC on the whole chain |
| BIMI | Your brand in the inbox | A TXT record, an SVG logo, often a certificate | DMARC at quarantine or reject |
| ARC (RFC 8617) | Authentication results across forwarders | Nothing as a domain owner | Forwarders and receivers that use it |
Note the direction: MTA-STS and DANE are published by the receiving domain and honoured by senders. Publishing them for ibtisamat-riyadh.com protects mail sent to the clinic, not mail the clinic sends.
02MTA-STS: require encryption with a valid certificate
MTA-STS lets a domain tell senders: deliver to me only over TLS, only to these MX servers, and only if their certificates are valid. It has two parts. A TXT record at _mta-sts.<domain> announces that a policy exists and carries an id that changes whenever the policy does. The policy itself is a text file served over HTTPS from a fixed address, which is what makes it trustworthy: an attacker who can tamper with DNS still cannot forge a valid certificate for the web server.
# 1) The announcement: change id every time you change the policy file_mta-sts.ibtisamat-riyadh.com. TXT "v=STSv1; id=20261130T0900"# 2) The policy, served at https://mta-sts.ibtisamat-riyadh.com/.well-known/mta-sts.txtversion: STSv1mode: testingmx: mail.ibtisamat-riyadh.commax_age: 604800
The details that trip people up all come from RFC 8461:
- The id: One to 32 letters and digits. Senders compare it with the one they cached; any new value makes them fetch the policy again. A date and time is a convenient choice.
- The mx lines: One per server, each either an exact name or a wildcard covering one label, such as *.ibtisamat-riyadh.com. Every MX the domain publishes must match one of them, or enforcing senders will refuse to deliver to it.
- The modes: testing delivers as usual and only reports failures; enforce refuses delivery to a server that fails; none withdraws the policy.
- max_age: How long senders may cache the policy, in seconds, up to 31,557,600, about a year. Start with a week (604800) while testing, and lengthen it once you enforce.
- HTTPS: The certificate must be valid for mta-sts.<domain>, the response must be a 200 with no redirect, and the file should be text/plain.
- The MX certificate: Every mail server must present a certificate that is valid, unexpired, issued by a trusted authority and names the MX host, and must support TLS 1.2 or later.
Order matters when you change anything: update the policy file first, then the id in the TXT record, so a sender never caches the old file under the new id. And the protection has a limit the standard states openly: it only works once a sender has fetched and cached your policy. An attacker who blocks the very first lookup can keep the policy from being discovered, which is why a long max_age helps once you are confident.
Gmail has honoured MTA-STS when sending since 2019, and Exchange Online has validated it on all outbound mail since 2022, so publishing a policy protects a large share of the mail sent to you.
03TLS-RPT: find out when encryption fails
Switching to enforce blind is how mail gets lost: an expired certificate or a new MX missing from the policy, and senders start refusing to deliver. TLS-RPT is how you see that before it matters. You publish one TXT record, and senders that support it send a daily JSON report, covering one UTC day, of their successful and failed TLS sessions with your servers, for both MTA-STS and DANE.
# Where senders send their daily TLS reports_smtp._tls.ibtisamat-riyadh.com. TXT "v=TLSRPTv1; rua=mailto:[email protected]"
A report arrives as an email with a compressed JSON attachment. The part to read is failure-details:
{ "organization-name": "Receiver Example", "date-range": { "start-datetime": "2026-11-29T00:00:00Z", "end-datetime": "2026-11-29T23:59:59Z" }, "report-id": "2026-11-29T00:00:00Z_ibtisamat-riyadh.com", "policies": [{ "policy": { "policy-type": "sts", "policy-domain": "ibtisamat-riyadh.com", "policy-string": ["version: STSv1", "mode: testing", "mx: mail.ibtisamat-riyadh.com", "max_age: 604800"] }, "summary": { "total-successful-session-count": 412, "total-failure-session-count": 3 }, "failure-details": [{ "result-type": "certificate-expired", "sending-mta-ip": "198.51.100.24", "receiving-mx-hostname": "mail.ibtisamat-riyadh.com", "failed-session-count": 3 }] }]}
The result types tell you what to fix: starttls-not-supported, certificate-host-mismatch, certificate-expired and certificate-not-trusted for the connection itself; sts-policy-fetch-error and sts-policy-invalid when senders cannot read your policy; and tlsa-invalid, dnssec-invalid and dane-required for DANE. Run in testing mode until a few weeks of reports show no failures you cannot explain, then switch the policy to enforce, change the id, and keep the reports coming.
04DANE: certificates pinned in signed DNS
DANE solves the same problem without trusting certificate authorities or a web server. The domain publishes a for each MX host, saying which key or certificate that server must present, and signs its zone with so the record cannot be forged. A sender that finds a valid signed TLSA record must use TLS and must check the server against it; RFC 7672 forbids falling back to plain text. Because a missing record is also signed, an attacker cannot hide it the way they can block a first MTA-STS lookup, which makes DANE the stronger of the two.
# The SHA-256 of the mail server’s public key, for a "3 1 1" recordopenssl x509 -in /etc/ssl/mail.ibtisamat-riyadh.com.pem -noout -pubkey \ | openssl pkey -pubin -outform DER | openssl dgst -sha256 -binary | xxd -p -c 64# The TLSA record for port 25 on the MX host_25._tcp.mail.ibtisamat-riyadh.com. TLSA 3 1 1 0f4c8d3e5b6a7c9d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d
The three numbers are the usage, the selector and the matching type. RFC 7672 recommends 3 1 1, DANE-EE with the public key and SHA-256, and with usage 3 the sender checks neither the certificate’s name nor its expiry: the signed DNS record is the trust. The PKIX usages 0 and 1 are not used for SMTP. DANE’s cost is operational:
- DNSSEC on the whole chain: The extension, your domain and the zone the MX host lives in must all be signed and validating. If any link is not, senders ignore your TLSA records.
- Key rollover: Publish a TLSA record for the next key alongside the current one, wait for the old records to expire from caches, then switch the server to the new key, and only then remove the old record.
- Automatic renewals: A 3 1 1 record pins the key, not the certificate, so renew with the same key. With certbot that means --reuse-key; otherwise every renewal breaks DANE until you update the record.
Exchange Online checks DANE on its outbound mail by default, and many mail servers that validate DNSSEC do too. A domain can publish both MTA-STS and DANE: RFC 8461 says a sender must never let MTA-STS override a failed DANE check.
05BIMI: your logo in the inbox
BIMI, Brand Indicators for Message Identification, lets a mailbox provider show your logo next to messages that pass DMARC. It is not an IETF standard but a specification run by the AuthIndicators Working Group, and each provider decides whether and how to show the logo. It is the reward for finishing DMARC rather than a security control in itself, because the logo only appears for a domain that already enforces.
For a dairy brand in Jeddah sending to customers from halib-jeddah.com, the requirements stack up like this:
- DMARC enforced: p=quarantine or p=reject on the organisational domain, applied to all mail. Google’s page asks for pct=100, which is also what an absent pct means; a monitoring policy disqualifies you.
- A logo in SVG Tiny PS: A square, simple SVG with no scripts or external resources, served over HTTPS. Gmail asks for at least 96 by 96 pixels and recommends 32 KB or less.
- A mark certificate: Gmail requires a Verified Mark Certificate or a Common Mark Certificate, and Apple requires a VMC; Yahoo can show a logo without one for bulk senders with good reputation.
- The BIMI record: A TXT record at default._bimi.<domain> pointing to the logo and the certificate.
# The BIMI record: l= the logo, a= the mark certificate in PEMdefault._bimi.halib-jeddah.com. TXT "v=BIMI1; l=https://halib-jeddah.com/bimi/logo.svg; a=https://halib-jeddah.com/bimi/mark.pem"# The DMARC record BIMI needs underneath it_dmarc.halib-jeddah.com. TXT "v=DMARC1; p=reject; rua=mailto:[email protected]"
The is where most of the cost and time goes. A VMC needs a registered trademark for the logo, which can take six to twelve months to obtain, and earns a checkmark next to your name in Gmail. A CMC needs no trademark, only evidence that you have used the logo publicly for about a year, and shows the logo without the checkmark. Both are issued by a small number of certificate authorities, last at most 398 days and must be renewed. For a business whose customers mostly use Gmail or Apple Mail and which is often impersonated, the logo can be worth it; for most small businesses, finishing DMARC is the part that matters.
06ARC: authentication that survives forwarding
When a mailing list adds a footer or a forwarder relays a message, SPF fails because the list’s server is not in your record, and DKIM may fail because the body changed. DMARC then fails a message that was genuinely yours. ARC, RFC 8617, lets each intermediary record what it saw before it changed anything and seal that record, building an . Each step adds three headers numbered by i=, from 1 up to a limit of 50:
ARC-Seal: i=1; a=rsa-sha256; cv=none; d=lists.example.org; s=arc2026; t=1764493200; b=...ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.example.org; s=arc2026; h=from:to:subject:date:message-id; bh=...; b=...ARC-Authentication-Results: i=1; lists.example.org; dkim=pass header.d=ibtisamat-riyadh.com; spf=pass smtp.mailfrom=ibtisamat-riyadh.com; dmarc=pass header.from=ibtisamat-riyadh.com
ARC-Authentication-Results records the results the list saw on arrival; ARC-Message-Signature signs the message as the list sends it; ARC-Seal signs the chain so far and carries cv=, which is none at the first step, pass when the chain before validated, and fail when it did not. A failed chain counts as no chain at all.
Two points decide what ARC means for you. First, ARC is not a trust framework: the RFC is Experimental, and a receiver may use a valid chain to override a DMARC failure only as its own local policy, and only for sealers it chooses to trust. Microsoft 365, for example, lets an administrator list trusted ARC sealers, and only those can override. Second, as a domain owner you publish nothing for ARC. It matters if you run something that forwards or modifies mail, such as a list server or a security gateway, which should seal; and it is part of why receivers can deliver your list posts after you reach p=reject.
07Which ones are worth it for you
None of these replaces SPF, DKIM and DMARC, and none is worth starting before those are in place. After that, it depends on what you send and receive:
| Standard | Worth it when | Can wait when | Effort |
|---|---|---|---|
| MTA-STS + TLS-RPT | You receive sensitive mail: health, legal, finance, invoices | Your mail is hosted by a provider that does not let you serve the policy | Low: a record, a file, a web certificate |
| DANE | Your DNS provider signs with DNSSEC and you run your own MX | The extension or DNS provider does not support DNSSEC | Medium to high: key rollover discipline |
| BIMI | You send to consumers at scale and are often impersonated | Your DMARC is not yet at quarantine or reject | High: trademark or a year of use, a yearly certificate |
| ARC | You run a list server, forwarder or gateway | You only send and receive directly | None as a domain owner |
For the clinic in Riyadh the order is clear: MTA-STS in testing with TLS-RPT this month, enforce after a few weeks of clean reports, DANE if its DNS supports DNSSEC, and BIMI not at all until it sends to patients at a scale that makes the certificate worth paying for.
08Common problems
- ProblemTLS-RPT reports show sts-policy-fetch-error
- FixThe policy file is not reachable: check that https://mta-sts.<domain>/.well-known/mta-sts.txt returns 200 with no redirect and a valid certificate for that exact name.
- ProblemAfter switching to enforce, some senders stop delivering
- FixAn MX host is missing from the mx lines, or its certificate does not name it. Go back to testing, fix it, change the id, and enforce again.
- ProblemDANE mail stops after a certificate renewal
- FixThe renewal generated a new key that the 3 1 1 record does not match. Publish the new key’s record, or renew with the same key, and pre-publish next time.
- ProblemTLSA records are published but senders ignore them
- FixDNSSEC is not validating somewhere in the chain. Check the DNSSEC status of the domain and of the MX host’s zone.
- ProblemThe BIMI logo does not appear
- FixDMARC is at p=none, the SVG is not Tiny PS, or the provider needs a certificate you have not supplied. Logos can also take up to 48 hours to show in Gmail.
- ProblemYour posts to a list still fail DMARC at some receivers
- FixThe list does not seal with ARC, or the receiver does not trust its seal. Ask the list to enable ARC or From rewriting, or post from a subdomain with a looser policy.
09Putting it in place at Illevante
The records in this article are DNS records, so you add them in DNS Console: the _mta-sts and _smtp._tls TXT records, the BIMI record, and the TLSA records if your setup supports them. The MTA-STS policy file is an ordinary web file: on cPanel hosting you can create the subdomain mta-sts, make sure it serves over HTTPS with a valid certificate, and place mta-sts.txt in its .well-known folder. Create tls-reports@ and dmarc@ mailboxes from cPanel under Email, then Email Accounts, so the reports have somewhere to land.
Before you add DANE, run the DNS check tool: it shows whether DNSSEC is in place for your domain, alongside your MX records, your SPF record and your DMARC policy, and explains how to fix any problem it finds. BIMI and DANE both rest on what that check reports: DMARC that protects the domain, and DNSSEC that validates.
If you run your own mail server on CoreVPS, MTA-STS and DANE apply to your MX directly, and the mail server article covers the certificate and TLS settings they depend on. And when mail still does not arrive, the deliverability troubleshooting guide shows how to read the headers, including the ARC chain, to find out why.




