How to setup proper 465 transactional mail configuration?

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:

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:

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?

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

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