2,187
edits
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 | 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 | #* <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, | 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 == |