Mailgun announced on November 9, 2026 that starting March 1, 2027, its SMTP service will only accept connections using TLS 1.2 or higher. Connections arriving with TLS 1.0 or 1.1 will be rejected, and those messages won't be sent. It sounds like a cryptography footnote, but the impact is very practical: if an app, a relay, or some forgotten system tucked away in a corner sends password resets, receipts, or login codes over SMTP, on March 1 those emails stop going out without anyone touching a line of code. There are less than four months left, and the heavy lifting isn't fixing things, it's finding what needs fixing.
What exactly changes
According to Mailgun's announcement:
- Starting March 1, 2027, Mailgun SMTP only accepts connections using TLS 1.2 or a later version.
- Connections using TLS 1.0 or 1.1 are rejected and those messages are not sent.
- The change only applies to sending over SMTP. If you send everything through the Mailgun API, you don't have to do anything.
- Mailgun monitors SMTP traffic that arrives with old TLS versions. If it detects any on your account, admins get an email and see a notice in the dashboard.
The company justifies the change with the obvious: TLS 1.0 dates from 1999, both versions have known weaknesses, the big browsers dropped them in 2020, and the IETF formally deprecated them in 2021 with RFC 8996. Mailgun adds that sending mail with those protocols exposes both the messages and your SMTP credentials along the way.
Who should be worried
Mailgun lists the environments where the problem tends to show up:
- Windows Server 2008 or 2012, where TLS 1.2 isn't enabled by default.
- .NET Framework 4.5 or earlier. According to Mailgun, from version 4.6 on, TLS 1.2 is used by default.
- Old OpenSSL builds, or legacy apps and plugins that hard-code an old TLS version.
My take: the code your team maintains is probably already fine. A modern stack negotiates TLS 1.2 or 1.3 without being asked; for example, the Node.js documentation says its default minimum TLS version is already TLSv1.2. The real risk is in whatever nobody remembers sends email: the office scanner, the ERP that sends invoices, the monitoring tool that alerts you when something goes down, the years-old WordPress with an SMTP plugin. That's exactly what Mailgun asks you to check.

Step 1: take inventory
Mailgun recommends searching everywhere your SMTP credentials or the smtp.mailgun.org host appear:
- Your apps and services, including staging and background workers.
- Mail servers or relays, like Postfix, that forward to Mailgun.
- CMS plugins, ecommerce platforms, and any tool configured with your SMTP username.
- Third-party or legacy systems: CRMs, ERPs, scanners, or monitoring tools that send alerts.
Many teams have several applications sending through the same account, so checking the main app isn't enough. If you already got Mailgun's notice by email or in the dashboard, that's a sign something on your account is still negotiating an old version.
Step 2: test the connection
The announcement suggests this OpenSSL test, which forces TLS 1.2 when talking to Mailgun's SMTP:
openssl s_client -connect smtp.mailgun.org:587 -starttls smtp -tls1_2
If the handshake works, it prints the certificate chain and a line with Protocol : TLSv1.2 or higher. Watch what this actually proves: it confirms that your machine can speak TLS 1.2, not that your application uses it. An app with an old library or a hard-coded version can keep negotiating TLS 1.0 on a server where OpenSSL is up to date. That's why you should check each client too.
Step 3: set TLS 1.2 as the minimum on every client
Mailgun's blog has examples for Python, Node.js, .NET, and Postfix. The snippets below are mine and come from each tool's official documentation. I didn't test them against Mailgun.
Python (smtplib). Since Python 3.7, SSLContext.minimum_version lets you set the minimum version, according to the ssl module documentation:
import smtplib, ssl
ctx = ssl.create_default_context()
ctx.minimum_version = ssl.TLSVersion.TLSv1_2
with smtplib.SMTP("smtp.mailgun.org", 587) as s:
s.starttls(context=ctx)
print(s.sock.version()) # debe decir TLSv1.2 o TLSv1.3
Node.js (Nodemailer). The transport's tls option is passed to Node's TLS connection, which accepts minVersion:
const transporter = nodemailer.createTransport({
host: "smtp.mailgun.org",
port: 587,
auth: { user: process.env.MG_USER, pass: process.env.MG_PASS },
tls: { minVersion: "TLSv1.2" },
});
.NET Framework 4.5. Mailgun says that on that version you have to enable TLS 1.2 manually before connecting, and that from 4.6 onward it's on by default. The usual way is:
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
Postfix as a relay. Mailgun asks you to set the minimum protocol in main.cf (Postfix 3.6 or later) and reload Postfix. The Postfix documentation explains that since 3.6 the >=version syntax is used, and that smtp_tls_mandatory_protocols applies when encryption is mandatory. If your relay uses opportunistic TLS, the parameter that counts is smtp_tls_protocols, so the safe move is to set both:
smtp_tls_mandatory_protocols = >=TLSv1.2
smtp_tls_protocols = >=TLSv1.2
Then, postfix reload.
A bonus: TLS on the other end too
The announcement includes a useful tidbit that has nothing to do with the deadline. If you add the X-Mailgun-Require-TLS header to your messages, Mailgun will only deliver them to the recipient's server over a secure connection. The March change protects the leg between your app and Mailgun; this header covers the leg between Mailgun and the recipient's inbox.
What this means
My take: Mailgun isn't the first and won't be the last. TLS 1.0 and 1.1 have been marked as obsolete for years, and each provider is switching them off at its own pace. If you send transactional email through any service, this is a good excuse to do a complete inventory of everything that sends on your behalf. The date that matters is March 1, 2027, but the failure is silent: one day the "reset your password" emails simply don't arrive, and you find out from an angry customer, not from a log.