[Solved] New server install : fix your /etc/hosts

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
forstera
Posts: 27
Joined: Fri Sep 12, 2014 11:26 pm
ZCS/ZD Version: 8.6.0 GA

[Solved] New server install : fix your /etc/hosts

Post by forstera »

Hello all,
I was trying to upgrade my server 8.6.0 to the new version but had to install Proxy and memcached. So I decided to build a new server with these options. I installed a new ubuntu 14.04 server. Now, when I'm trying to start the install.sh, I get the following error : ERROR: Installation can not proceeed. Please fix your /etc/hosts file

So I edited my host file to have these informations but the error remains .... here's my host file :

mwadmin@SRV-DMAIL:/$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 SRV-DMAIL
172.16.0.105 SRV-DMAIL.MWP.LOCAL SRV-DMAIL

I added my server to my dns and I can resolve it .. but still no success..
So, I make something wrong but dont know what :) If someone can help me, he's welcomed :)
Per advance, thanks to all for your help :)
Last edited by forstera on Mon Aug 22, 2016 8:37 am, edited 1 time in total.
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: New server install : fix your /etc/hosts

Post by phoenix »

Is this behind a NAT router or a firewall? Go to the Split DNS wiki and run the commands in the "Verifying...." section of that article to confirm your DNS is correct. FWIW, I'd also suggest you use the /etc/hosts file example in that article for your installation.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
forstera
Posts: 27
Joined: Fri Sep 12, 2014 11:26 pm
ZCS/ZD Version: 8.6.0 GA

Re: New server install : fix your /etc/hosts

Post by forstera »

Hi Bill,
Thanks very much for your answer ; I'll check that. My server will be in my DMZ, so behing firewall which will first receive them and transfert to my Zimbra :)
Thanks again for your help
Arnaud
forstera
Posts: 27
Joined: Fri Sep 12, 2014 11:26 pm
ZCS/ZD Version: 8.6.0 GA

Re: New server install : fix your /etc/hosts

Post by forstera »

Grrr , still can't make it works :)

I've only one public IP adresse which is my Firewall. It's acting as a relay for incoming and outgoing emails, too. So it is possible to tell Zimbra not checking DNS and reverse DNS when installing ?

Thanks to all for your help
Arnaud
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: New server install : fix your /etc/hosts

Post by DualBoot »

your problem is only related to your /etc/hosts file , give a try by deleting the line starting with 127.0.1.1
The Guy - DualBoot

PostMaster - WikiMaster - SysAdmin
"Free Your Mind. Think Open Source"
april.org
Zetalliance Member - zetalliance.org
forstera
Posts: 27
Joined: Fri Sep 12, 2014 11:26 pm
ZCS/ZD Version: 8.6.0 GA

Re: New server install : fix your /etc/hosts

Post by forstera »

Ok, I'll try that and keep you informed :)

Thanks very much for your help :)
forstera
Posts: 27
Joined: Fri Sep 12, 2014 11:26 pm
ZCS/ZD Version: 8.6.0 GA

Re: New server install : fix your /etc/hosts

Post by forstera »

:)
Seems to work now :)
Great !
Thanks again for your great Help :)
rana
Posts: 1
Joined: Tue Sep 19, 2017 4:41 pm

Re: [Solved] New server install : fix your /etc/hosts

Post by rana »

just type this: sudo hostname [hostname]

for example my fqhn is mail.frg-m.com then i will type this: sudo hostname mail

restart dnsmasq service and good to go !
Post Reply