Page 1 of 1

Changing hostname of server after building

Posted: 28 Apr 2014 20:53
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.

Re: Changing hostname of server after building

Posted: 01 May 2014 18:01
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

Re: Changing hostname of server after building

Posted: 03 May 2014 01:11
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.