# How to setup proper 465 transactional mail configuration?

**URL:** <https://forum.ghost.org/t/how-to-setup-proper-465-transactional-mail-configuration/62016>\
**Category:** Self-hosting\
**Created:** [February 25, 2026, 9:34am UTC](https://forum.ghost.org/t/how-to-setup-proper-465-transactional-mail-configuration/62016 "2026-02-25T09:34:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ololiuhqui](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ololiuhqui/32/39615_2.png) [@ololiuhqui](https://forum.ghost.org/u/ololiuhqui)\
**Post date:** [February 25, 2026, 9:34am UTC](https://forum.ghost.org/t/how-to-setup-proper-465-transactional-mail-configuration/62016/1 "2026-02-25T09:34:42Z")

</div>

Hi! I found out that using a non SSL/TLS port with the “secure” option seems to work, while if I use port 465 it doesn’t. (using Mailgun and Ghost Docker installation)

Essentially this won’t work:

```auto
mail__transport=SMTP
mail __options__ host=smtp.eu.mailgun.org
mail __options__ port=465
mail __options__ secure=true
mail __options__ auth__user=MYUSER
mail __options__ auth__pass= *******
mail__from="'My Mailer' <my@mailer.com>"

```

While this will:

```auto
mail__transport=SMTP
mail __options__ host=smtp.eu.mailgun.org
mail __options__ port=587
mail __options__ secure=false
mail __options__ auth__user=MYUSER
mail __options__ auth__pass= *******
mail__from="'My Mailer' <my@mailer.com>"

```

Is it even possible to use SSL/TLS with Ghost transactional emails?

---

<div class="post-metadata">

**Author:** ![disgustipated](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@disgustipated](https://forum.ghost.org/u/disgustipated)\
**Post date:** [February 25, 2026, 10:36am UTC](https://forum.ghost.org/t/how-to-setup-proper-465-transactional-mail-configuration/62016/2 "2026-02-25T10:36:40Z")

</div>

i think you might be missing the requireTLS flag, this is my config with 587

```auto
      "port": 587,
      "secure": false,
      "requireTLS": true,

```
