Hello everyone,
I am trying to configure a mail server in my Vikunja instance deployed using Docker. The mail server is from OVH, and I have successfully configured it in other applications.
The configuration that I have in my docker-compose file is as follows:
services:
vikunja:
image: vikunja/vikunja
environment:
VIKUNJA_SERVICE_PUBLICURL: https://vikunja.domain.com
VIKUNJA_DATABASE_HOST: db
VIKUNJA_DATABASE_PASSWORD: password
VIKUNJA_DATABASE_TYPE: mysql
VIKUNJA_DATABASE_USER: vikunja
VIKUNJA_DATABASE_DATABASE: vikunja
VIKUNJA_SERVICE_JWTSECRET: supersecret
VIKUNJA_SERVICE_TIMEZONE: Europe/Madrid
VIKUNJA_MAILER_ENABLED: true
VIKUNJA_MAILER_HOST: ssl0.ovh.net
VIKUNJA_MAILER_PORT: 465
VIKUNJA_MAILER_USERNAME: <mail_address>
VIKUNJA_MAILER_PASSWORD: <mail_pwd>
VIKUNJA_MAILER_FROMEMAIL: <mail_address>
VIKUNJA_MAILER_FORCESSL: true
VIKUNJA_MAILER_SKIPTLSVERIFY: false
VIKUNJA_LOG_MAIL: stdout
VIKUNJA_LOG_MAILLEVEL: debug
ports:
- 3456:3456
volumes:
- ./files:/app/vikunja/files
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: mariadb:10
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: supersecret
MYSQL_USER: vikunja
MYSQL_PASSWORD: password
MYSQL_DATABASE: vikunja
volumes:
- ./db:/var/lib/mysql
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u $$MYSQL_USER --password=$$MYSQL_PASSWORD"]
interval: 2s
start_period: 30s
When I try to send an email using the testmail script ( docker exec -it vikunja-vikunja-1 /app/vikunja/vikunja testmail destination@domain.com ), I get the following output:
2024-11-10T16:49:49Z: INFO ▶ 001 No config file found, using default or config from environment variables.
2024-11-10T16:49:49Z: INFO ▶ 002 Sending testmail...
2024-11-10T16:49:50.07665279Z: DEBUG ▶ [MAIL] 003 EHLO c5ec860a19bb
2024-11-10T16:49:50.104433395Z: DEBUG ▶ [MAIL] 004 250 OVH SMTP PROXY Hello
SIZE 104857600
ENHANCEDSTATUSCODES
AUTH LOGIN PLAIN
AUTH=LOGIN PLAIN
8BITMIME
2024-11-10T16:49:50.10453384Z: DEBUG ▶ [MAIL] 005 NOOP
2024-11-10T16:49:50.13187952Z: DEBUG ▶ [MAIL] 006 250 Requested mail action okay, completed
2024-11-10T16:49:50.132035841Z: DEBUG ▶ [MAIL] 007 AUTH PLAIN 4865834675jhg45jh3g5j34gh5j35
2024-11-10T16:49:50.463843415Z: DEBUG ▶ [MAIL] 008 235 2.7.0 Authentication successful
2024-11-10T16:49:50.463870381Z: DEBUG ▶ [MAIL] 009 NOOP
2024-11-10T16:49:50.490691666Z: DEBUG ▶ [MAIL] 00a 250 Requested mail action okay, completed
2024-11-10T16:49:50.490759478Z: DEBUG ▶ [MAIL] 00b MAIL FROM:<destination@domain.com> BODY=8BITMIME
2024-11-10T16:49:50.667875391Z: DEBUG ▶ [MAIL] 00c 250 2.1.0 Ok
2024-11-10T16:49:50.667985818Z: DEBUG ▶ [MAIL] 00d RCPT TO:<destination@domain.com>
2024-11-10T16:49:50.737984754Z: DEBUG ▶ [MAIL] 00e 250 2.1.5 Ok
2024-11-10T16:49:50.73806366Z: DEBUG ▶ [MAIL] 00f DATA
2024-11-10T16:49:50.86755389Z: DEBUG ▶ [MAIL] 010 354 OK
2024-11-10T16:49:50.954093908Z: DEBUG ▶ [MAIL] 011 NOOP
2024-11-10T16:49:50.981127061Z: DEBUG ▶ [MAIL] 012 250 Requested mail action okay, completed
2024-11-10T16:49:50.981214909Z: DEBUG ▶ [MAIL] 013 RSET
2024-11-10T16:49:51.033873767Z: DEBUG ▶ [MAIL] 014 250 2.0.0 Ok
2024-11-10T16:49:51.033998131Z: DEBUG ▶ [MAIL] 015 NOOP
2024-11-10T16:49:51.061074034Z: DEBUG ▶ [MAIL] 016 250 Requested mail action okay, completed
2024-11-10T16:49:51.06115854Z: DEBUG ▶ [MAIL] 017 NOOP
2024-11-10T16:49:51.087974311Z: DEBUG ▶ [MAIL] 018 250 Requested mail action okay, completed
2024-11-10T16:49:51.088063512Z: DEBUG ▶ [MAIL] 019 QUIT
2024-11-10T16:49:51.115522702Z: DEBUG ▶ [MAIL] 01a 221 domain.com Service closing transmission channel
2024-11-10T16:49:51Z: INFO ▶ 01b Testmail successfully sent.
But the email never arrives. Do you have any idea of what am I doing wrong?
Thank you