Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/Mailgun smtp is moving to tls 12 what you need to do before the march 1 2027 upd
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

Mailgun SMTP is moving to TLS 1.2: What you need to do before the March 1, 2027 update

Source: Transactional Email API Service For Developers | Mailgun•November 9, 2026 at 04:04 PM

Mailgun SMTP is moving to TLS 1.2: What you need to do before the March 1, 2027 update

Starting March 1, 2027, Mailgun will reject SMTP connections that use TLS 1.0 or 1.1. If your app sends email to Mailgun over SMTP, here's how to check your TLS version and update it before your messages stop sending. The post Mailgun SMTP is moving to TLS 1.2: What you need to do before the…

November 9, 2026

If your app sends password resets, receipts, login codes, or other transactional messaging with Mailgun over SMTP with an old version of TLS, Mailgun won’t be able to accept them after March 1, 2027.

This change applies to SMTP sending only. Here’s what’s changing, and how to update.

Table of contents

Table of contents

What’s changing with Mailgun SMTP and TLS?

Starting March 1, 2027, Mailgun SMTP will only accept connections over TLS 1.2 or higher. Connections that use TLS 1.0 or 1.1 will be rejected, and those messages won’t be sent.

Why is Mailgun retiring TLS 1.0 and 1.1?

TLS 1.0 dates back to 1999. Both 1.0 and 1.1 have known weaknesses causing major browsers to drop these protocols in 2020, and the IETF to formally deprecate them in 2021 (RFC 8996). Sending messages over these protocols puts your messages, and your SMTP credentials, at risk in transit.

Requiring TLS 1.2 or higher protects every sender on the platform, not just the ones who already made the switch.

Does this change affect you?

Senders who send to Mailgun over SMTP and whose mail server, app, or email library negotiates TLS 1.0 or 1.1. will be impacted. Senders who send only through the Mailgun API do not need to make any updates.

Mailgun monitors SMTP traffic for old TLS versions. If Mailgun detects old TLS on your account, admins will get an email and see a banner in their Mailgun account dashboard.

Older environments known to impact TLS:

  • Windows Server 2008 or 2012, where TLS 1.2 isn’t on by default
  • .NET Framework 4.5 or earlier
  • Outdated OpenSSL builds, or legacy apps and plugins that pin an old TLS version

We recommend you move to TLS 1.2 or higher as soon as possible. For most customers, this means updating a setting in the mail server, application, or email library you use to connect to Mailgun.

What happens if I don’t update TLS?

After the cutoff, Mailgun can’t accept SMTP connections that use TLS 1.0 or 1.1 which will impact messages you attempt to send. That includes email your customers count on, like password resets and receipts.

How to update to TLS 1.2

Follow the steps below to make sure you’re updated.

Find everything that sends over SMTP

Many teams have more than one app sending through the same Mailgun account. Check all apps and instances where your Mailgun SMTP credentials or smtp.mailgun.org appear:

  • Your own apps and services, including staging and background workers
  • Mail servers or relays, like Postfix, that forward mail to Mailgun
  • CMS plugins, ecommerce platforms, and other tools configured with your SMTP login
  • Vendor or legacy systems, like CRMs, ERPs, scanners, or monitoring tools, that send alerts

Check your environment

In the example curl below, you will see the SMTP chat to verify which TLS you are currently using:

openssl s_client -connect smtp.mailgun.org:587 -starttls smtp -tls1_2

A successful handshake prints the certificate chain and “Protocol : TLSv1.2” or higher.

How do I know I’m fixed?

Use the code samples below to validate that your service is running TLS 1.2 or later when connecting to Mailgun for message sending via SMTP.

Python (smtplib)

Node.js (Nodemailer)

.NET Framework

On .NET 4.5, add this line before you connect. Version 4.6 and later use TLS 1.2 by default.

Postfix relay

If Postfix relays your mail to Mailgun, set the minimum protocol in main.cf (Postfix 3.6 or later), then reload Postfix:

Pro tip: Want TLS on the other leg of the trip too? Add the X-Mailgun-Require-TLS header and Mailgun will only send your message to the recipient’s server over a secure connection.

Wrapping up

Remember, all your changes and updates need to be completed before March 1, 2027. Our support team is available to help ensure your accounts are ready to send on TLS 1.2

← All articles

What this article says

More in MarTech & AdTech

All →
Self-Driving is out of beta (we finally fixed the pricing, too)
Posthog

Self-Driving is out of beta (we finally fixed the pricing, too)

Branded vs. unbranded queries in AI search — and how to track them
Hubspot

Branded vs. unbranded queries in AI search — and how to track them

What are Interactive Emails? 12 Examples, Types & How to Create Them
Clevertap

What are Interactive Emails? 12 Examples, Types & How to Create Them

11 Email Pop-Up Best Practices, with Real Examples
Klaviyo

11 Email Pop-Up Best Practices, with Real Examples

Why People Leave the 13 Best Email Marketing Platforms
Activecampaign

Why People Leave the 13 Best Email Marketing Platforms

Candidates flipped seven Senate seats this election. The winners are all on Substack.
Substack

Candidates flipped seven Senate seats this election. The winners are all on Substack.

More from Mailgun

How to build an email stack that moves as fast as your AI models
Mailgun

How to build an email stack that moves as fast as your AI models

How to receive Sinch Mailgun email alerts in Discord using webhooks
Mailgun

How to receive Sinch Mailgun email alerts in Discord using webhooks

Open Rates Didn’t Die. They Just Entered Witness Protection
Mailgun

Open Rates Didn’t Die. They Just Entered Witness Protection

Building up to BIMI: Our webinar recap featuring RedSift
Mailgun

Building up to BIMI: Our webinar recap featuring RedSift

Verified, not invited: What Gmail’s political sender program actually says about deliverability
Mailgun

Verified, not invited: What Gmail’s political sender program actually says about deliverability

Deliverability Is Basically a Cat
Mailgun

Deliverability Is Basically a Cat