I am using Mailcow
in combination with traefik
. The Important lines of my setup for my questions are:
nginx-mailcow:
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.mail.rule=Host(`mail.amani-kinderdorf.de`)"
- "traefik.http.routers.mail.entrypoints=https"
- "traefik.http.routers.mail.tls=true"
- "traefik.http.routers.mail.tls.certresolver=letsencrypt"
- "traefik.http.routers.mail.middlewares=secHeaders@file"
- "traefik.http.services.mail.loadbalancer.server.port=6680"
- "traefik.http.routers.mailcow.entrypoints=http"
- "traefik.http.routers.mailcow.rule=HostRegexp(`{host:(autodiscover|autoconfig|webmail|mail|email).+}`)"
networks:
- web
certdumper:
image: humenius/traefik-certs-dumper
container_name: traefik_certdumper
network_mode: none
command: --restart-containers mailcowdockerized_postfix-mailcow_1,mailcowdockerized_dovecot-mailcow_1
volumes:
- /srv/docker/traefik:/traefik:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./data/assets/ssl:/output:rw
environment:
- DOMAIN=amani-kinderdorf.de
With this the automatically generated certificates are stored into data/assets/ssl
. I then restart mailcowdockerized_postfix-mailcow_1
and mailcowdockerized_dovecot-mailcow_1
I think this is all I need to do. This setup works wonderfull, but I keep getting Mails, that my certificates are about to expire with the Subject Watchdog ALERT: certcheck
and the following contentn which repeats itself multiple times:
SSL OK - Certificate 'www.amani-kinderdorf.de' will expire in 48 days on 2023-01-20 02:06 +0100/CET.
SSL CRITICAL - Certificate 'www.amani-kinderdorf.de' expired on 2022-11-20 21:01 +0100/CET.
SSL OK - Certificate 'www.amani-kinderdorf.de' will expire in 48 days on 2023-01-20 02:06 +0100/CET.
SSL CRITICAL - Certificate 'www.amani-kinderdorf.de' expired on 2022-11-20 21:01 +0100/CET.
SSL OK - Certificate 'www.amani-kinderdorf.de' will expire in 48 days on 2023-01-20 02:06 +0100/CET.
SSL CRITICAL - Certificate 'www.amani-kinderdorf.de' expired on 2022-11-20 21:01 +0100/CET.
SSL OK - Certificate 'www.amani-kinderdorf.de' will expire in 48 days on 2023-01-20 02:06 +0100/CET.
SSL CRITICAL - Certificate 'www.amani-kinderdorf.de' expired on 2022-11-20 21:01 +0100/CET.
...
This Mail starts to come up after about i guess 60 days of constantly running mailcow. After a restart it is gone. So what am I missing? Is there another service that needs restart? Is the one line related to SMTP and the other to IMAP?
Thanks in advance for your help and answers.