With fdm (the mail fetch program that I use), I had the following error:
version is: fdm 2.0, started at: Mon May 24 12:28:59 2021
imap.replicant.us: certificate verification failed: certificate has expired
imap.replicant.us: fetching error. aborted
imap.replicant.us: 0 messages processed in 0.893 seconds
So I tried to manually update the certificates as root with:
apt install certbot # For some reason certbot was removed
certbot renew
It had some errors like:
FileNotFoundError: [Errno 2] No such file or directory: '/var/www/letsencrypt/autoconfig.replicant.us'
And:
/etc/letsencrypt/live/mx1.replicant.us/fullchain.pem (failure)
So I tried to workaround like that and it also updated the one or two failing cert(s):
systemctl stop apache2
certbot --standalone renew
systemctl start apache2
But I still had the issue with dovecot.
So I had to restart dovecot to be able to download the mails again.
So we probably need to:
- Investigate why certbot is gone (again?), look if we are still using FAI somehow, and if so fix it there.
- Fix the letsencrypt errors by creating the directory needed and do a
certbot renew
without stopping apache for testing if it works.
- Find a way to have hooks run once the certificates are obtained. Guix for instance has bindings to do that, so it's probably a common use case. We just have to find how to do it with Trisquel / systemd.