Login Login

Difference between revisions of "Understanding MX Records"

Your guide to pathway services

Jump to: navigation, search
 
(11 intermediate revisions by one user not shown)
Line 1: Line 1:
A mail exchange (MX) record is a type of DNS record that specifies a mail server how emails are routed it directs your domain’s emails to the servers hosting your user’s email accounts. HostPath will manage these settings to make sure emails are always delivered to the correct mail server.
+
A '''mail exchange (MX) record''' is a type of DNS record that specifies how emails are routed to a specific mail server. (it directs your domain’s emails to the servers hosting your user’s email accounts.) HostPath will manage these settings to make sure emails are always delivered to the correct mail server.
  
== How MX Records Work<br/> ==
 
  
The MX record ensures that emails from a domain are delivered to the correct mail server.
 
  
=== Directing Emails<br/> ===
+
= How MX records work<br/> =
  
An MX record will show that all emails @example.com should be routed to the mail server at example.com. An email sent to [mailto:user@example.com user@example.com] is directly routed to the email server 216.43.49.148.
+
The MX record ensures that emails from a domain are delivered to the correct mail server.
  
To further ensure that emails always get delivered, you will need to create MX records for multiple servers. When one server is down, emails will be routed to another server instead. You can assign priorities to each server using increments of 10, 20, 30, and so on. The lowest value receives the highest priority and will be tried first.
 
  
=== Setting the Priority<br/> ===
 
  
If the domain ''example.com'' has two MX records, ''mail1.example.com'' with a priority of 10 and ''mail2.example.com'' with a priority of 20, emails are delivered first to ''mail1.example.com'' because it has a lower priority number. If ''mail1.example.com'' is down, emails are redirected to ''mail2.example.com''. If two servers have the same priority, one server is chosen randomly.
+
== Directing emails<br/> ==
  
== How to Setup an MX Record with HostPath ==
+
An MX record will show that all emails from&nbsp; ''@example.com'' should be routed to the mail server at ''example.com''. An email sent to ''[mailto:user@example.com user@example.com]'' is directly routed to the email server ''216.43.49.148.''
  
To create an MX record:
+
To further ensure that emails always get delivered, you will need to create MX records for multiple servers. When one server is down, emails will be routed to another server instead. You can assign priorities to each server using increments of 10, 20, 30, and so on. The lowest value receives the highest priority and will be tried first.
  
#In the '''DNS''' module, select a zone.
 
#Click '''Records'''.
 
#Click '''MX'''.
 
  
::[[File:DNS MX highlight.png|none|DNS MX highlight.png]]
 
<ol start="4">
 
<li>Fill in the fields as follows:</li>
 
</ol>
 
  
::[[File:DNS MX screen.png|none|DNS MX screen.png]]
+
== Setting the priority<br/> ==
  
{| style="margin-left: 50px;  width: 500px" border="1" cellpadding="1" cellspacing="1"
+
If the domain ''example.com'' has two MX records, ''mail1.example.com'' might have a priority of 10 and ''mail2.example.com'' might have a priority of 20, emails are delivered first to ''mail1.example.com'' because it has a lower priority number. If ''mail1.example.com'' is down, emails are redirected to ''mail2.example.com''. If two servers have the same priority, one server is chosen randomly.
|-
+
! scope="col" | Field<br/>
+
! scope="col" | Description<br/>
+
|-
+
| Hostname<br/>
+
| Enter the hostname of the device.<br/>
+
|-
+
| Mailserver hostname<br/>
+
| Enter the mailserver hostname. (All emails @hostname will be routed to this mailserver hostname).<br/>
+
|-
+
| Priority<br/>
+
| Set the priority number for the mailserver. The lower preference number is high priority.<br/>
+
|-
+
| TTL<br/>
+
| Adjust the TTL value of the zone in seconds.<br/>
+
|-
+
| Active<br/>
+
| Select to activate the MX record.<br/>
+
|}
+
<ol start="5">
+
<li>Click '''Save'''.</li>
+
</ol>
+

Latest revision as of 15:08, 4 November 2016

A mail exchange (MX) record is a type of DNS record that specifies how emails are routed to a specific mail server. (it directs your domain’s emails to the servers hosting your user’s email accounts.) HostPath will manage these settings to make sure emails are always delivered to the correct mail server.


How MX records work

The MX record ensures that emails from a domain are delivered to the correct mail server.


Directing emails

An MX record will show that all emails from  @example.com should be routed to the mail server at example.com. An email sent to user@example.com is directly routed to the email server 216.43.49.148.

To further ensure that emails always get delivered, you will need to create MX records for multiple servers. When one server is down, emails will be routed to another server instead. You can assign priorities to each server using increments of 10, 20, 30, and so on. The lowest value receives the highest priority and will be tried first.


Setting the priority

If the domain example.com has two MX records, mail1.example.com might have a priority of 10 and mail2.example.com might have a priority of 20, emails are delivered first to mail1.example.com because it has a lower priority number. If mail1.example.com is down, emails are redirected to mail2.example.com. If two servers have the same priority, one server is chosen randomly.