Hello! I managed to set up an instance quite easily with Ansible, only problem now is that I can’t send emails in any way!

If I leave the default configuration (postfix: 25) and try to ask for a password reset, it tells me it sent it but nothing really comes.

I then thought of using an external SMTP, since I have it available together with the domain.

If I put: “smtps.aruba.it” then adding smtp_login and smtp_password when I try to send an email I get an error with only written: “465”.

If I add the port to the SMTP server like this: “smtps.aruba.it:465” and also adding in “tls_type: tls” the server freezes for 5 minutes, does not send anything and I do not receive any errors.

I’m definitely doing something wrong but what? Where can I look?

Thanks!

1 point

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”

permalink
report
reply
2 points
*

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?

permalink
report
parent
reply
0 points

From what i can read here default email.tls_type value is “none” and it’s not overridden in lemmy-ansible. Maybe try this?

permalink
report
parent
reply
1 point

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"
  }
permalink
report
parent
reply

Lemmy Support

!lemmy_support@lemmy.ml

Create post

Support / questions about Lemmy.

Matrix Space: #lemmy-space

Community stats

  • 162

    Monthly active users

  • 1.2K

    Posts

  • 5.6K

    Comments

Community moderators