gotosocial icon indicating copy to clipboard operation
gotosocial copied to clipboard

[feature] Support SMTPS (smtp with implicit tls) rather than just STARTTLS

Open vivlim opened this issue 4 months ago • 5 comments

Describe the bug with a clear and concise description of what the bug is.

If SMTP is configured using a SSL port, emails will not be sent, and any attempts to use the /api/v1/admin/email/test endpoint will hang.

With my nginx reverse proxy config, the request will time out after 60 seconds and return a 504. gotosocial's logs (at least at the default level) don't contain any hints when this happens.

To reproduce, with either smtp2go or mailgun, set the smtp server and port to one of these combinations: mail.smtp2go.com:(465|8465|443) smtp.mailgun.org:465 (other providers likely work for repro also)

I don't really understand how 'SSL' and 'TLS' are used in the context of smtp, but the docs mention that the server needs to present valid ssl certificates, and smtp2go & mailgun describe those ports as "SSL" so it's really easy to end up with an invalid configuration and not know why.

Also... I don't know if this only reproduces on nixos, I don't have a non-nixos server handy to test this on.

What's your GoToSocial Version?

0.16.0 and 0.17.0-rc1

GoToSocial Arch

x86_64, built on nixos

What happened?

No response

What you expected to happen?

No response

How to reproduce it?

No response

Anything else we need to know?

No response

vivlim avatar Sep 29 '24 05:09 vivlim