How to Set Up BIMI: Display Your Brand Logo in Email Inboxes (2026)
Learn how to set up BIMI for email in 2026. Display your brand logo next to emails in Gmail and Apple Mail — s
MTA-STS (Mail Transfer Agent Strict Transport Security) forces receiving mail servers to only accept your emails over a valid TLS connection — preventing downgrade attacks that intercept emails in transit. TLS-RPT reports tell you every time a TLS connection attempt fails, so nothing goes unnoticed.
Without MTA-STS, a network attacker between your sending server and the recipient's server can force a downgrade to unencrypted SMTP — intercepting or modifying emails in transit. MTA-STS prevents this completely. TLS-RPT tells you when any TLS connection to your domain is attempted or fails.
MTA-STS works by publishing a policy file at a well-known HTTPS URL on your domain (https://mta-sts.yourdomain.com/.well-known/mta-sts.txt). Migomail hosts this policy file on your behalf — you add a single DNS TXT record pointing to our infrastructure, and the policy file is served, updated, and maintained automatically.
Without MTA-STS, a malicious actor performing a man-in-the-middle attack on SMTP traffic can send a "STARTTLS not available" signal, forcing the sending server to fall back to unencrypted SMTP. MTA-STS tells sending mail servers that your domain only accepts TLS — any server that cannot establish a valid TLS connection must queue the email, not deliver it unencrypted.
TLS Reporting (TLS-RPT) is a companion standard that sends reports to a specified address whenever a TLS connection to your mail servers is attempted or fails. These reports — similar in structure to DMARC RUA reports — show you every TLS failure event, the reason for failure, the sending server, and the volume. Migomail processes these reports and presents them as readable dashboards.
When a TLS connection failure is reported — whether due to certificate expiry, misconfiguration, or an attempted downgrade attack — Migomail sends an immediate alert with the failure type, the affected mail server, the sending infrastructure that encountered the failure, and a recommended remediation action.
Google's BIMI implementation requires MTA-STS at "enforce" mode (mode: enforce rather than mode: testing) alongside DMARC p=reject. Migomail's MTA-STS service is pre-configured for BIMI compatibility — your policy file is automatically set to enforce mode and your TLS-RPT reporting address is configured for full coverage.
If you receive email on multiple domains — yourbrand.com, mail.yourbrand.com, support.yourbrand.com — each domain that receives inbound mail should have its own MTA-STS policy. Migomail manages separate policy files and TLS-RPT configurations for every domain under your account, with per-domain dashboards and alerting.
Before delivering an email, the sending mail server (MTA) looks up the recipient's MTA-STS policy. If the policy says "enforce", the sending MTA must establish a valid TLS connection — or it cannot deliver the email at all. No exceptions.
Migomail generates all required files and provides the exact DNS records to add. You never write policy files manually or manage HTTPS infrastructure.
The policy file is a plain-text file served over HTTPS at the well-known URL. It tells sending MTAs: "only deliver to our domain over TLS, and only to these specific MX hostnames." Migomail hosts this file on our infrastructure using your mta-sts subdomain — you delegate the subdomain to us with a CNAME record.
The DNS TXT record at _mta-sts.yourdomain.com tells sending MTAs that an MTA-STS policy exists for your domain and provides a policy ID. When the ID changes, sending MTAs know to re-fetch the policy file. Migomail rotates the policy ID automatically when the policy is updated.
The TLS-RPT reporting record tells sending MTAs where to send TLS failure reports. Migomail receives these reports at our dedicated address, processes the JSON data, and presents failures as a readable dashboard with alerts for any TLS issues affecting inbound delivery to your domain.
Migomail hosts the policy file HTTPS endpoint. You add a CNAME record pointing mta-sts.yourbrand.com to our infrastructure. Migomail handles SSL/TLS certificate management for that subdomain, ensuring the policy file is always accessible over valid HTTPS as required by the MTA-STS spec.
TLS-RPT reports classify every failed TLS connection attempt by failure type. Each type has a different root cause and a different remediation action.
Most modern mail servers support STARTTLS — but "support" is not the same as "enforced". Without MTA-STS, opportunistic TLS can be downgraded by a network attacker. MTA-STS changes opportunistic TLS into strict, enforced TLS.
Our ISO 27001 auditor asked for evidence of encrypted email transit. Before Migomail MTA-STS, the best we could show was "we support STARTTLS" — which the auditor noted was opportunistic and not enforced. After implementing MTA-STS with enforce mode and TLS-RPT, we could show a policy that mandates TLS and daily reports confirming it. The auditor was satisfied. Setup took 25 minutes. I honestly expected it to be much harder.
The TLS-RPT reports immediately told us something we did not know: our secondary MX host (which we use for failover) had an expired SSL certificate. Our primary MX was fine, so we never noticed. But every time a sending MTA tried the secondary MX — which happens during primary MX unavailability — it was encountering a certificate error. In MTA-STS enforce mode, those connections would have been aborted, causing email delivery failures. We found and fixed the expired certificate before we switched to enforce mode, precisely because TLS-RPT showed us the failure. Without TLS-RPT, we would have discovered this problem when customers started reporting missing emails.
We had tried to implement MTA-STS ourselves following the RFC specification. The policy file format is simple enough, but hosting it over HTTPS on the mta-sts subdomain, managing the SSL certificate for that subdomain, and configuring automatic policy ID rotation was genuinely time-consuming infrastructure work. Migomail's hosted service eliminated all of that. Three DNS records and it was done. The TLS-RPT dashboard is genuinely useful — it showed us on day one that two of our customers' MTAs were generating certificate validation failures when connecting to us, which we were able to trace to a wildcard certificate boundary issue.
"Switching to Migomail cut our email costs by 40% and our inbox placement jumped to 98.7%. The onboarding team set up DKIM, SPF, and DMARC in a single call — and our campaigns have been running flawlessly ever since."
Rahul Menon
Head of Growth, SaaS Platform — IndiaCommon questions about MTA-STS and TLS-RPT.
STARTTLS is opportunistic — a sending mail server will use TLS if it is available, but will fall back to unencrypted SMTP if the connection negotiation fails or is interfered with. This makes STARTTLS vulnerable to downgrade attacks. MTA-STS is a policy standard that tells sending MTAs: "this domain only accepts email over valid TLS — if you cannot establish a TLS connection with a valid certificate, do not deliver the email unencrypted." Sending MTAs that support MTA-STS will queue the email and retry rather than falling back to plaintext delivery.
A TLS downgrade attack occurs when an attacker positioned between two mail servers (man-in-the-middle) intercepts the SMTP connection and removes or modifies the STARTTLS extension advertisement — causing the sending server to believe the receiving server does not support TLS and fall back to unencrypted SMTP. The email is then transmitted in plaintext, readable by the attacker. MTA-STS prevents this by requiring the sending MTA to enforce TLS — if TLS fails (for any reason), the email is not delivered rather than falling back to plaintext.
TLS Reporting (TLS-RPT, RFC 8460) is a companion standard to MTA-STS. When a sending MTA encounters a TLS failure while trying to deliver to your domain, it records the failure event. At the end of each 24-hour period, participating MTAs send a JSON report to the address specified in your _smtp._tls DNS TXT record. The report includes: the sending MTA identity, the type of TLS failure (certificate expired, STARTTLS not supported, MX mismatch, etc.), the number of affected messages, and the affected MX hostname.
It can, if your mail server configuration has issues that MTA-STS makes visible. The most common problems are: an expired SSL/TLS certificate on an MX server, an MX hostname that is not covered by the certificate, or an MX record that is not listed in the MTA-STS policy file. This is exactly why Migomail starts with mode=testing — in testing mode, TLS failures are reported but not enforced, so you can identify and fix all certificate and configuration issues before switching to enforce mode. We recommend running in testing mode for at least 7 days and reviewing TLS-RPT reports before switching to enforce.
MTA-STS protects inbound email — it tells other mail servers how to deliver email to your domain. For outbound email protection, DKIM, SPF, and DMARC are the relevant standards. However, many large email providers (Gmail, Outlook, Yahoo) publish their own MTA-STS policies, which means Migomail's sending infrastructure enforces TLS when delivering email to those providers — ensuring your outbound emails to major providers are also delivered encrypted.