[SOLVED]Unable to receive email -DNS eror

Running our Appliance (ZCA), ZCS on VMware, or any other virtual machine software? Post your thoughts here.
kent05
Posts: 5
Joined: Sat Sep 13, 2014 2:31 am

[SOLVED]Unable to receive email -DNS eror

Postby kent05 » Wed Mar 28, 2012 8:19 pm

I'm evaluating Zimbra CSA v6.0.14.406. I can send out email without error but cannot receive email. I'm not sure if I have done configured them correctly.
Here are my configurations:
cat /etc/hostname

webmail.mydomain.com.my

cat /etc/hosts

127.0.0.1 localhost.localdomain localhost

192.168.1.33 webmail.mydomain.com.my


The alias after '.com.my' will missing after reboot server or restart network
cat /etc/resolv.conf

nameserver 127.0.0.1

nameserver 192.168.1.1
domain mydomain.com.my

search mydomain.com.my

host $(hostname)

Host webmail.mydomain.com.my not found: 3(NXDOMAIN)

db.mydomain.com.my

;mydomain.com.my

$TTL 86400

@ IN SOA webmail.mydomain.com.my. admin.mydomain.com.my. (

201109231448 ; Serial

604800 ; Refresh

86400 ; Retry

2419200 ; Expire

86400) ; Negative Cache TTL

; Define the nameservers and the mail servers

@ IN NS webmail

IN MX 10 webmail.mydomain.com.my

IN A 192.168.1.33

mail IN A 192.168.1.33


db.1.168.192

;1.168.192

$TTL 86400

@ IN SOA webmail.mydomain.com.my. admin.mydomain.com.my. (

201109231448 ; Serial

604800 ; Refresh

86400 ; Retry

2419200 ; Expire

86400) ; Negative Cache TTL

; Define the nameservers and the mail servers

NS webmail.mydomain.com.my

1 PTR webmail.mydomain.com.my

named.conf.local

//

// Do any local configuration here

//
// Consider adding the 1918 zones here, if they are not used in your

// organization

//include "/etc/bind/zones.rfc1918";
acl internals {

127.0.0.0/8;

192.168.1.0/24;

};
view "internal" {

match-clients { internals; };

recursion yes;

zone "mydomain.com.my" {

type master;

file "/etc/bind/internal/db.mydomain.com.my";


Note: I have not yet included ' view "external" ' in this file


nslookup webmail.mydomain.com.my

Server:         127.0.0.1

Address: 127.0.0.1#53
** server can't find webmail.mydomain.com.my: NXDOMAIN

dig mydomain.com.my mx

; <<>> DiG 9.4.2-P2.1 <<>> mydomain.com.my mx

;; global options: printcmd

;; Got answer:

;; ->>HEADER<
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:

;mydomain.com.my. IN MX
;; ANSWER SECTION:

mydomain.com.my. 86400 IN MX 10 webmail.mydomain.com.my.mydomain.com.my.
;; AUTHORITY SECTION:

mydomain.com.my. 86400 IN NS webmail.mydomain.com.my.
;; Query time: 0 msec

;; SERVER: 127.0.0.1#53(127.0.0.1)

;; WHEN: Thu Mar 29 09:09:51 2012

;; MSG SIZE rcvd: 91


dig mydomain.com.my any

; <<>> DiG 9.4.2-P2.1 <<>> mydomain.com.my any

;; global options: printcmd

;; Got answer:

;; ->>HEADER<
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:

;mydomain.com.my. IN ANY
;; ANSWER SECTION:

mydomain.com.my. 86400 IN SOA webmail.mydomain.com.my. admin.mydomain.com.my. 3540735832 604800 86400 2419200 86400

mydomain.com.my. 86400 IN NS webmail.mydomain.com.my.

mydomain.com.my. 86400 IN MX 10 webmail.mydomain.com.my.mydomain.com.my.

mydomain.com.my. 86400 IN A 192.168.1.33
;; Query time: 0 msec

;; SERVER: 127.0.0.1#53(127.0.0.1)

;; WHEN: Thu Mar 29 09:11:39 2012

;; MSG SIZE rcvd: 149



8135VTC
Advanced member
Advanced member
Posts: 73
Joined: Fri Sep 12, 2014 11:28 pm

[SOLVED]Unable to receive email -DNS eror

Postby 8135VTC » Wed Apr 18, 2012 3:27 pm

Just some of the obvious, make your you have a registered external domain, external dns pointing your external IP, NAT Rules in place to forward requests, etc.
phoenix
Ambassador
Ambassador
Posts: 26709
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

[SOLVED]Unable to receive email -DNS eror

Postby phoenix » Thu Apr 19, 2012 2:09 am

In addition to the above, the hosts file is incorrect and there's no A record for your mail server. Go to the Split DNS article and read the configuration details in there.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
kent05
Posts: 5
Joined: Sat Sep 13, 2014 2:31 am

[SOLVED]Unable to receive email -DNS eror

Postby kent05 » Fri Apr 20, 2012 1:41 am

[quote user="8135VTC"]Just some of the obvious, make your you have a registered external domain, external dns pointing your external IP, NAT Rules in place to forward requests, etc.[/QUOTE]

Tks for your reply. Currently we are using exchange 5.5. server & it is registered to external domain, which is mydomain.com.my in the example above. I can send & receive within zimbra users, can send outside but cannot receive internal emails. I guess need to register an external domain for our zimbra email server as well.
[quote user="10330phoenix"]In addition to the above, the hosts file is incorrect and there's no A record for your mail server. Go to the Split DNS article and read the configuration details in there.[/QUOTE]

The host file will remain as per listed above after reboot server or manually restart networking service, even i added alias 'webmail' after the second line.
host $(hostname)

webmail.mydomain.com.my has address 192.168.1.33

nslookup webmail.mydomain.com.my

Server:         127.0.0.1

Address: 127.0.0.1#53
Name: webmail.mydomain.com.my

Address: 192.168.1.33


dig mydomain.com.my mx

; <<>> DiG 9.4.2-P2.1 <<>> mydomain.com.my mx

;; global options: printcmd

;; Got answer:

;; ->>HEADER<
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:

;mydomain.com.my. IN MX
;; ANSWER SECTION:

mydomain.com.my. 86400 IN MX 10 webmain.mydomain.com.my.
;; AUTHORITY SECTION:

mydomain.com.my. 86400 IN NS 192.168.1.33.
;; ADDITIONAL SECTION:

webmail.mydomain.com.my. 86400 IN A 192.168.1.33
;; Query time: 0 msec

;; SERVER: 127.0.0.1#53(127.0.0.1)

;; WHEN: Fri Apr 20 14:14:27 2012

;; MSG SIZE rcvd: 97


dig mydomain.com.my any

; <<>> DiG 9.4.2-P2.1 <<>> mydomain.com.my any

;; global options: printcmd

;; Got answer:

;; ->>HEADER<
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:

;mydomain.com.my. IN ANY
;; ANSWER SECTION:

mydomain.com.my. 86400 IN SOA webmail.mydomain.com.my. admin.mydomain.com.my. 3540735832 604800 86400 2419200 86400

mydomain.com.my. 86400 IN NS 192.168.1.33.

mydomain.com.my. 86400 IN MX 10 webmail.mydomain.com.my.

mydomain.com.my. 86400 IN A 192.168.1.33
;; ADDITIONAL SECTION:

webmail.mydomain.com.my. 86400 IN A 192.168.1.33
;; Query time: 0 msec

;; SERVER: 127.0.0.1#53(127.0.0.1)

;; WHEN: Fri Apr 20 14:20:13 2012

;; MSG SIZE rcvd: 155


Return to “Virtualization”

Who is online

Users browsing this forum: No registered users and 3 guests