Hi all,
I'm having a problem with my DNS setup as you probably expected.
I am hosting two domains on Zimbra Opensource 6.0.8 running under Debian 5 (64bit).
When I issue the MX check from the admin web interface, I get two results.
On the first domain it succeeds but on the second it fails with the error in the subject.
Let's call the two domains '
foo.com' and '
bar.com'.
Here is what I currently have.
1) Zimbra is on my LAN
2) The DNS server is not installed on Zimbra but is on my lan.
* /etc/hosts
Code:
127.0.0.1 localhost.localdomain localhost
192.168.122.11 mail.foo.com mail
* /etc/resolv.conf
Code:
nameserver 192.168.122.1
nameserver 8.8.4.4
nameserver 8.8.8.8
* host `hostname`
Code:
mail.foo.com A 192.168.122.11
* The MX Check from the admin web interface
foo.com
Code:
MX records check passed.
bar.com
Code:
Domain is configured to use SMTP host: mail.foo.com. None of the MX records match this name. Found the following MX records:
0 mail.bar.com.
* Internal DNS query
foo.com
Code:
# dig MX foo.com
;; QUESTION SECTION:
;foo.com. IN MX
;; ANSWER SECTION:
foo.com. 604800 IN MX 0 mail.foo.com.
;; AUTHORITY SECTION:
foo.com. 604800 IN NS ns.foo.com.
;; ADDITIONAL SECTION:
mail.foo.com. 604800 IN A 192.168.122.11
bar.com
Code:
# dig MX bar.com
;; QUESTION SECTION:
;bar.com. IN MX
;; ANSWER SECTION:
bar.com. 604800 IN MX 10 mail.bar.com.
;; AUTHORITY SECTION:
bar.com. 604800 IN NS ns.bar.com.
;; ADDITIONAL SECTION:
mail.bar.com. 604800 IN A 192.168.122.11
ns.bar.com. 604800 IN A 192.168.122.1
* External DNS
foo.com
Code:
$ dig MX foo.com
;; QUESTION SECTION:
;foo.com. IN MX
;; ANSWER SECTION:
foo.com. 1800 IN MX 0 mail.foo.com.
;; AUTHORITY SECTION:
foo.com. 2446 IN NS ns25.domaincontrol.com.
foo.com. 2446 IN NS ns26.domaincontrol.com.
;; ADDITIONAL SECTION:
mail.foo.com. 1800 IN A 111.222.333.444
bar.com
Code:
$ dig MX bar.com
;; QUESTION SECTION:
;bar.com. IN MX
;; ANSWER SECTION:
bar.com. 14834 IN MX 10 mail.bar.com.
;; AUTHORITY SECTION:
bar.com. 14834 IN NS ns1.hebergeons.be.
bar.com. 14834 IN NS ns2.hebergeons.be.
;; ADDITIONAL SECTION:
mail.bar.com. 14834 IN A 111.222.333.444
ns1.hebergeons.be. 65825 IN A 87.98.252.184
ns2.hebergeons.be. 65825 IN A 87.98.149.47
Can you spot what I might have done wrong? Any help, advice or pointers to documentation are welcome.
Thanks!