Setting a proper hostname on your server is important for several reasons, including being able to easily identify which server your cPFence notification emails are coming from. The hostname is also required for many other features in cPFence and your server to function properly.
1. Check Your Current Hostname
hostnamectl2. Set the New Hostname
sudo hostnamectl set-hostname your-new-hostname3. Update the Hosts File
Open /etc/hosts in your preferred editor:
sudo nano /etc/hostsFind a line similar to:
127.0.1.1    old-hostnameChange it to:
127.0.1.1    your-new-hostname4. Apply the Change
To apply the new hostname, you can reboot your server, log out and log back in, or simply reload your shell with:
exec bashOnce completed, your Ubuntu system will use the new hostname, making it easier to identify server-specific notifications and ensuring proper functionality for cPFence and other server features.
Need Further Assistance?
Visit our Knowledgebase or contact our support team for help.
