ssl certs are only reloaded on startup. Mailu serves out of date certificates #10
Open
opened 2024-04-02 13:36:09 +00:00 by knoflook
·
1 comment
No Branch/Tag Specified
main
renovate/ghcr.io-mailu-webmail-2024.x
renovate/ghcr.io-mailu-rspamd-2024.x
renovate/ghcr.io-mailu-postfix-2024.x
renovate/ghcr.io-mailu-nginx-2024.x
renovate/ghcr.io-mailu-dovecot-2024.x
renovate/ghcr.io-mailu-admin-2024.x
test2
backupbot
upgrade-ee4e727
upgrade-e19297a
upgrade-3.2.0+2024.06.52
upgrade-3.1.0+2024.06.52
upgrade-3.0.1+2024.06.52
fetchmail-support
arc-dkim
dev
4.0.1+2024.06.67
4.0.0+2024.06.67
3.2.1+2024.06.66
3.2.0+2024.06.61
3.1.5+2024.06.61
3.1.4+2024.06.58
3.1.3+2024.06.57
3.1.2+2024.06.55
3.1.1+2024.06.52
3.1.0+2024.06.52
3.0.1+2024.06.52
3.0.1+2024.06.37
3.0.0+2024.06.27
2.0.0+2024.06.27
1.1.1+2.0.41
1.1.0+2.0.34
1.0.2+2.0.23
1.0.1+2.0.16
1.0.0+2.0.16
0.2.1+1.9
0.2.0+1.9
0.1.0+1.8
Labels
No items
No labels
Milestone
No items
No Milestone
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze (Born Deleuze)
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
dannygroenewegen (Danny Groenewegen)
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
hex (Josh Dukes)
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1 (p4u1)
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting (stevensting)
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/mailu#10
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The certificates mounted in
appcontainer in/certsare getting dumped bytraefik-certs-dumperproperly but mailu doesn't scan for them changing.behavior:
If we have a container running for a really long time (2 months+ uptime because that's how long the letsencrypt certs are valid), the smtp/imap servers will serve the certificate that was loaded 2 months ago which will have expired by this time. Even though the file has been rotated by
traefik-certs-dumper.workaround:
restart the
appcontainer every 2 months to load the new certificates lolAmazing troubleshooting @knoflook, nice one!
Mailu docs recommend running this after certs are regenerated:
docker exec mailu_front_1 nginx -s reloadIs it possible that's enough, if the
frontcontainer is indeed terminating TLS even for IMAP/SMTP connections? Maybe it's something we can add to thetraefik-certdumperconfig? Or a separate service usinginotifywatchto detect changes in certs and reload when there are new ones?