Browse Source

need to restart dovecot in addition to postfix to manage imap/pop :-)

master
victor héry 2 years ago
parent
commit
4ac148cb58
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      create-cert-postfix

+ 1
- 0
create-cert-postfix View File

@ -23,6 +23,7 @@ if [ $? -eq 0 ]; then
echo "$(date +%c) Success!"
rsync -az -L /etc/letsencrypt/live/mail.$1/cert.pem /etc/letsencrypt/live/mail.$1/privkey.pem /etc/letsencrypt/live/mail.$1/chain.pem ssl-san@${mail_server}:${postfix_pem_path}
ssh ssl-san@${mail_server} "sudo systemctl reload postfix"
ssh ssl-san@${mail_server} "sudo systemctl restart dovecot"
else
echo "$(date +%c) Error creating certificate with error code $?, exit script..."
exit 1

Loading…
Cancel
Save