# SMTPAuthenticationError - I don't receive mail from mailgun to setup the admin account

**URL:** <https://meta.discourse.org/t/smtpauthenticationerror-i-dont-receive-mail-from-mailgun-to-setup-the-admin-account/248608>\
**Category:** Self-hosting\
**Created:** [December 12, 2022, 12:42am UTC](https://meta.discourse.org/t/smtpauthenticationerror-i-dont-receive-mail-from-mailgun-to-setup-the-admin-account/248608 "2022-12-12T00:42:34Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)\
**Post date:** [December 12, 2022, 1:34am UTC](https://meta.discourse.org/t/smtpauthenticationerror-i-dont-receive-mail-from-mailgun-to-setup-the-admin-account/248608/6 "2022-12-12T01:34:17Z")

</div>

🤔 could you try to authenticate  
create a base64 encoded string

```plaintext
echo -ne '\0username\0password' | base64

```

then

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

```

and

```plaintext
AUTH PLAIN withthebase64stringfromabove

```

---

_[View the full topic](https://meta.discourse.org/t/smtpauthenticationerror-i-dont-receive-mail-from-mailgun-to-setup-the-admin-account/248608)._
