HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   HOWTO-Related Questions (
-   -   Replacing old email server with Zimbra (

wildgoosed 26th September 2008 22:44

Replacing old email server with Zimbra
We currently have qmail running on an old FC5 box that I'm in the process of replacing with Zimbra on Ubuntu 8.04.

I'm following this guide...

We have 1 Public IP address that we run all of our Internet services off of (behind an IPCOP box)

I've placed this new zimbra server ( on the nextwork beside our old qmail server ( and plan to just setup zimbra and change the port forwarding when done so that this whole process is fairly quick and transparent...

My problem is that when I'm about done the installation, I get this following error...

Fri Sep 26 08:19:49 2008 zimbra-ldap is enabled
Fri Sep 26 08:19:49 2008 Initializing ldap...
Fri Sep 26 08:19:49 2008 *** Running as zimbra user: /opt/zimbra/libexec/zmldapinit
IO::Socket::INET: connect: timeout at /opt/zimbra/libexec/zmldapinit line 160.

Can anyone help out?

wildgoosed 26th September 2008 23:30

I think this is a DNS issue. When I run /opt/zimbra/libexec/ I get the following error...

Operations logged to /tmp/zmsetup.09262008-142825.log
Setting defaults...No results returned for A lookup of localhost
Checked nameservers:

DNS ERROR resolving localhost
It is suggested that the hostname be resolveable via DNS
Change hostname [Yes]

What should I have in /etc/hosts?

Like I mentioned above, This server is inside a DMZ behind an IPCOP box (orange network) and is using my ISP's dns servers.

falko 27th September 2008 14:46

What's in /etc/hosts?
What's the output of

hostname -f

wildgoosed 27th September 2008 22:10


Code:      localhost localdomain localhost    localhost.localdomain localhost
# The following lines are desirable for IPv6 capable hosts
::1    ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

hostname -f



falko 28th September 2008 14:53

Please use a real hostname instead of localhost.localdomain in the line in /etc/hosts and also in /etc/sysconfig/network (I think that's the correct file). Restart the system afterwards.

wildgoosed 29th September 2008 17:51

This box is behind a IPCOP box in a DMZ and is using my ISP's nameserver.

On the trusted network I'm using IPCOP as my DNS server.

For this mail server in the DMZ what should its hostname be?

wildgoosed 29th September 2008 23:50

Thanks so far for your help.

I'll explain our dns setup and maybe you can provide some advice on what I should do.

Our DNS server (in the DMZ as well) handles 1 zone (domain.example)

records in our zone file are as follows...

www IN A
ns1 IN A
mail IN A
@ IN A

;mail entry
domain.example. MX 1 mail

As you can see, all the hosts resolve to the same IP address. Because everything is behind that address in the dmz.

These DMZ servers (we have a few) all use our ISP's nameservers to resolve queries.

I'm confused as to what proper hostname I should be assigning to these computers, specifically this new mail server. It seems like whatever hostname I assign, none of them will resolve (in the zimbra setup)

falko 30th September 2008 17:49

Ok, I think you must use the internal DNS server on your mail server instead of the ones from your ISP because the name servers of your ISP cannot resolve your internal hostnames.

wildgoosed 2nd October 2008 17:58

Hey falko, is it possible to use IPCOP as my dns server for this dmz server?

falko 3rd October 2008 13:22

Yes, if there's a DNS server on your IPCop system. Make sure it resolves your internal hostnames.

All times are GMT +2. The time now is 10:57.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.