Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 11-28-2008, 07:45 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
Default

Do you have a firewall and/or SElinux (AppArmor) active on the zimbra server? On the Zimbra server can you do the following:

Code:
telnet localhost 53
telnet localhost 25
Do you get a response from either of those?


Code:
su - zimbra 
zmcontrol status
Is everything running OK?

Please post the output of the following commands (run on the Zimbra server):

Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain.com mx
dig yourdomain.com any
host `hostname`
__________________
Regards


Bill
Reply With Quote
  #12 (permalink)  
Old 11-28-2008, 08:22 AM
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by phoenix View Post
Do you have a firewall and/or SElinux (AppArmor) active on the zimbra server? On the Zimbra server can you do the following:

Code:
telnet localhost 53
telnet localhost 25
Do you get a response from either of those?
Code:
root@zimbra:/opt/zimbra/log# telnet localhost 53
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
root@zimbra:/opt/zimbra/log# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 zimbra.peperzaken.nl ESMTP Postfix
Quote:

Code:
su - zimbra 
zmcontrol status
Is everything running OK?
Yes, everything is running OK.

Quote:

Please post the output of the following commands (run on the Zimbra server):

Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain.com mx
dig yourdomain.com any
host `hostname`
/etc/hosts:

Code:
root@zimbra:/# cat /etc/hosts
127.0.0.1	localhost
10.0.0.175	zimbra.peperzaken.nl	zimbra
# 10.0.0.175	mail.peperzaken.nl	mail

# 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
/etc/resolv.conf:

Code:
root@zimbra:/# cat /etc/resolv.conf
nameserver 10.0.0.175
search zimbra.peperzaken.nl
// nameserver 193.74.208.65
// nameserver 213.51.129.37
// nameserver 213.51.144.37
dig zimbra.peperzaken.nl:

Code:
root@zimbra:/# dig zimbra.peperzaken.nl mx

; <<>> DiG 9.3.2 <<>> zimbra.peperzaken.nl mx
;; global options:  printcmd
;; connection timed out; no servers could be reached
dig zimbra.peperzaken.nl any:

Code:
root@zimbra:/# dig zimbra.peperzaken.nl any

; <<>> DiG 9.3.2 <<>> zimbra.peperzaken.nl any
;; global options:  printcmd
;; connection timed out; no servers could be reached
host `hostname`:
Code:
root@zimbra:/# host `hostname`
;; connection timed out; no servers could be reached
Reply With Quote
  #13 (permalink)  
Old 11-28-2008, 09:00 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
Default

Sorry, my mistake. Your hosts file should also have the localhost formatted like this:

Code:
127.0.0.1 localhost.localdomain localhost
The dig command should be for the domain and not the FQDN of the server as per the following:

Code:
dig peperzaken.nl mx
__________________
Regards


Bill
Reply With Quote
  #14 (permalink)  
Old 12-03-2008, 09:16 AM
Junior Member
 
Posts: 8
Default

First of all, sorry for the late reply.

Quote:
Originally Posted by phoenix View Post
Sorry, my mistake. Your hosts file should also have the localhost formatted like this:

Code:
127.0.0.1 localhost.localdomain localhost
Fixed.

Quote:
The dig command should be for the domain and not the FQDN of the server as per the following:

Code:
dig peperzaken.nl mx
dig peperzaken.nl mx:

Code:
root@zimbra:/etc/bind# dig peperzaken.nl mx

; <<>> DiG 9.3.2 <<>> peperzaken.nl mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 22904
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;peperzaken.nl.                 IN      MX

;; Query time: 1 msec
;; SERVER: 10.0.0.175#53(10.0.0.175)
;; WHEN: Wed Dec  3 16:59:03 2008
;; MSG SIZE  rcvd: 31
This is the output of the dig command with 10.0.0.1 (the IP of the router) as forwarder in the bind setup and 10.0.0.175 as the only nameserver defined in /etc/resolv.conf. With this configuration the output of the host command is the following:

Code:
root@zimbra:/etc/bind# host `hostname`
Host zimbra.peperzaken.nl not found: 2(SERVFAIL)
When I define the IP 10.0.0.1 as nameserver in /etc/resolv.conf the dig command gives the status "NOERROR" and the host command gives the external IP.

What can I do now to fix all this?
Reply With Quote
  #15 (permalink)  
Old 12-03-2008, 11:11 AM
Junior Member
 
Posts: 8
Default

OK, I think I fixed the problem with the DNS:

Code:
root@zimbra:/etc/bind# host `hostname`
zimbra.peperzaken.nl has address 10.0.0.175
dig peperzaken.nl mx:

Code:
root@zimbra:/etc/bind# dig peperzaken.nl mx

; <<>> DiG 9.3.2 <<>> peperzaken.nl mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26157
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;peperzaken.nl.                 IN      MX

;; ANSWER SECTION:
peperzaken.nl.          604800  IN      MX      10 zimbra.peperzaken.nl.

;; AUTHORITY SECTION:
peperzaken.nl.          604800  IN      NS      10.0.0.175.peperzaken.nl.

;; ADDITIONAL SECTION:
zimbra.peperzaken.nl.   604800  IN      A       10.0.0.175

;; Query time: 1 msec
;; SERVER: 10.0.0.175#53(10.0.0.175)
;; WHEN: Wed Dec  3 19:05:46 2008
;; MSG SIZE  rcvd: 95
dig peperzaken.nl any:

Code:
root@zimbra:/etc/bind# dig peperzaken.nl any

; <<>> DiG 9.3.2 <<>> peperzaken.nl any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48237
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;peperzaken.nl.                 IN      ANY

;; ANSWER SECTION:
peperzaken.nl.          604800  IN      SOA     zimbra.peperzaken.nl. admin.peperzaken.nl. 70725 604800 86400 2419200 604800
peperzaken.nl.          604800  IN      NS      10.0.0.175.peperzaken.nl.
peperzaken.nl.          604800  IN      A       10.0.0.175
peperzaken.nl.          604800  IN      MX      10 zimbra.peperzaken.nl.

;; ADDITIONAL SECTION:
zimbra.peperzaken.nl.   604800  IN      A       10.0.0.175

;; Query time: 1 msec
;; SERVER: 10.0.0.175#53(10.0.0.175)
;; WHEN: Wed Dec  3 19:07:31 2008
;; MSG SIZE  rcvd: 153
Does this looks correct? The solution was to fix the incorrect zone file defined in the bind configuration. Should this be the solution for the original problem?

Last edited by Peperzaken; 12-03-2008 at 11:33 AM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.