Posted: Tue Apr 23, 2013 9:24 am Post subject: A few tips about /etc/hosts and hostname setup.
I had a few users in the past, having some weird issues and I got permission to examine their servers.
It seems some of you don't run netconfig or netconfig-lcd (recommended) and try to manually
edit the /etc/hosts file, which is no problem, unless you do it right.
I don't know where those users got he information, but they all had a line in /etc/hosts with
127.0.0.1 localhost localhost.domain example example.org
The above config makes localhost non resolvable, and services like sqlgrey fail to start, resulting to a dead mail server.
The proper way is by adding your IP local or external if there is no NAT.
Code:
127.0.0.1 localhost localhost.domain
{your IP} example example.org
or even
Code:
127.0.0.1 localhost localhost.domain
127.0.0.1 example example.org
gerasimos_h _________________ Superb! Mini Server Project Manager http://sms.it-ccs.com
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum