Changing hostname of server after building

Questions and answers about how to do stuff
Post Reply
micoots
Posts: 12
Joined: 28 Apr 2014 07:06

Changing hostname of server after building

Post by micoots »

Hi,

I'd like to change the hostname of the server after building it. Domain name will remain the same.

I'm running the latest 3.0.0.4 version.

How is it best to change a hostname without rebuilding the server from scratch?

Thanks.

Michael.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Changing hostname of server after building

Post by shawniverson »

This can be done...

Plan to add it to EFA-Configure in a later release...

Here's what you need to do.

1) Change HOSTNAME in /etc/sysconfig/network
2) Change hostnames in /etc/hosts
3) Execute

Code: Select all

sudo hostname <yourhostname>
(without <>)

4) Change Hostname in /etc/MailScanner/MailScanner.conf
5) Change Hostname in /etc/EFA-Config

Reboot
micoots
Posts: 12
Joined: 28 Apr 2014 07:06

Re: Changing hostname of server after building

Post by micoots »

Hi. Thank you so much for this information. Followed precisely and all worked as expected.

Saves quite some time from having to rebuild a server from scratch. Thanks again.
Post Reply