Difference between revisions of "Split DNS (Zimbra)"

Jump to navigation Jump to search
287 bytes removed ,  11:51, 5 June 2022
m (→‎DNS Records: Slight rewording of CNAME text)
(→‎DNS Records: Updated)
 
Line 8: Line 8:


== DNS Records ==
== DNS Records ==
Firstly, you need to own a public domain name, then get your ISP to create two DNS records...
Firstly, you need to own a public DNS domain name, then create two DNS records...
# '''MX record''' - Mail Exchanger (MX) record
# '''MX record''' - Mail Exchanger (MX) record
#* EG <code> sandfordit.com [MX] -> mail.sandfordit.com </code>
#* EG <code> sandfordit.com [MX] -> mail.sandfordit.com </code>
#* <code> sandfordit.com </code> is the domain you own, and <code> mail.sandfordit.com </code> is hostname of your email server (can be anything you like). Email addressed to <code><anything>@sandfordit.com</code> will be directed to the server in this record.
#* where <code> sandfordit.com </code> is the domain you own, and <code> mail.sandfordit.com </code> is hostname of your email server (the can be anything you like). Email addressed to <code><anything>@sandfordit.com</code> will be directed to the server in this record.
#* You'll need to give the record a weighting (this allows you to have multiple email servers for the same domain).  The lower the number the higher the server's priority, assuming you only have one email server, its common to use <code>10</code>
#* You'll need to give the record a weighting (this allows you to have multiple email servers for the same domain).  The lower the number the higher the server's priority, assuming you only have one email server, its common to use <code>10</code>
# '''A record''' - Standard DNS record
# '''A record''' - Standard DNS record
#* EG <code> mail.sandfordit.com [A] -> 158.25.34.124 </code>
#* EG <code> mail.sandfordit.com [A] -> 158.25.34.124 </code>
#* <code> 158.25.34.124 </code> is the static IP address assigned by your ISP.  You'll need to set-up a NAT on your router (often oddly called a virtual server in domestic routers) to map incoming mail on TCP 25 to your email server's actual address (EG <code> 158.25.34.124:25 -> 192.168.1.150:25 </code>).
#* <code> 158.25.34.124 </code> is the static IP address assigned to your email server.  You'll need to set-up a NAT on your router (often called a virtual server in domestic firewalls/routers) to map incoming mail on TCP 25 to your email server's actual address (EG <code> 158.25.34.124:25 -> 192.168.1.150:25 </code>).


Note, instead of an A record, some people will use a CNAME record instead (though obviously the CNAME record will still need to point to a valid A record.) Using a CNAME might be preferable, if for example you've multiple services running from a single public IP, that you might want to split out in the future to run on separate IP's, at which point you can replace the CNAME records with A records.  However, I've seen a number of pages on the internet suggesting you shouldn't do this and it may not work, so if you're experiencing issues when using a CNAME consider changing to an A record.
Note, instead of an A record, a CNAME record can be used instead (though the CNAME record will still need to point to a valid A record).  Using a CNAME can be preferable, where you might, in the future, want to send inbound email traffic to another email server, addressed by a different A record.


== Localhost DNS Server Setup ==
== Localhost DNS Server Setup ==

Navigation menu