Email/Vox
Industry

Mailgun sets a TLS 1.2 deadline for SMTP: March 1, 2027

Starting March 1, 2027, Mailgun will reject SMTP that negotiates TLS 1.0/1.1. Here’s who’s affected, how to test, and what to change now.

Nora Vale

By Nora Vale· Email Vox · 12 Nov 2026

Two contrasting network cables side by side: a frayed, older ethernet lead and a newer, sturdy cable, symbolizing the shift from deprecated TLS to modern TLS 1.2.

Key facts

  • ■Mailgun will require TLS 1.2+ for SMTP on March 1, 2027; TLS 1.0/1.1 will be rejected.
  • ■API-only Mailgun senders aren’t affected; the change targets SMTP connections.
  • ■Mailgun will email admins and show dashboard banners if it detects old TLS.
  • ■Windows Server 2008/2012 and outdated OpenSSL stacks are common blockers.
  • ■You can test now with openssl s_client and enforce TLS 1.2 in code or Postfix.
  • ■Add X-Mailgun-Require-TLS to ensure encrypted delivery to recipient servers.

Timeline

  1. 1999TLS 1.0 introduced (baseline that’s now considered weak)
  2. 2020Major browsers remove TLS 1.0/1.1 support
  3. 2021IETF formally deprecates TLS 1.0 and 1.1 (RFC 8996)
  4. March 1, 2027Mailgun requires TLS 1.2+ for SMTP; TLS 1.0/1.1 rejected

If you still send to Mailgun over SMTP using old TLS, the clock is now very real. On March 1, 2027, Mailgun will only accept TLS 1.2 or higher. Anything that negotiates TLS 1.0 or 1.1 gets bounced before it sends a single byte of your message.

Mailgun says API senders can relax; this applies to SMTP connections only. But if your password resets, invoices, and login codes ride SMTP, you have work to do, especially if you own legacy Windows servers, pinned OpenSSL builds, or forgotten plugins.

What happened

Mailgun announced it will require Transport Layer Security (TLS) 1.2 or later for all SMTP connections starting March 1, 2027. Connections that try TLS 1.0 or 1.1 will be rejected, so those messages will not be sent (Mailgun).

The company frames the cutoff as a platform-wide safety net. TLS 1.0 and 1.1 were widely deprecated after known weaknesses led major browsers to drop support in 2020 and the IETF to formally deprecate both in 2021 under RFC 8996 (Mailgun).

Mailgun monitors SMTP traffic for outdated TLS. If it detects your account still negotiates old protocols, it will email admins and put a banner in your dashboard as an early warning (Mailgun).

Senders most at risk include Windows Server 2008 or 2012 where TLS 1.2 isn’t enabled by default, outdated OpenSSL stacks, and libraries or plugins that explicitly pin to older TLS versions (Mailgun).

Mailgun’s guidance is to move “as soon as possible.” That can be as simple as toggling a minimum TLS version in your mail server, app, or email library. The alternative is a quiet outage the day after the deadline, when SMTP handshakes fail before AUTH (Mailgun).

The background

TLS 1.0 dates to 1999. While it bootstrapped early HTTPS and SMTP security, today both 1.0 and 1.1 are considered too weak. Browsers removed them in 2020, and the IETF deprecated both in 2021’s RFC 8996 due to known cryptographic issues (Mailgun).

For SMTP, an outdated TLS path isn’t just theoretical. Mailgun warns that using 1.0/1.1 can expose message contents and SMTP credentials in transit—risk that can cross-account boundaries if attackers replay stolen logins on better-configured apps (Mailgun).

Mailgun’s change scopes only the leg from your systems to smtp.mailgun.org. If you also want modern cryptography on the delivery hop to a recipient’s server, Mailgun supports an X-Mailgun-Require-TLS header that will only send if the next hop negotiates TLS successfully (Mailgun).

The company explicitly says API senders don’t need to update anything. That matters if you’ve mixed modes: a marketing platform might use the API while a legacy billing system relays over SMTP through Postfix, which becomes the weak link (Mailgun).

The fastest test to confirm your path is ready is a STARTTLS handshake probe. Mailgun’s example uses: openssl s_client -connect smtp.mailgun.org:587 -starttls smtp -tls1_2, which should return a successful certificate chain and “Protocol : TLSv1.2” (or higher) in the output (Mailgun).

In code, you can harden explicitly. Mailgun provides working examples: Python’s smtplib with an ssl.create_default_context() and a minimum_version of TLSv1_2; Node.js/Nodemailer with tls: { minVersion: "TLSv1.2" }; .NET Framework 4.5 with ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12 (4.6+ defaults to TLS 1.2) (Mailgun).

For MTAs, Postfix 3.6 or later can enforce the floor with smtp_tls_protocols = >=TLSv1.2 and smtp_tls_mandatory_protocols = >=TLSv1.2, followed by a reload to apply. Older Postfix builds may need broader upgrades to get the comparison operator and modern OpenSSL support (Mailgun).

This kind of hygiene lines up with deliverability best practices: fewer failed handshakes mean fewer transient 4xx errors and less chance your retries look like suspicious storms. If you’re tuning resilience, our walk-through on how to harden deliverability when security headlines spike pairs clean crypto with calm retry logic.

If security is top of mind because phishing noise is up, modern TLS is part of a stack that also includes auth and controls. See our playbooks on an inbox‑safe plan for a noisier week of phish and a quick DKIM smoke test that proves your signer isn’t mangling whitespace.

What people are saying

Mailgun’s post is straightforward about risk: using TLS 1.0/1.1 “puts your messages, and your SMTP credentials, at risk in transit.” The company adds the requirement “protects every sender on the platform, not just the ones who already made the switch” (Mailgun).

Operationally, Mailgun says it will notify affected accounts automatically. Admins will get an email and see a banner in the dashboard if the service detects an old TLS handshake from any app tied to that account, which helps large teams spot stray senders (Mailgun).

The company also lists typical culprits so teams can prioritize. Windows Server 2008/2012 often ship with TLS 1.2 disabled; some legacy vendors pin transport security to a static library; and outdated OpenSSL builds can silently prevent a TLS 1.2 negotiation until upgraded (Mailgun).

Mailgun encourages immediate testing and configuration updates. It even provides one‑line examples for common stacks and a Postfix relay configuration, plus a reminder that you can set X-Mailgun-Require-TLS to enforce encryption to recipient servers as well (Mailgun).

Security teams we talk with often welcome fixed deadlines because they end “compatibility forever.” This date gives procurement lead time to replace pinned libraries, and it creates an internal change window well ahead of the cutoff—as long as owners inventory every SMTP pathway, not just the obvious one.

For industry watchers, the move tracks broader deprecation cycles. Big browsers dropped 1.0/1.1 years ago, IETF blessed the change via RFC 8996 in 2021, and ESPs tightening SMTP transport follows the same arc. For the bigger picture across providers, check our industry hub.

What happens next

From now to March 1, 2027, expect periodic nudges from Mailgun if your account hits old TLS. Use those as tickets to find where smtp.mailgun.org credentials are embedded—apps, staging, Daemons, relays, scanners, and vendor boxes included (Mailgun).

If you rely on Windows Server 2008/2012, plan either to enable TLS 1.2, upgrade the OS, or front your traffic with a modern relay. For OpenSSL, confirm the library actually negotiates TLS 1.2; package managers on older distros can still pull dated builds that fail quietly (Mailgun).

Build regression tests that assert a TLS 1.2+ handshake on CI for any app that sends email. In code, set a minimum version so future config drift can’t relax it. For infrastructure, pin Postfix’s smtp_tls_mandatory_protocols to >=TLSv1.2 and reload so the control is enforced at the relay boundary (Mailgun).

Finally, consider enabling X-Mailgun-Require-TLS for sensitive flows like password resets and login codes. That lifts the floor on the next hop too, which aligns with incident playbooks that treat tokens and credentials as crown jewels in transit (Mailgun).

The Email Vox take

  • Inventory every SMTP path that touches smtp.mailgun.org — apps, workers, relays, plugins, scanners, and vendor tools. Don’t forget staging. Block old TLS at the edge so you see failures now, not in 2027.

  • Set a minimum TLS version in code and MTAs today: Nodemailer tls.minVersion = "TLSv1.2"; .NET 4.5 add Tls12; Postfix set mandatory_protocols. Upgrade OpenSSL where needed. Add X-Mailgun-Require-TLS to protect delivery downstream.

Frequently asked questions

what is changing with mailgun smtp in 2027?
Starting March 1, 2027, Mailgun SMTP will only accept TLS 1.2 or higher. Connections negotiating TLS 1.0 or 1.1 will be rejected and messages won’t send.
does this affect mailgun api sending?
No. Mailgun says the TLS change applies to SMTP sending only. If you send exclusively via the API, you don’t need to change anything.
how do i check if my smtp path to mailgun uses tls 1.2?
Run: openssl s_client -connect smtp.mailgun.org:587 -starttls smtp -tls1_2. A successful handshake shows “Protocol : TLSv1.2” or higher.
which systems are most likely to break?
Mailgun flags Windows Server 2008/2012 (TLS 1.2 off by default), outdated OpenSSL builds, and legacy apps or plugins that pin old TLS versions.
what happens if i don’t upgrade by the deadline?
Mailgun will reject SMTP connections that use TLS 1.0/1.1 after March 1, 2027. Transactional emails like password resets and receipts won’t be sent.
can i force tls on delivery to recipient servers too?
Yes. Mailgun says adding the X-Mailgun-Require-TLS header makes it send your message only over a secure connection to the recipient’s server.
will mailgun notify me if my account still uses old tls?
Yes. Mailgun monitors SMTP traffic and will email admins and show a dashboard banner if it detects old TLS on your account.
how do i enforce tls 1.2 in my code or mta?
.NET 4.5: enable Tls12 in ServicePointManager. Node.js/Nodemailer: set tls.minVersion to "TLSv1.2". Postfix 3.6+: set smtp_tls_protocols and smtp_tls_mandatory_protocols to >=TLSv1.2.

Why this matters

SMTP still moves passwords, login codes, and receipts between apps and providers. Forcing TLS 1.2+ closes off weak ciphers that can expose message contents and SMTP credentials in transit. With big web platforms already off old TLS, Mailgun’s deadline nudges stragglers to modern stacks and reduces cross-tenant risk. Senders that audit now avoid last-minute outages, and they can also raise the floor for downstream hops by requiring TLS end to end. This is security that helps deliverability too: fewer flaky handshakes and fewer reasons for receivers to distrust your path.

Sources

Reporting draws on the public sources listed above. Spotted an error? Request a correction.

Follow-up coverage

Related coverage