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
  #1 (permalink)  
Old 09-03-2011, 07:42 AM
Active Member
 
Posts: 27
Default Mail sent to wrong ip address internally

I can send mail and partially receive it (my server receives the mail, but instead of sending it to my machine it want's to resend it to an external ip).
Code:
Sep  3 16:35:52 ns postfix/lmtp[25560]: connect to ns.testsite.eu[123.456.7.89]:7025: Connection refused
I KNOW it's a DNS problem - ns.testsite.eu points to the wrong ip address and that server naturally refuses the connection. But I've already corrected my dns settings and it's still using the old external ip address.

Will Zimbra pick up the dns change automatically or do I need to reinstall?
Reply With Quote
  #2 (permalink)  
Old 09-03-2011, 10:08 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Go to the Split DNS and run all the commands in the 'Verify...' section and post the output here.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 09-04-2011, 12:12 AM
Active Member
 
Posts: 27
Default

I've fixed the issue by using Dnsmasq instead of Bind. (gave up on Bind after a few hours of trying, couldn't properly configure it)

Will dnsmasq work if I add another domain to Zimbra? Or will the new domain get the same error as I used to get now?
Reply With Quote
  #4 (permalink)  
Old 09-04-2011, 12:41 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by SkyHiRider View Post
I've fixed the issue by using Dnsmasq instead of Bind. (gave up on Bind after a few hours of trying, couldn't properly configure it)

Will dnsmasq work if I add another domain to Zimbra? Or will the new domain get the same error as I used to get now?
You need to post the output I asked for earlier.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 09-05-2011, 06:02 AM
Active Member
 
Posts: 27
Default

Here's the output:

Code:
root@ns:/home/andrej# dig andreansky.eu

; <<>> DiG 9.7.0-P1 <<>> andreansky.eu
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18873
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;andreansky.eu.			IN	A

;; AUTHORITY SECTION:
andreansky.eu.		3600	IN	SOA	ns.andreansky.eu. marek.andreansky.eu. 2010091601 7200 1800 604800 3600

;; Query time: 12 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Sep  5 14:56:54 2011
;; MSG SIZE  rcvd: 76

root@ns:/home/andrej# dig andreansky.eu any

; <<>> DiG 9.7.0-P1 <<>> andreansky.eu any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11789
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 3

;; QUESTION SECTION:
;andreansky.eu.			IN	ANY

;; ANSWER SECTION:
andreansky.eu.		36000	IN	MX	10 ns.andreansky.eu.
andreansky.eu.		36000	IN	SOA	ns.andreansky.eu. marek.andreansky.eu. 2010091601 7200 1800 604800 3600
andreansky.eu.		36000	IN	NS	194.1.130.117.andreansky.eu.
andreansky.eu.		36000	IN	NS	lemon.napri.sk.
andreansky.eu.		36000	IN	NS	ns.erixline.sk.

;; ADDITIONAL SECTION:
ns.andreansky.eu.	36000	IN	A	194.1.130.117
ns.erixline.sk.		36000	IN	A	194.1.130.38
lemon.napri.sk.		26090	IN	A	194.1.128.5

;; Query time: 17 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Sep  5 14:57:23 2011
;; MSG SIZE  rcvd: 222

root@ns:/home/andrej# host $(hostname)
ns.andreansky.eu has address 192.168.77.87
ns.andreansky.eu mail is handled by 1 mail.andreansky.eu.
As I said, it's working using Dnsmasq but Bind is a no go. But so far it seems I can run multiple mail domains on Zimbra while only using Dnsmasq with one domain configured, so all is well (so far).
Reply With Quote
  #6 (permalink)  
Old 09-05-2011, 06:17 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

You're missing the output from some of the commands that I asked for. Is that output from BIND or DNSMASQ? Whatever it's from, the output is totally wrong.
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 09-05-2011, 08:19 AM
Active Member
 
Posts: 27
Default

Sorry, missed the last two commands. Here they are:

Code:
root@ns:/home/andrej# cat /etc/resolv.conf
search andreansky.eu
nameserver 127.0.0.1 
nameserver 192.168.77.1
nameserver 2001:7b8:3:4f:202:b3ff:fe46:bec
nameserver 2001:b18:0:1000:2e0:81ff:fe61:ae 
root@ns:/home/andrej# cat /etc/hosts
127.0.0.1	localhost #ns.andreansky.eu
194.1.130.117	#	ns mail.andreansky.eu mail
192.168.77.87 ns.andreansky.eu www.branyadvere.sk www.dvereabrany.sk www.andreansky.eu
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
This output is with Dnsmasq running, I've disabled Bind.
Reply With Quote
  #8 (permalink)  
Old 09-08-2011, 06:09 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by SkyHiRider View Post
Sorry, missed the last two commands. Here they are:

Code:
root@ns:/home/andrej# cat /etc/resolv.conf
search andreansky.eu
nameserver 127.0.0.1 
nameserver 192.168.77.1
nameserver 2001:7b8:3:4f:202:b3ff:fe46:bec
nameserver 2001:b18:0:1000:2e0:81ff:fe61:ae
Code:
root@ns:/home/andrej# cat /etc/hosts
127.0.0.1	localhost #ns.andreansky.eu
194.1.130.117	#	ns mail.andreansky.eu mail
192.168.77.87 ns.andreansky.eu www.branyadvere.sk www.dvereabrany.sk www.andreansky.eu
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
This output is with Dnsmasq running, I've disabled Bind.
Your hosts file is incorrect and there are too many entries in the resolv.conf - you need to follow the instruction in the Split DNS article for the contents of this file. You should also give your mail server a unique FQDN (and a separate A record) and not use the one for your nameserver records.
__________________
Regards


Bill
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.