renewal lets encrypt cert ispconfig registers to initial hostname

Discussion in 'General' started by sjak_congnac, Apr 25, 2025.

  1. sjak_congnac

    sjak_congnac New Member

    A server was rented and had the name server1.yourprovider.org.
    • The server was renamed using hostnamectl to myserver,mydomain.org
    • the reverse dns was adjusted at the dns provider, so doing an reverse lookup of the ip results myserver.mydomain.org
    • ispconfig was installed using the installer
    Server is performing as expected, untill the certificate for ispconfig is renewed, the new cert is created for server1.yourprovider.org.
    To fix the problem i exected ispconfig_update --force and all is well, but i would prefer that the renewal process is registering the cert to myserver.mydomain.org

    How to proceed?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Does the command:

    hostname -f

    returns the correct new hostname? If you did not, you did not rename the server correctly. A hostname need not just be changed with hostnamectl, you must also change it, e.g., in /etc/hosts and /etc/mailname.
     
  3. sjak_congnac

    sjak_congnac New Member

    i did the rename of the server before i installed ispconfig(a while ago)
    hostname -f responds with the correct fqdn
    /etc/hosts and /etc/mailname look wel

    i did a text search on the wrong hostname, and it seems /etc/postfix/main.cf is containing the wrong name.
    /etc/postfix/main.cf:# myhostname = server1.yourprovider.org

    But this file is maintained by ispconfig, or can i change this manually?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You can change the hostname in main.cf manually.
     
  5. sjak_congnac

    sjak_congnac New Member

    Seems it was already commented out, i removed it, not sure if this solved the problem
     

Share This Page