DNS error resolving MX etc.

Ask questions about your setup or get help installing ZCS server (ZD section below).
joakim@hirschnet.se
Posts: 6
Joined: Tue Jan 30, 2018 12:36 pm
ZCS/ZD Version: Release 8.8.6.GA.1906.UBUNTU16.64 U

DNS error resolving MX etc.

Post by joakim@hirschnet.se »

Hi

First post here.

I'm trying to install ZImbra Open 8.8.6 on Ubuntu 16.04.
I've read about split DNS and tried using both dnsmasq and bind9 to no avail.
To me things appear to be correct when I compare to the spli DNS instructions.
I'd be most grateful if someone could help me along here.

/Joakim

Code: Select all

joakim@mail:~$ hostname
mail
joakim@mail:~$ hostname -f
mail.hirschnet.se
joakim@mail:~$ cat /etc/dnsmasq.conf | grep -v "#" | grep -v '^$'
server=/localnet/192.168.101.1
local=/localnet/
address=/mail.hirschnet.se/192.168.101.251
listen-address=127.0.0.1
domain=hirschnet.se
mx-host=hirschnet.se,mail.hirschnet.se,0
joakim@mail:~$ dig hirschnet.se mx

; <<>> DiG 9.10.3-P4-Ubuntu <<>> hirschnet.se mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27052
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 3

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;hirschnet.se.			IN	MX

;; ANSWER SECTION:
hirschnet.se.		0	IN	MX	0 mail.hirschnet.se.

;; ADDITIONAL SECTION:
mail.hirschnet.se.	0	IN	A	192.168.101.251
mail.hirschnet.se.	0	IN	A	127.0.1.1

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jan 30 13:57:44 CET 2018
;; MSG SIZE  rcvd: 106

joakim@mail:~$ dig hirschnet.se any

; <<>> DiG 9.10.3-P4-Ubuntu <<>> hirschnet.se any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58448
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 3

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;hirschnet.se.			IN	ANY

;; ANSWER SECTION:
hirschnet.se.		0	IN	MX	0 mail.hirschnet.se.

;; ADDITIONAL SECTION:
mail.hirschnet.se.	0	IN	A	127.0.1.1
mail.hirschnet.se.	0	IN	A	192.168.101.251

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jan 30 13:58:52 CET 2018
;; MSG SIZE  rcvd: 106
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: DNS error resolving MX etc.

Post by phoenix »

The wiki article on Split DNS gives you a set of instruction on how to check/debug the problem, you haven't posted the required information here.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
joakim@hirschnet.se
Posts: 6
Joined: Tue Jan 30, 2018 12:36 pm
ZCS/ZD Version: Release 8.8.6.GA.1906.UBUNTU16.64 U

Re: DNS error resolving MX etc.

Post by joakim@hirschnet.se »

Sorry about that.
Anything else missing?

Code: Select all

joakim@mail:~$ host $(hostname)
mail has address 192.168.101.251
mail has address 127.0.1.1
joakim@mail:~$ cat /etc/resolv.conf 
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
joakim@mail:~$ cat /etc/hosts
127.0.0.1	localhost
127.0.1.1	mail.hirschnet.se	mail
192.168.101.251	mail.hirschnet.se	mail
192.168.101.200	hirsch-nas.hirschnet.se	nas
192.168.101.1	router.hirschnet.se	router

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback localhost
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: DNS error resolving MX etc.

Post by phoenix »

Your hosts file should have thsese lines in it (if it's dual stack):

Code: Select all

127.0.0.1   localhost.localdomain localhost localhost4.localdomain4 localhost4
::1         localhost.localdomain localhost localhost6.localdomain6 localhost6
If it's just ipv4 then remove the extra line and you also need to remove the line for "127.0.0.1" it's not necessary.

I also see no external DNS records for "hirschnet.se" and the records I see for "mail.hirschnet.se" (that's not actually a domain mane for a mail server records it's an FQDN host name) show you're using a CNAME - that's a big NO for a mail server, you could end-up losing email. The wiki article also gives you a couple of dig commands to run, I'd also like to see the output of those.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
joakim@hirschnet.se
Posts: 6
Joined: Tue Jan 30, 2018 12:36 pm
ZCS/ZD Version: Release 8.8.6.GA.1906.UBUNTU16.64 U

Re: DNS error resolving MX etc.

Post by joakim@hirschnet.se »

I assume you meant I should remove the line with 127.0.1.1 ?
Then I found this page https://whatismyipaddress.com/ds-check which reports only ipv4.
As to the external DNS:
hirschnet.se is hosted by Loopia. They helped me creating the DNS stuff as below.
[img]/home/joakim/Bilder/dns.png[/img]

The domain is pointed towards no-ip.com who supply a dynamic dns.
Zimbra is meant to run behind my router, as is my current mail server.
I have a NAS running the Xeams mail server. It's been working as far
as I can say, but there are a few reasons why I want to try another solution.

I really appreciate you helping me.

Here's the data you wanted.

Code: Select all

joakim@mail:~$ cat /etc/hosts
127.0.0.1	localhost.localdomain	localhost	localhost4.localdomain4	localhost4
192.168.101.251	mail.hirschnet.se	mail
192.168.101.200	hirsch-nas.hirschnet.se	nas
192.168.101.1	router.hirschnet.se	router

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback localhost
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
joakim@mail:~$ dig hirschnet.se mx

; <<>> DiG 9.10.3-P4-Ubuntu <<>> hirschnet.se mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59584
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;hirschnet.se.			IN	MX

;; ANSWER SECTION:
hirschnet.se.		0	IN	MX	0 mail.hirschnet.se.

;; ADDITIONAL SECTION:
mail.hirschnet.se.	0	IN	A	192.168.101.251

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jan 30 16:15:26 CET 2018
;; MSG SIZE  rcvd: 90

joakim@mail:~$ dig hirschnet.se any

; <<>> DiG 9.10.3-P4-Ubuntu <<>> hirschnet.se any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30333
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;hirschnet.se.			IN	ANY

;; ANSWER SECTION:
hirschnet.se.		0	IN	MX	0 mail.hirschnet.se.

;; ADDITIONAL SECTION:
mail.hirschnet.se.	0	IN	A	192.168.101.251

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jan 30 16:16:02 CET 2018
;; MSG SIZE  rcvd: 90
joakim@hirschnet.se
Posts: 6
Joined: Tue Jan 30, 2018 12:36 pm
ZCS/ZD Version: Release 8.8.6.GA.1906.UBUNTU16.64 U

Re: DNS error resolving MX etc.

Post by joakim@hirschnet.se »

That picture didn't come out too well. Here's what's in it:
*
CNAME 3600 0 hirsch-nas.ddns.net.
------------------
@
MX 3600 5 hirsch-nas.ddns.net.
NS 3600 0 ns1.loopia.se.
NS 3600 0 ns2.loopia.se.
----------------------
_autodiscover._tcp
SRV 3600 0 100 1 443 autodiscover.loopia.com
...........................
autoconfig
CNAME 3600 0 autoconfig.loopia.com.
----------------
WWW
CNAME 3600 0 hirsch-nas.ddns.net
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: DNS error resolving MX etc.

Post by phoenix »

I'm still not happy about using the CNAME but if they recommended it then it's you choice whether to keep it or not. The rest of the stuff looks OK, are you going to try a new install of ZCS 8.8.6?
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
joakim@hirschnet.se
Posts: 6
Joined: Tue Jan 30, 2018 12:36 pm
ZCS/ZD Version: Release 8.8.6.GA.1906.UBUNTU16.64 U

Re: DNS error resolving MX etc.

Post by joakim@hirschnet.se »

If I were to scrap the CNAME, what should I use instead?
I tried uninstall, reinstall. Same problem, alas.

Thanks a lot for your effort anyway.
/Joakim
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: DNS error resolving MX etc.

Post by phoenix »

You haven't actually said what the exact error is that you're seeing (plus any relevant error messages).
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
joakim@hirschnet.se
Posts: 6
Joined: Tue Jan 30, 2018 12:36 pm
ZCS/ZD Version: Release 8.8.6.GA.1906.UBUNTU16.64 U

Re: DNS error resolving MX etc.

Post by joakim@hirschnet.se »

It installed!

Thanks for your help!
Post Reply