Open rojakcoder opened 5 years ago
It does work but you must configure your google account that less secure apps can access your google account. If i remember correctly you can use app specific passwords when you have 2FA enabled.
The setting is turned on (screen cap 1).
As mentioned, Google seems to require re-authentication when Caddy boots up. I believe when I couldn't do so, Google flags it as a suspicious sign-in attempt (screen cap 2).
I "installed" Caddy as a service on systemd (Ubuntu 18.04).
I'm able to start the service manually like so:
sudo systemctl start caddy.service
I then tried making the service start upon system boot up:
sudo systemctl enable caddy.service
It does not work.
I'm using a Gmail account to send out emails. However, Google is blocking access when the service is being started during boot up - says "Unusual sign-in attempt prevented".
It works fine if I start the service manually.
I can see from the logs below (
sudo journalctl --boot -u caddy.service
) that Google is requiring me to re-authenticate if starting the service upon bootup. Of course I am unable to do so if the service is being start during bootup.I was wondering if anyone has any experience in getting Mailout to work with Gmail for auto-start Caddy service on systemd.