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
Klaus Kobald Thu 23 May 2019 12:07PM
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.
Brendan Butler Thu 23 May 2019 5:16PM
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
Rob Guthrie Thu 23 May 2019 8:13PM
@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.
Klaus Kobald Fri 24 May 2019 9:09AM
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?
Rob Guthrie Fri 24 May 2019 8:13PM
Yes, you need to
docker-compose down docker-compose up -d after changing the
Klaus Kobald Fri 24 May 2019 9:12AM
great - it works. seems a restart of the docker containers is needed!
Rob Guthrie Fri 24 May 2019 8:14PM
Great! Based on your experience do you have any recommendations for changes to the loomio-deploy readme file?
Klaus Kobald Mon 3 Jun 2019 7:20AM
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!
Brendan Butler · Thu 23 May 2019 10:45AM
Are the smtp ports open on this machine?