Question on changing hostname
Hi folks,
Ubuntu 7.04 server amd64
I need to change hostname from; to:
Apart making changes on;
1)
$ sudo postconf -e myhostname=mail.satimis.com
$ cat /etc/postfix/main.cf | grep myhostname Code:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
myhostname = mail.satimis.com
$ sudo /etc/init.d/postfix restart Code:
* Stopping Postfix Mail Transport Agent postfix [ OK ]
* Starting Postfix Mail Transport Agent postfix [ OK ]
2)
Edit /etc/hosts as; Code:
127.0.0.1 localhost.localdomain localhost
192.168.0.10 mail.satimis.com mail
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Edit /etc/hostname as;
$ sudo newaliases
$ sudo hostname mail.satimis.com
Both w/o complaint
$ uname -n
mail.satimis.com
$ hostname -a
mail
$ hostname -s
mail
$ hostname -d
satimis.com
$ hostname -f
mail.satimis.com
$ hostname
mail.satimis.com
$ hostname -i
192.168.0.10
$ hostname -y
(none)
I don't have /etc/sysconfig/network file and "sysconfig" directory
Please advise any other files I need to edit as well. TIA
B.R.
satimis