New Install / Migration

Ask questions about your setup or get help installing ZCS server (ZD section below).
JCarbohn
Posts: 5
Joined: Tue Mar 05, 2019 11:10 pm

New Install / Migration

Post by JCarbohn »

Hi Everyone,

I'm new to Zimbra and new to Linux. Zimbra recently caught my eye due to the vast services it offers. I've been running hmailserver for almost 5 years for my side business and another small business that has 1 user is also using it. While running rainloop as webmail access. I really haven't had many issues with hmailserver since I started using it but I'm sure as most of you know it is very barebones. I was looking for a solution which offers not only mail but calendar access and file management. I'm currently running in an ESXi 6.5 environment. I installed Ubuntu 16.04 LTS and attempted to install the open source version of Zimbra. I ran across an error telling me the following:
ERROR: Installation can not proceed. Please fix your /etc/hosts file to contain:

<ip> <FQHN> <HN>
When I go into that file I have set all it has asked for and I am still getting the same error when I try to install again.

Any advice?

Thanks so much!
User avatar
axslingr
Outstanding Member
Outstanding Member
Posts: 256
Joined: Sat Sep 13, 2014 2:20 am
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18

Re: New Install / Migration

Post by axslingr »

Post your /etc/hosts file and let's have a look.

Lance
JCarbohn
Posts: 5
Joined: Tue Mar 05, 2019 11:10 pm

Re: New Install / Migration

Post by JCarbohn »

Hi Lance,

Thanks for your reply and sorry for the delay. Other projects took attention from this project but I'm ready to get back to it. Here is the hosts file right now.

Code: Select all

127.0.0.1		(servername)
XX.XX.9.97	webmail.mydomainname.com mail

# The following lines are desirable for IPc6 capable hosts
::1		localhost ip6-localhost ip6-loopback
ff02::1	ip6-allnodes
ff02::2	ip6-allrouters
The second IP address is my public IP address. My ISP doesn't have a static IP address at this time. I'm assuming this will make it a problem in the future if the IP changes and I would need to come back into this file and change it?

Thanks!
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: New Install / Migration

Post by phoenix »

The following line is incorrect:

Code: Select all

XX.XX.9.97   webmail.mydomainname.com mail
It should read as follows:

Code: Select all

XX.XX.9.97   webmail.mydomainname.com webmail
That's mentioned in the Split DNS wiki article in detail (and all over the forums).
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: New Install / Migration

Post by phoenix »

Sorry, I forgot to add that the following line is also incorrect:

Code: Select all

127.0.0.1      (servername)
It should be as follows:

Code: Select all

127.0.0.1 localhost.localdomain localhost
I'm a lso assuming the "webmail" is the hostname of your ZCS server, if it's not then my previous post is also incorrect. The hosts file should have the FQDN of your ZCS server in the format I showed earlier.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
JCarbohn
Posts: 5
Joined: Tue Mar 05, 2019 11:10 pm

Re: New Install / Migration

Post by JCarbohn »

Sorry, I am new to Zimbra so I am trying to find my way around. I'm also fairly new to Ubuntu.

I changed what you said. In your last post, you mentioned that you are assuming that the hostname is "webmail". The server hostname isn't webmail it is another name. Are you saying that it should look like (hostname).mydomainname.com webmail?

After making the changes to:

Code: Select all

127.0.0.1 localhost.localdomain localhost
XX.XX.9.97 webmail.domainname.com webmail
I"m getting thrown this error when trying to run the installer after the changes:

Code: Select all

ERROR: Installation can not proceed. Please fix your /etc/hosts file to contain:

127.0.0.1 localhost.localdomain localhost

Zimbra install grants mysql permissions only to localhost and localhost.localdomain users. But Fedora/RH installs leave lines such as these in /etc/hosts:

127.0.0.1		myhost.mydomain.com myhost localhost.localdomain localhost

This causes MySQLl to reject users coming from 127.0.0.1 as users from myhost.mydomain.com.
I appreciate the help. :)
User avatar
axslingr
Outstanding Member
Outstanding Member
Posts: 256
Joined: Sat Sep 13, 2014 2:20 am
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18

Re: New Install / Migration

Post by axslingr »

JCarbohn wrote:Are you saying that it should look like (hostname).mydomainname.com webmail?
Not exactly. It should look like this.

Code: Select all

127.0.0.1 localhost.localdomain localhost
XX.XX.9.97 hostname.domainname.com hostname
Lance
JCarbohn
Posts: 5
Joined: Tue Mar 05, 2019 11:10 pm

Re: New Install / Migration

Post by JCarbohn »

Thanks for your reponse, Lance.

I'm back to my original error after making your recommended adjustment.
User avatar
axslingr
Outstanding Member
Outstanding Member
Posts: 256
Joined: Sat Sep 13, 2014 2:20 am
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18

Re: New Install / Migration

Post by axslingr »

JCarbohn wrote:Thanks for your reponse, Lance.

I'm back to my original error after making your recommended adjustment.
Is the ip address correct? It needs to match the ip address that's configured on the server.

Lance
JCarbohn
Posts: 5
Joined: Tue Mar 05, 2019 11:10 pm

Re: New Install / Migration

Post by JCarbohn »

Which address? The first line for the local host or the second line for the public IP?
Post Reply