问题原文
原帖链接 · Andrew Newby · CC BY-SA 3.0
This is a follow up to another question I had, but its quite different so I thought I'd start a new post.
Emails bouncing - 454 TLS not available due to temporary reason
I'm trying to work out why I still get this error message when adding an email account (in this case, in Thunderbird - but I also get the problem on phones as well);
The weird thing is that if I check it on SSL-Tools.net, it looks fine:
https://ssl-tools.net/mailservers/wkingbrickwork.co.uk
I really don't get it - as Thunderbird shows me my certificate is expired here:
Am I missing something? Please let me know if you need any more information to help me debug. I'm not sure what would be helpful.
已采纳解答
原帖链接 · Gerald Schneider · CC BY-SA 4.0
Inspecting the certificate shows that the certificate has expired.
Since the webserver provides a valid certificate, it seems that the mail service hasn't been restarted after the certificate was renewed and is still serving the old certificate.
A restart of the mail service should fix the problem.
To prevent such problems in the future you can use the deploy-hook of certbot with a simple shell script.
This is a script I am using:
#!/bin/bash
for domain in $RENEWED_DOMAINS
do
if [ "$domain" = mail.example.com ]
then
systemctl reload dovecot
systemctl reload postfix
elif [ "$domain" = intern.example.com ]
then
cp /etc/letsencrypt/live/$domain/* /etc/ldap/ssl/
chown -R openldap:openldap /etc/ldap/ssl/
chmod 640 /etc/ldap/ssl/*
systemctl reload slapd
else
systemctl reload apache2
fi
done
The script is provided to certbot with the --deploy-hook parameter in the cron job:
/opt/certbot-auto --deploy-hook /opt/certbot-renew renew --quiet --no-self-upgrade
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
