This is more of a comment than a question, in case anyone encounters a similar issue. I was getting an error sending a test email when I used mailer port 587, but I was able to successfully get it to work when I switched to port 465, as in the config below.
VIKUNJA_MAILER_ENABLED: 1
VIKUNJA_MAILER_FORCESSL: 1
VIKUNJA_MAILER_HOST: smtp.gmail.com
VIKUNJA_MAILER_PORT: 465
VIKUNJA_MAILER_USERNAME: myacct@gmail.com
VIKUNJA_MAILER_PASSWORD: secretapppass
Not sure why this is. I have postfix server enabled in the same machine where I have a Vikunja container, and it also uses gmail on port 587 without issues… I wonder if there is a way to enable vikunya to use the postfix server already installed in the machine…
to test the email, I run:
sudo docker exec vikunja-api-1 /app/vikunja/vikunja testmail recipientemail@gmail.com
The error I got on port 587 was:
Error sending test mail: dial failed: tls: first record does not look like a TLS handshake