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

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-09-2007, 11:10 AM
Senior Member
 
Posts: 72
Default Setting up BIND9

I'm trying to setup bind9 on Ubuntu Server 6.06. I want to make sure that I have it configured correctly for Zimbra. The machine name is "mail" on my domain "nunyad.biz". I want to send and receive emails like user@nunyad.biz. Should nunyad.biz and mail.nunyad.biz both have a MX record???

/etc/bind/named.conf.local

Code:
//
// Do any local configuration here

        zone "nunyad.biz" {
                type master;
                file "db.nunyad.biz";
                allow-update { none; };
        };

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
/var/cache/bind/db.nunyad.biz
Code:
;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     mail.nunyad.biz. admin.mail.nunyad.biz(
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      mail.nunyad.biz.
        IN      MX      10 mail.nunyad.biz.
        IN      A       192.168.254.160
mail    IN      A       192.168.254.160
www     IN      A       192.168.254.160
When ever I do a "nslookup" on mail.nunyad.biz and nunyad.biz I get:
Code:
Server:         192.168.254.160
Address:        192.168.254.160#53

Name:   mail.nunyad.biz
Address: 192.168.254.160


Server:         192.168.254.160
Address:        192.168.254.160#53

Name:   nunyad.biz
Address: 192.168.254.160

But when i run "host -t mx domain":


Code:
host -t mx nunyad.biz
nunyad.biz mail is handled by 10 mail.nunyad.biz.

host -t mx mail.nunyad.biz
mail.nunyad.biz has no MX record
dig mx nunyad.biz

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

;; QUESTION SECTION:
;nunyad.biz.                    IN      MX

;; ANSWER SECTION:
nunyad.biz.             604800  IN      MX      10 mail.nunyad.biz.

;; AUTHORITY SECTION:
nunyad.biz.             604800  IN      NS      mail.nunyad.biz.

;; ADDITIONAL SECTION:
mail.nunyad.biz.        604800  IN      A       192.168.254.160

;; Query time: 2 msec
;; SERVER: 192.168.254.160#53(192.168.254.160)
;; WHEN: Sun Sep  9 13:51:06 2007
;; MSG SIZE  rcvd: 79
dig mx mail.nunyad.biz
Code:
; <<>> DiG 9.3.2 <<>> mx mail.nunyad.biz
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50962
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.nunyad.biz.               IN      MX

;; AUTHORITY SECTION:
nunyad.biz.             604800  IN      SOA     mail.nunyad.biz. admin.mail.nunyad.biz.nunyad.biz. 2 604800 86400 2419200 604800

;; Query time: 2 msec
;; SERVER: 192.168.254.160#53(192.168.254.160)
;; WHEN: Sun Sep  9 13:52:34 2007
;; MSG SIZE  rcvd: 91
Reply With Quote
  #2 (permalink)  
Old 09-10-2007, 03:58 AM
Active Member
 
Posts: 26
Default Zone

You created incorrect BIND9 zone

Code:
$TTL 2D
@               IN SOA          ns1.nunyad.biz.     admin.nunyad.biz. (
                                2007091001      ; serial
                                3h              ; refresh
                                1h              ; retry
                                2w              ; expiry
                                3h )            ; minimum

nunyad.biz. IN MX           10 mail.nunyad.biz.
nunyad.biz. IN NS           ns1.nunyad.biz.
nunyad.biz. IN NS           ns2.nunyad.biz.
ns1             IN A            192.168.254.160
ns2             IN A            192.168.254.161
mail            IN A            192.168.254.160
webmail         IN A            192.168.254.160
www             IN A            192.168.254.160
Reply With Quote
  #3 (permalink)  
Old 09-10-2007, 04:22 AM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

There's nothing wrong with the zone file (apart from it really should have 2 nameservers ideally).

Quote:
host -t mx nunyad.biz
nunyad.biz mail is handled by 10 mail.nunyad.biz.

host -t mx mail.nunyad.biz
mail.nunyad.biz has no MX record
This is correct. The hostname shouldn't have an MX record, just the domainname.
Reply With Quote
  #4 (permalink)  
Old 09-10-2007, 09:15 AM
Moderator
 
Posts: 1,027
Default Complete Ubuntu Install details here

This Wiki Article goes through the entire install of Zimbra on Ubuntu Server, including the configuration of bind. I wrote it because I found it impossible to get an after-the-fact installation to behave properly with bind or bind9, but I have replicated this installation methodology several times without a hitch.

Hope it helps,

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