Loomio

no mails

KK
Klaus Kobald Public Seen by 203

I have set the env parameters for smtp to the same values my email client is using for sending mail, but I do not get any mail after creating an account.
Where would I see, if authentication failed?
(it says failed but no reason)
This is the log:
loomio-worker | Sent mail to klaus@.........com (60164.5ms)
loomio-worker | [Worker(host:a9b603d572a6 pid:7)] Job UserMailer.login (id=69) FAILED (0 prior attempts) with Net::ReadTimeout: Net::ReadTimeout with #
loomio-worker | 2019-05-23T09:17:43+0000: [Worker(host:a9b603d572a6 pid:7)] Job UserMailer.login (id=69) FAILED (0 prior attempts) with Net::ReadTimeout: Net::ReadTimeout with #
loomio-worker | [Worker(host:a9b603d572a6 pid:7)] 1 jobs processed at 0.0115 j/s, 1 failed
loomio-worker | 2019-05-23T09:17:43+0000: [Worker(host:a9b603d572a6 pid:7)] 1 jobs processed at 0.0115 j/s, 1 failed
loomio-worker | [Worker(host:a9b603d572a6 pid:7)] Job UserMailer.login (id=69) RUNNING
loomio-worker | 2019-05-23T09:17:53+0000: [Worker(host:a9b603d572a6 pid:7)] Job UserMailer.login (id=69) RUNNING
loomio-worker | Rendering user_mailer/login.html.haml within layouts/invite_people_mailer

BB

Brendan Butler Thu 23 May 2019

Are the smtp ports open on this machine?

loomio-worker | [Worker(host:a9b603d572a6 pid:7)] Job UserMailer.login (id=69) FAILED (0 prior attempts) with Net::ReadTimeout: Net::ReadTimeout with #TCPSocket:(closed)
KK

Klaus Kobald Thu 23 May 2019

hm. it´s a cloud based root server on hetzner.de with ubuntu 18 out of the box. I did not open or close anything. I just launched it 16 hrs ago with only this project.
actually I installed everthing as root user, which is maybe not smart - but that´s an other story I guess.

KK

Klaus Kobald Thu 23 May 2019

do I have to install sendmail or something?

BB

Brendan Butler Thu 23 May 2019

I personally never have used that company for VPS, but in all other VPS I've had I had to go to the firewall rules and enable ports, some open 80 and 443 (default html/htmls ports) but leave ports for smtp (587) closed.

I did a search and found this; https://wiki.hetzner.de/index.php/Robot_Firewall/en

It may help you find where to change those settings.

You mentioned that emails worked else where (did you mean in your mailbox you receive/send, or do you mean you have another application running that is using these SMTP settings that does work?) So I don't think you'll need to invest in such as Send mail. You should be good if your mail provider gives you smtp and ipop (sending and receiving)
Services like Koho don't provide these for the free tier, so be careful and make sure your provider has these

RG

Rob Guthrie Thu 23 May 2019

@klauskobald - I doubt you need to open ports.
I think it is likely an SMTP configuration issue. Are you able to see logs on the SMTP server? That's where the best information will be.

Have you set all of the following SMTP variables? I've given a redacted version of a real config below.

SMTP_AUTH: plain
SMTP_DOMAIN: loomio.org
SMTP_PASSWORD: password-removed
SMTP_PORT: 587
SMTP_SERVER: smtp.server.com
SMTP_USERNAME: username-removed

KK

Klaus Kobald Fri 24 May 2019

ok. this is more variables than I got. Seems the port is a different one. Do I need to restart the system after changing data?

RG

Rob Guthrie Fri 24 May 2019

Yes, you need to docker-compose down docker-compose up -d after changing the env file.

KK

Klaus Kobald Fri 24 May 2019

great - it works. seems a restart of the docker containers is needed!

RG

Rob Guthrie Fri 24 May 2019

Great! Based on your experience do you have any recommendations for changes to the loomio-deploy readme file?

KK

Klaus Kobald Mon 3 Jun 2019

I think, your latest change was the missing link. I would put all the SMTP information as you have it in the posting above into the env including the port!