PDA

View Full Version : how to change server name


lexcomputer
12th October 2005, 08:08
Could anyone tell me how to change my server name

I got the result after run telnet mail.mydomain.com 25

220 server1.mydomain.com ESMTP Postfix

Then I would like to change from server1.mydomain.com to ns.yourdomain.net. How can I make change?

Thank you.

falko
12th October 2005, 11:01
Run
echo ns.yourdomain.net > /etc/hostname
/bin/hostname -F /etc/hostname

Also change your hostname in /etc/postfix/main.cf (myhostname and mydomain). Don't forget to restart Postfix.