From 252ebc6eb964acb0a750920db5ff8ca2c4c9bbde Mon Sep 17 00:00:00 2001 From: Alexander Gabriel Date: Wed, 15 Jan 2025 21:35:25 +0100 Subject: [PATCH] added update of cert and restart ftp-daemon --- le_mailserver_restart.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/le_mailserver_restart.sh b/le_mailserver_restart.sh index 663ffce..c72bc50 100644 --- a/le_mailserver_restart.sh +++ b/le_mailserver_restart.sh @@ -9,4 +9,7 @@ # Description: Restart mail server automatically when a new Let's Encrypt certificate is issued. ### END INIT INFO systemctl restart postfix -systemctl restart dovecot \ No newline at end of file +systemctl restart dovecot +cat /root/.acme.sh/mail.example.com/fullchain.pem > /etc/ssl/private/pure-ftpd.pem +cat /root/.acme.sh/mail.example.com/mail.example.com.key >> /etc/ssl/private/pure-ftpd.pem +systemctl restart pure-ftpd-mysql.service