I haven't dug into lemmy setup/code yet but "465" sounds like lemmy is trying port 25 and the server says "no no no what are you doing plz use TLS over 465"
Lemmy Support
Support / questions about Lemmy.
It is the same thing that I thought. Unfortunately, if I try to manually force the port by writing smtps.aruba.it:465 as I said the server freezes for several minutes, goes to 504 and does not send any email.
So I can not understand if the port must be entered in another way (?) or if I have to install something on the server first to be able to send an email through an external SMTP as in this case?
From what i can read here default email.tls_type value is "none" and it's not overridden in lemmy-ansible. Maybe try this?
yes, actually i tried 'none', 'tls' and 'starttls' but with no success. I tried with external SMTP because the default created by ansible does not work:
email: {
smtp_server: "postfix:25"
smtp_from_address: "noreply@mydomain.it"
tls_type: "none"
}
Sounds like a bug. When you turn on debug logging do you see anything specific? (i don't even know if debug logging is a thing in Lemmy ansible setup). Can you maybe also try with another SMTP client like msmtp to see if you can reach your mail server from it? It's possible that some network misconfiguration prevents it, or that your mail provider has blocked your IP/range for some reason.
I have answered and find the solution here: https://lemmy.ml/post/258218/comment/176759
Thanks for the help!
Apologies for necro'ing an old thread but - the above link has gone 404. What was the solution? I'm trying to do the same thing and am not sure how to get it to authenticate with my SMTP server.
My problem was that the Hetzner server was new and therefore certain ports were closed. I solved it by contacting Hetzner support and having them open the ports.