I am doing this installation https://www.howtoforge.com/securing...server-with-a-valid-lets-encrypt-certificate/ the part where it mentions Open a new script file: nano /etc/init.d/le_mailserver_restart.sh Paste this in that file (replace mail.example.com with the hostname you used): #!/bin/sh ### BEGIN INIT INFO # Provides: LE MAILSERVER CERT AUTO UPDATER # Required-Start: $local_fs $network # Required-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: LE MAILSERVER CERT AUTO UPDATER # Description: Restart mail server automatically when a new Let's Encrypt certificate is issued. ### END INIT INFO systemctl restart postfix systemctl restart dovecot this part Paste this in that file (replace mail.example.com with the hostname you used): where should i replace mail.example.com if i don't see mail.example.com in the record it mentions #!/bin/sh ### BEGIN INIT INFO # Provides: LE MAILSERVER CERT AUTO UPDATER # Required-Start: $local_fs $network # Required-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: LE MAILSERVER CERT AUTO UPDATER # Description: Restart mail server automatically when a new Let's Encrypt certificate is issued. ### END INIT INFO here it does not mention it please help
The content should be Code: #!/bin/sh ### BEGIN INIT INFO # Provides: LE MAILSERVER CERT AUTO UPDATER # Required-Start: $local_fs $network # Required-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: LE MAILSERVER CERT AUTO UPDATER # Description: Restart mail server automatically when a new Let's Encrypt certificate is issued. ### END INIT INFO systemctl restart postfix systemctl restart dovecot This text "Paste this in that file (replace mail.example.com with the hostname you used):" is incorrect, and should be changed to "Paste this in that file:" @till could you change that?
I wonder which ISPConfig version she uses, as the guide is only for ISPConfig < 3.2 (as mentioned at the top of the guide). So probably she just used the wrong guide and should undo all steps. I'll update that.
If you want a certificate for just the hostname, you don't need the guide and can issue it on install/update (ispconfig_update.sh --force). But in case you want it for a different hostname (e.g. smtp.example.com and imap.example.com) you can use this guide.