#1  
Old 15th September 2006, 05:09
rbartz rbartz is offline
Member
 
Join Date: Apr 2006
Posts: 80
Thanks: 9
Thanked 6 Times in 5 Posts
Default Changing servers hostname

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:
==
66-226-75-8
==

the output of hostname -f (the place no doubt to begin!)
==
hostname: Unknown host
==

the /etc/sysconfig/network says:
==
NETWORKING=yes
HOSTNAME=66-226-75-8
GATEWAY=66.226.75.1
==

The /etc/hosts file says:
==
127.0.0.1 localhost.localdomain localhost
66.226.75.8 wvis2.net
66.226.75.8 66-226-75-8.dedicated.abac.net
==

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[3864]: A7A169543EA: to=<admispconfig@localhost.wvis2.net>, 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.

RDB

==
Reply With Quote
Sponsored Links
  #2  
Old 16th September 2006, 06:16
rbartz rbartz is offline
Member
 
Join Date: Apr 2006
Posts: 80
Thanks: 9
Thanked 6 Times in 5 Posts
Default Success...

I will answer myself in case anyone else has the same problem with a leased server:

1. in /etc/sysconfig/network set the hostname:

NETWORKING=yes
HOSTNAME=server.yourdomain.com
GATEWAY=66.226.75.1

2. In /etc/hosts set the ip with your new hostname

127.0.0.1 localhost.localdomain localhost
66.226.75.8 server.yourdomain.com
66.226.75.8 66-226-75-8.dedicated.abac.net

3. reboot

You do not need to change anything else in ispconfig, postfix, etc, all should come together on the reboot. Now the mail uses server.wvisw.net for hostname and spamassassin is happy and no loops and everything seems right.
Reply With Quote
  #3  
Old 16th September 2006, 12:04
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

On some linux distributions you will have to chnage /etc/hostname too.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 16th September 2006, 13:54
rbartz rbartz is offline
Member
 
Join Date: Apr 2006
Posts: 80
Thanks: 9
Thanked 6 Times in 5 Posts
Default

Yes, I see that. I had done that earlier in other attempts to bring this to some resolution, although I had not set it to the full server name I used.

Now, if I could just get suPHP to work I would have the "perfect server"... :-)

Thanks for the added advice Till.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hostname Davide Installation/Configuration 2 25th July 2006 00:43
changing hostname mwebb Installation/Configuration 2 6th January 2006 18:03
What should hostname be? Lil'Brudder General 2 19th October 2005 10:08
Server Hostname and IPSConfig Lil'Brudder Installation/Configuration 2 14th October 2005 12:46
Changing Hostname MyLinux General 1 5th September 2005 07:58


All times are GMT +2. The time now is 20:23.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.