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-05-2011, 01:36 AM
Member
 
Posts: 14
Default Configuring two zimbra mail server within LAN with split DNS

Dear,

I have configured first mail server and now it's working fine with OpenDKIM, split DNS.

Thank you all for helping me out with advice mostly Phoenix and others.

Now i want to configure second mail server behind NAT (same as the first one) but this server will have different name (mail2.mydomain.com).

How can i configure split DNS so that mail2.mydomain.com can be added to the Bind configuration files?

Here are three files that i need to change for the second server. Do i have to replace every mail with mail2?

In my public DNS record mx is mail.mydomain.com.

Here are my current configuration for the three files that i need to change.

Code:
sudo nano /etc/bind/db.mydomain.com
;
; BIND data file for homedomain.org
;
$TTL      604800
@          IN      SOA     mail.mydomain.com. admin.mydomain.com. (
                                   070727         ; Serial
                                   604800         ; Refresh
                                   86400          ; Retry
                                   2419200        ; Expire
                                   604800 )       ; Negative Cache TTL
;
@         IN     NS         mail
          IN     MX      10 mail
          IN     A          192.168.0.5
mail      IN     A          192.168.0.5


#sudo nano /etc/bind/db.0.168.192
$TTL 3D
@          IN          SOA     mail.mydomain.com. admin.mydomain.com. (
                                       2       ; Serial
                                       8H      ; Refresh
                                       2H      ; Retry
                                       4W      ; Expire
                                       1D)     ; Minimum TTL
                        NS     mail.mydomain.com.
10                      PTR    mail.mydomain.com.

#sudo nano /etc/bind/db.0.0.127
$TTL 3D
@               IN      SOA    mail.mydomain.com. admin.mydomain.com. (
                               2       ; Serial
                               8H      ; Refresh
                               2H      ; Retry
                               4W      ; Expire
                               1D)     ; Minimum TTL
                        NS     mail.mydomain.com.
1                       PTR    localhost.
Thanx in advance.
__________________
The quieter you become,The more you are able to hear,,,,,

Last edited by emnzava; 09-05-2011 at 01:45 AM..
Reply With Quote
  #2 (permalink)  
Old 09-05-2011, 03:09 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Is this just a second server in the same domain with a different priority? What is the role of this server going to be, a backup perhaps?

I don't actually like the layout of those DNS records, I prefer to explicitly list the domains and servers like this:

Code:
sudo nano /etc/bind/db.mydomain.com
;
; BIND data file for homedomain.org
;
$TTL      604800
domain.com.          IN      SOA     mail.mydomain.com. admin.mydomain.com. (
                                   070727         ; Serial
                                   604800         ; Refresh
                                   86400          ; Retry
                                   2419200        ; Expire
                                   604800 )       ; Negative Cache TTL
;
domain.com.               IN     NS         ns1.domain.com
domain.com.               IN     MX      10 mail1.domain.com.
domain.com.               IN     MX      20 mail2.domain.com.
domain.com.               IN     A          192.168.0.5
mail1.domain.com.         IN     A          192.168.0.5
mail2.domain.com.         IN     A          192.168.0.10
ns1.domain.com            IN     A          192.168.0.5
If this is a new server in a different domain then just create new bind configuration files for that domain and add the records to point to the new server.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 09-05-2011, 04:53 AM
Member
 
Posts: 14
Default

Yes, this is a second server in the same domain. My aim is to create a backup server.

I took the layout of DNS record in this how to for zimbra 7 on ubuntu 10.04 64bit Zimbra 7.0.0 installation on Ubuntu 10.04 Server » Open Source Explorations

So if i got correctly in both server i have to explicitly list servers like you did on your example for /etc/bind/db.mydomain.com?

What about /etc/bind/db.0.168.192 file. can it stay the same way i've created.
__________________
The quieter you become,The more you are able to hear,,,,,
Reply With Quote
  #4 (permalink)  
Old 09-05-2011, 05:17 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by emnzava View Post
So if i got correctly in both server i have to explicitly list servers like you did on your example for /etc/bind/db.mydomain.com?
That's just my preferred method of naming the records but, yes, you need to add them in that format.

Quote:
Originally Posted by emnzava View Post
What about /etc/bind/db.0.168.192 file. can it stay the same way i've created.
That should continue to work OK but you might want to change the NS records to the same format as the ones I've listed, just for consistency - it's your choice.

Don't forget to make a copy of the original files before you make any changes just in case you have a problem. You can obviously check the new records using the 'Verify...' section of the Split DNS article.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 09-05-2011, 07:05 AM
Member
 
Posts: 14
Default

Thanks,

Let me try your option and see the output. Will keep you posted.

Thanx.
__________________
The quieter you become,The more you are able to hear,,,,,
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.