Can't install Zimbra

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
flitec
Posts: 5
Joined: Tue Jul 20, 2021 8:34 pm

Can't install Zimbra

Post by flitec »

Hello,
first of all we are not experts so try to understand us....We would like to install Zimbra for testing pourpose
We try to install Zimbra on a Ubuntu 18.04 virtual machine hosted on xcp-ng
Our ISP defined a record A that is fl1888.it that point to 37.159.250.xy and a MX record that points to mail.fl1888.it
we have an hardware firewall that has ip 37.159.250.xy
we defined a nat rule that tranfer traffic from 37.159.259.xy to 192.168.1.12 that is the internal ip address of the VM ubuntu where we want to install zimbra
we installed dnsmaq and the dnsmaq.conf file is:
server=8.8.8.8
server=208.67.222.222
domain=fl1888.it
mx-host=fl1888.it,mail.fl1888.it,5
listen-address=127.0.0.1

the hosts file is:
127.0.0.1 localhost.localdomain localhost
192.168.1.12 mail.f11888.it mail

we try to install zimbra and we get always the same error:

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

<ip> <FQHN> <HN>

Where <IP> is the ip address of the host,
<FQHN> is the FULLY QUALIFIED host name, and
<HN> is the (optional) hostname-only portion

thanks for your help!
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Can't install Zimbra

Post by phoenix »

If you're behind a NAT router you will need a Split DNS, go to the wiki and read the article on that topic.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
flitec
Posts: 5
Joined: Tue Jul 20, 2021 8:34 pm

Re: Can't install Zimbra

Post by flitec »

We have done that....
It seems to us to have made setup as described here https://wiki.zimbra.com/index.php?title=Split_DNS
Have we done something wrong?
Thanks
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Can't install Zimbra

Post by phoenix »

You haven't provided any evidence that your split dns is providing the correct answers, you can use the commands in the 'verify' section of the article.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
flitec
Posts: 5
Joined: Tue Jul 20, 2021 8:34 pm

Re: Can't install Zimbra

Post by flitec »

thanks phoneix for your help......
verify section follows...as we told you before wwe are not "experts".......

root@mail:~/zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220# dig fl1888.it any

; <<>> DiG 9.11.3-1ubuntu1.15-Ubuntu <<>> fl1888.it any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5111
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;fl1888.it. IN ANY

;; ANSWER SECTION:
fl1888.it. 0 IN MX 5 mail.fl1888.it.

;; ADDITIONAL SECTION:
mail.fl1888.it. 604 IN A 37.159.250.214

;; Query time: 19 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jul 21 08:45:12 UTC 2021
;; MSG SIZE rcvd: 84

root@mail:~/zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220# dig fl1888.it mx

; <<>> DiG 9.11.3-1ubuntu1.15-Ubuntu <<>> fl1888.it mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54069
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;fl1888.it. IN MX

;; ANSWER SECTION:
fl1888.it. 0 IN MX 5 mail.fl1888.it.

;; ADDITIONAL SECTION:
mail.fl1888.it. 591 IN A 37.159.250.214

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jul 21 08:45:25 UTC 2021
;; MSG SIZE rcvd: 84

root@mail:~/zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220# host $(hostname)
mail.fl1888.it has address 37.159.250.214
root@mail:~/zcs-8.8.15_GA_3869.UBUNTU18_64.20190918004220#
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Can't install Zimbra

Post by phoenix »

Are you sure that your resolv.conf points to using the DNSMASQ server? I'm afraid I know nothing about DNSMASQ but AFAICT the config seems OK.

Here's a more complete description of a good dnsmasq config (thanks to L. Mark Stone): https://www.missioncriticalemail.com/20 ... ion-guide/
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 897
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 9.0.0_P39 NETWORK Edition

Re: Can't install Zimbra

Post by JDunphy »

flitec wrote:Hello,
first of all we are not experts so try to understand us....We would like to install Zimbra for testing pourpose
We try to install Zimbra on a Ubuntu 18.04 virtual machine hosted on xcp-ng

the hosts file is:
127.0.0.1 localhost.localdomain localhost
192.168.1.12 mail.f11888.it mail

we try to install zimbra and we get always the same error:

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

<ip> <FQHN> <HN>

Where <IP> is the ip address of the host,
<FQHN> is the FULLY QUALIFIED host name, and
<HN> is the (optional) hostname-only portion

thanks for your help!
Another guess given install.sh is not happy with /etc/hosts given it checks for a few things prior to new install.

Is your hostname the same as "mail.f11888.it" that you have listed in /etc/hosts? If not add 2nd entry for that hostname or switch your hostname temporarily before running the install.sh. Probably better to keep the hostname the same as zmhostname for the future and keep thing simpler given this is your first install.

Code: Select all

% su - 
# hostname
mail1.example.com
# hostname mail.example.com
# hostname
mail.example.com
# cd ~zimbrai-install
# ./install.sh
Jim
flitec
Posts: 5
Joined: Tue Jul 20, 2021 8:34 pm

Re: Can't install Zimbra

Post by flitec »

Thanks JDunphy for you answer,
I didn't understand.......
this is the of hosts file:
c1.PNG
c1.PNG (3.56 KiB) Viewed 5585 times
and this is the output of the hostname command:
c2.PNG
c2.PNG (4.42 KiB) Viewed 5585 times
you mean that I have to change the hostname to mail.example.com and then run install.sh ?

Thanks
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 897
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 9.0.0_P39 NETWORK Edition

Re: Can't install Zimbra

Post by JDunphy »

Change the entry in your /etc/hosts file... leave off the .it on the last entry. They are looking for just the hostname as the 2nd argument.

Make it look like this:

Code: Select all

192.168.1.12 mail.f11888.it f11888
Leave the 127.0.0.1 as it is.

Jim
flitec
Posts: 5
Joined: Tue Jul 20, 2021 8:34 pm

Re: Can't install Zimbra

Post by flitec »

Great JDunphy it worked!!
now we are installing Zimbra!
Thank you very much for your support!!
Post Reply