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

Ask questions about your setup or get help installing ZCS server (ZD section below).
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

Postby forstera » Fri Aug 19, 2016 8:17 am

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: 25151
Joined: Fri Sep 12, 2014 9:56 pm

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

Postby phoenix » Fri Aug 19, 2016 8:20 am

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

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
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

Postby forstera » Fri Aug 19, 2016 8:30 am

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

Postby forstera » Mon Aug 22, 2016 7:41 am

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
Outstanding Member
Outstanding Member
Posts: 663
Joined: Mon Apr 18, 2016 8:18 pm
Location: Earth
ZCS/ZD Version: ZCS FLOSS - 8.7.11 Mutli servers

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

Postby DualBoot » Mon Aug 22, 2016 8:14 am

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

Postby forstera » Mon Aug 22, 2016 8:34 am

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

Postby forstera » Mon Aug 22, 2016 8:36 am

:)
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

Postby rana » Wed Sep 20, 2017 1:33 pm

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 !

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: No registered users and 22 guests