I need help here

Discussion in 'Installation/Configuration' started by claro123, May 10, 2021.

  1. claro123

    claro123 New Member

    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
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which ISPConfig version do you use?
     
  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    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?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
    claro123 likes this.
  5. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Yes, unless you need different domain names in the SSL certificate beside the server hostname.
     
  6. claro123

    claro123 New Member

    I am using ISPConfig 3.2.4 Released
    so I can't use this guide ???
     
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    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.
     
    claro123 likes this.
  8. claro123

    claro123 New Member

    Thank you Th0m always for the same help for you till
     

Share This Page