this post was submitted on 04 Jul 2023
4 points (100.0% liked)

Lemmy Support

4662 readers
18 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Setup a self hosted instance and am using Gmail SMTP server with an app password. However, when I try to register a test user, I get an error indicating that "This server hasn't correctly set up email."

I used the Lemmy Easy Deploy project to set my system up. Following is the relevant section of the lemmy.hjson config file:

  email: {
    smtp_server: "smtp.gmail.com:587"
    smtp_login: "<user_name>@gmail.com"
    smtp_password: "my_super_secret_password"
    smtp_from_address: " <[email protected]>"
    tls_type: "tls"
  }

How can I find out why my Lemmy server thinks the email isn't setup properly?

How can I send email from my instance using a Gmail account I created for this purpose?

you are viewing a single comment's thread
view the rest of the comments
[–] HanSooloo 1 points 1 year ago

Looks like we have this issue: https://github.com/LemmyNet/lemmy/issues/3058

Network configs were removed from the docker-compose file. Does anyone know whether in its current form, whether any outgoing network connection on TCP/587 (TLS SMTP) would work?

Can't test myself inside the Lemmy container, as that one doesn't have any real commands installed in it.