[-] smartwater0897@lemmy.ml 0 points 1 year ago

Only in a sick society it's a crime to show the world war crimes.

[-] smartwater0897@lemmy.ml 0 points 1 year ago

You don't think Assange is being tortured? What would you call it then? :)

[-] smartwater0897@lemmy.ml 1 points 1 year ago

A lot of western people still believe that they are free, because they dont recognize their prison from history books.

[-] smartwater0897@lemmy.ml 0 points 1 year ago

Actually it seems that port 587 is open (starttls) while port 465 (tls) is closed. I can connect to port 587 on my email server from my Hetzner instance (im also using them).

But how should the config look like to forward emails? How does your config look like?

1
submitted 1 year ago* (last edited 1 year ago) by smartwater0897@lemmy.ml to c/lemmy_support@lemmy.ml

I cant get my email sending to work on my instance. After trying for hours, i wanted to ask for some support here since im quite stuck and dont understand.

I installed Lemmy using ansible so everything is set up in a very standard way - except email.

I want my instance to send email to an external smtp server (Fastmail) whenever there is a need to send an email (user registration, password reset, etc).

Currently the email settings in lemmy.hjson looks like this:

  email: {
    smtp_server: "postfix:25"
    smtp_login: "abc@fastmail.se"
    smtp_password: "fastmail_user_password_here"
    smtp_from_address: "noreply@lemmy.today"
    tls_type: "tls"
  }

It seems like i need to have postfix:25 as the smtp server. What i really want is to put smtp.fastmail.com:465 here since thats what i want to use to send email. But that doesnt seem to work.

So I understand I need to send email through postfix, but then I wonder, how should the config look like to send emails to smtp.fastmail.com on port 465 (which is what they have on fastmail), with a specific username and password used on the fastmail server?

I think a lot of people are having issues with the email part of the setup, judging from the many reports of spinning buttons on user signup... this is a very likely reason, specially since there is no error message to the user.

Please help me sort this out, how should i configure this?

EDIT:

Ok after a lot of experiments and help from people below, this was the solution.

  email: {
    smtp_server: "smtp.fastmail.com:587"
    smtp_login: "my_email@fastmail.com"
    smtp_password: "password"
    smtp_from_address: "my_email@fastmail.com"
    tls_type: "starttls"
  }

Using this, email sending finally works. I couldnt use something else in the smtp_from_address. Which means my real email gets shown to users, so I will probably create another email address for this purpose completely.

Also specific to Hetzner instances, they dont block port 587 so you can use that with starttls.

[-] smartwater0897@lemmy.ml 1 points 1 year ago

I'm a little bit confused by the federation thing. How would I let my instance talk to any other instance except the ones I blacklist?

[-] smartwater0897@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)

Great work! Can you include the instance description in this list also?

Also i would love to see country but that's doesn't seem to be included in the Lemmy app. I guess you could do a ip lookup on some service to see country if you really wanted to.

[-] smartwater0897@lemmy.ml 1 points 1 year ago

First thing I read on Lemmy and it's like I've found emotionally intelligent people finally.

I saw the same thing on Mastadon, just normal people capable of handling their emotions.

Western social media (and television) is promoting the worst in people and it can make users believe everyone is insane. So it's very nice to see this being posted.

Thanks!

smartwater0897

joined 1 year ago