# Mail does not go out after recent update

**URL:** https://meta.discourse.org/t/mail-does-not-go-out-after-recent-update/393621
**Category:** Support
**Tags:** email
**Created:** [January 16, 2026, 3:10am UTC](https://meta.discourse.org/t/mail-does-not-go-out-after-recent-update/393621 "2026-01-16T03:10:17Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [January 19, 2026, 6:11pm UTC](https://meta.discourse.org/t/mail-does-not-go-out-after-recent-update/393621/10 "2026-01-19T18:11:21Z")

</div>

I think it’s failing before even attempting login.

To eliminate Discourse as a factor, try from the host AND from inside the container:

```plaintext
$ openssl s_client -connect smtp.mailgun.org:587 -starttls smtp

```

You should get a bunch of output and then be able to try to auth:

```plaintext
○ → openssl s_client -connect smtp.mailgun.org:587 -starttls smtp
Connecting to 34.160.63.108
CONNECTED(00000003)
…
SSL-Session:
   …
---
read R BLOCK
EHLO localhost
250-2ed1d46f4d7dec773e2a97b59f3a3bf8a2d6db54f94eead5dcf49e3ea1caac18
250-AUTH PLAIN LOGIN
250-SIZE 52428800
250-8BITMIME
250-SMTPUTF8
250 PIPELINING
AUTH PLAIN bWljaGFlbABtaWNoYWVsAHBhc3N3b3Jk
501 Username used for auth is not valid email address
535 Authentication failed
closed

```

The strings you would type are:

```plaintext
EHLO localhost
AUTH PLAIN bWljaGFlbABtaWNoYWVsAHBhc3N3b3Jk

```

(that string is the creds `michael/password` so it obviously won’t work, but you can see [this post](https://meta.discourse.org/t/error-535-auth-failure/273959/10) to learn how to construct the string for your actual credentials if you want to try by hand)

Hopefully seeing firsthand what works and what fails will help.

You might also want to try using [`swaks`](https://jetmore.org/john/code/swaks/) if it’s available - it’s probably an OS package you can install.

It’s a bit easier and you can e.g.:

```plaintext
swaks --to frodo@shire.net --from bilbo@shire.net --auth PLAIN --auth-user bilbo --auth-password ring --server smtp.mailgun.org:587 --tls

```

except you can use your real credentials.

The output of that might also help reveal the problem.

---

_[View the full topic](https://meta.discourse.org/t/mail-does-not-go-out-after-recent-update/393621)._
