After using your Plesk server for some time, you might want to, or have to change your server’s hostname. Assuming your server runs Fedora Core or Redhat, you’ll have to make changes in the following locations:
Your current hostname should be here behind the server’s IP address, change this to the new hostname
You should have a HOSTNAME variable here, change this to your new hostname.
This contains the old hostname, change it to your new hostname to make qmail identify itself as the new hostname.
You should have a ServerName variable here, change it to your new hostname.
- Change the servers hostname while it’s running, normally this is set at boot.
- Set the new hostname inside Plesk’s database:
mysql -u admin -p`cat /etc/psa/.psa.shadow`
update misc set val=’NEWHOSTNAME’ where param=’FullHostName’;
Now restart Plesk to activate your changes: