New instance cannot send email via Gmail - eviltoast

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: " <noreply@lemmy.example.com>"
    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?

  • HanSooloo@lemmy.worldOP
    link
    fedilink
    arrow-up
    1
    ·
    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.