Cannot configure smtp email

I have self hosted ghost in docker…
I am trying to configure my domain email address in ghost…it is using mailhostbox service…
my ghost config is
mail__transport: ‘SMTP’
mail__from: ‘myemail’
mail__options__host: ‘us2.smtp.mailhostbox.com
mail__options__port: 587
mail__options__secure: ‘false’
mail__options__tls__rejectUnauthorized: ‘false’
mail__options__auth__user: ‘myemail’
mail__options__auth__pass: ‘mypass’

I am getting the following error

EmailError: Failed to send email. Reason: 140518792378240:error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol:…/deps/openssl/openssl/ssl/statem/statem_lib.c:1958:

I have tried setting secure to false and true, no luck…
my domain provides SMTP(STARTTLS) on port 25 and 587…
I can successfully send via the Gmail send mail as feature and my windows mail app client, so no problems in domain smtp…problem is somewhere in ghost config…
What am I doing wrong?

NVM…This fixed it…
I added this to my docker stack environment variable…
mail__options__tls__minVersion: ‘TLSv1’
Seems like, mailhostbox is using an outdated tls version…
anyone else having similar issue can try this…

1 Like