Can you tell me the way to change a server's hostname so that everything works? It seems whatever I try, it creates a problem. The server is leased, when they installed Fedora Core 3, they assigned the server as 66-226-75-8.
We have about 15 domains on it now, but are having mail issues among other things. The mailog is full of warnings about the hostname not being FQDN, the hostname being numeric. It suggests naming the host in postfix/main.cf, but that causes all kinds of internal loop problems, as in thousands of undeliverable mail notices in a couple of mailboxes.
Changing the hostname creates problems with local mail delivery too.
the output of hostname is:
the output of hostname -f (the place no doubt to begin!)
hostname: Unknown host
the /etc/sysconfig/network says:
The /etc/hosts file says:
127.0.0.1 localhost.localdomain localhost
wvis2.net is a FQDN that points to the server and is a domain installed with ispconfig
Finally, when I set the hostname to wvis2.net with
[root@66-226-75-8 etc]#hostname wvis2.net
and restart postfix, the warnings stop but postfix from then on bounces a lot of mail with this in the log:
Sep 14 19:07:48 66-226-75-8 postfix/smtp: A7A169543EA: to=<firstname.lastname@example.org>, orig_to=<admispconfig@localhost>, relay=none, delay=0, status=bounced ([localhost.wvis2.net]: Name or service not known).
Thanks for helping me out on this.