Email Configuration Help

Have two questions around email setup.

Have Vikunja running on a windows docker instance. Trying to setup the email to send thru proton email bridge which is a desktop app running on the windows machine. Using host.docker.internal it appears to be able to connect to the bridge but fails to send an email. It reports both auth failed and auth succeeded…
:arrow_forward: mail/func1 3af Error during connect to smtp server: %s SMTP AUTH failed: unexpected server response: 2.0.0 Authentication succeeded
Pretty sure it hitting the proton mail bridge, because if I turn off the bridge I get a completely different error.
:arrow_forward: mail/func1 629 Error during connect to smtp server: %s dial tcp 192.168.65.2:1025: connect: connection refused

Have tried a few combination of email settings. Current setting are.
VIKUNJA_SERVICE_ENABLETASKATTACHMENTS: 1
VIKUNJA_SERVICE_ENABLEEMAILREMINDERS: 1
VIKUNJA_MAILER_ENABLED: 1
VIKUNJA_MAILER_FORCESSL: 0
VIKUNJA_MAILER_AUTHTYPE: login
VIKUNJA_MAILER_SKIPTLSVERIFY: 1
VIKUNJA_MAILER_HOST: host.docker.internal
VIKUNJA_MAILER_PORT: 1025
VIKUNJA_MAILER_FROMEMAIL: email
VIKUNJA_MAILER_USERNAME: email
VIKUNJA_MAILER_PASSWORD: password

Other question is there an easier way to test email? Currently just keep updating a task reminder to test it. See other post about using a testmail command but can’t get any of them to work.

Have you tried different auth types? What do the bridge’s docs say about things like STARTTLS?

What does not work about the testmail command?

1 Like

Will try a different auth type, believe I tried plain and login but will retry.

Wasn’t able to get the testmail command to work until today. was trying /app/vikunja testmail, but apparently its /app/vikunja/vikunja testmail .

Got it working, finally found the correct combination of settings. Still get an error when sending email but the email is sent, both via the testmail and actual reminders.
:arrow_forward: mail/func1 17bc Error closing the mail server connection: %s not connected to SMTP server

Thanks for the help. Now need to work on getting backups working. :slight_smile:

1 Like

Glad you figured it out! Would you mind sharing your configuration so that others who have the same problem can profit as well?

1 Like

There are the email settings that worked to get vikunja sending emails thru proton bridge.
VIKUNJA_SERVICE_ENABLEEMAILREMINDERS: 1
VIKUNJA_MAILER_ENABLED: 1
VIKUNJA_MAILER_FORCESSL: 0
VIKUNJA_MAILER_AUTHTYPE: plain
VIKUNJA_MAILER_SKIPTLSVERIFY: 1
VIKUNJA_MAILER_HOST: host.docker.internal
VIKUNJA_MAILER_PORT: 1025
VIKUNJA_MAILER_FROMEMAIL: email
VIKUNJA_MAILER_USERNAME: email
VIKUNJA_MAILER_PASSWORD: password