Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
setup_basic_mailserver_with_postfix_dovecot_sieve [02.01.2020 11:57]
Pascal Suter [proxmox mail gateway]
setup_basic_mailserver_with_postfix_dovecot_sieve [28.05.2020 10:31]
Pascal Suter
Line 65: Line 65:
 to make sure letsencrypt will restart all our servers once the ssh keys change, we need to add this:  to make sure letsencrypt will restart all our servers once the ssh keys change, we need to add this: 
 <​code>​ <​code>​
-echo -e "​\npost-hook = service postfix restart ​service dovecot ​restart ; service apache2 ​restart"​ >> ​/​etc/​letsencrypt/​cli.ini+cat > /​etc/​letsencrypt/​renewal-hooks/​post/​restart_services.sh <<​EOF 
 +#​!/​bin/​bash 
 +service postfix restart 
 +service dovecot ​reload 
 +service apache2 ​reload 
 +EOF 
 +chmod +x /​etc/​letsencrypt/​renewal-hooks/​post/​restart_services.sh 
 </​code>​ </​code>​