Author Topic: Hostname Change due to CWP not reflecting hostname assigned VPS Provider console  (Read 947 times)

0 Members and 1 Guest are viewing this topic.

HAving setup a VPS, i realised that for some reason, the CWP install did not assign the hostname as expected. Instead it applied the default from VPS service provider "" (

 i thought i had changed the service providers default hostname.fqdn to "" before install, however, i now suspect i must have not done this.

ok, so I have changed my system hostname as follows:

Dashboard>Server Settings>Change Hostname>New Hostname (

I then "Rebuild Mail Server" with new hostname

Postfix now reflects the change...

current settings in postfix
domain= ""
hostname = ""

Dovecot fails to start...displaying an error because the SSL certificate for the new hostname "" is not being appended to /etc/pki/tls/certs.

warning: TLS library problem: 32545:error:02001002:system library:fopen:No such file or directory:bss_file.c:402:fopen('/etc/pki/tls/certs/','r'):

Isnt CWP supposed to automatically append new certificate to the "etc/pki/tls/certs/ file when hostname is changed? (i would imagine CWP should at least add a self signed cert here)

Did i miss something?

please run sh/scripts/generate_hostname_ssl

thanks for that.

i was logged in as root user...when enterring code as shown i got an error...

[root@host1 ~]# sh/scripts/generate_hostname_ssl
-bash: sh/scripts/generate_hostname_ssl: No such file or directory

instead, i entered the following (without the "sh")

[root@server4 ~]# /scripts/generate_hostname_ssl

Which then executed the script without any problem.

I am assuming this is ok as Dovecot now starts without issue.

sure thats ok