NOTE: This may be different according to your internet servers’ set-up and installation of Apache. It must be uploaded to your server as a UTF-8 text file. (.txt extension) and must be uploaded to the ’DNS‘ directory. A common configuration is
The path to your config file would be something like this…
# # Nameserver records. # .exampledomain.com::a.ns.hostserver.co.uk .exampledomain.com::b.ns.hostserver.co.uk .exampledomain.com::c.ns.hostserver.co.uk # # The domain name itself # =exampledomain.com:126.96.36.199 # # Useful aliases # +ftp.exampledomain.com:188.8.131.52 +mx.exampledomain.com:184.108.40.206 +www.exampledomain.com:220.127.116.11 +mail.exampledomain.com:18.104.22.168 # # MX record -- no IP defined, as this is done separately above. # @exampledomain.com:22.214.171.124:mx.exampledomain.com:15
126.96.36.199 Is and example IP address. Replace this with the IP address of YOUR server. Replace “exampledomain.com” with your domain name.
NOTE: Full config file below with Google Apps (Google Mail) MX (Mail Exchange) configuration.
Notice how the references in ‘# Useful aliases’ to mx and mail have been removed as we’re now pointing to another server for this service.
# # Nameserver records. # .exampledomain.co.uk::a.ns.bytemark.co.uk .exampledomain.co.uk::b.ns.bytemark.co.uk .exampledomain.co.uk::c.ns.bytemark.co.uk # # The domain name itself # =exampledomain.co.uk:188.8.131.52 # # Useful aliases. # +ftp.exampledomain.co.uk:184.108.40.206 +www.exampledomain.co.uk:220.127.116.11 # # MX record # @exampledomain.co.uk::aspmx.l.google.com:1:300 @exampledomain.co.uk::alt1.aspmx.l.google.com:5:300 @exampledomain.co.uk::alt2.aspmx.l.google.com:5:300 @exampledomain.co.uk::aspmx2.googlemail.com:10:300 @exampledomain.co.uk::aspmx3.googlemail.com:10:300
18.104.22.168 Is and example IP address. Replace this with the IP address of YOUR server. Replace “exampledomain.co.uk” with your domain name.
You are pointing anything @exampledomain.co.uk to :: the Google Mail Server of aspmx.l.google.com
You are giving it a Priority of :1
You are giving it a TTL (Time to Live) of :300. TTL’s are always in seconds so this TTL is 5 minutes.
ASIDE: If you encounter a TTL of 86400 seconds it equals 24hrs (a day).
To send mail the MTA (Mail Transfer Agent) must try each listed mail server until transfer completes.
A low Number i.e. 1 is the Highest Priority and tried first.
This form of prioritisation is sometimes referred to as ‘Distance Number’. (Lower distances being more preferable to higher distances).
Where mail servers have the same priority number the MTA must use each of these mail servers until transfer completes. It must use them randomly.
IMPORTANT:You must have a Google Apps Account set up already with e-mail address/es established.
In the e-mail section select ‘MX Entry’
and choose the mail account you wish to change.
Add the following new MX records.
Once done adding all the Google Apps records, delete the record still pointing to your domain (normally at the top of the list)
Once finished, select Remote Mail Exchanger from the Email Routing section and click Change
Remember you set your TTL to five minutes.
DNS servers around the world could still be showing the old value (information) from their cache for up to 5 minutes after the change.
In some instances DNS’s are set with their own TTL’s rather than your value. (less common these days) But, if you have the luxury of time allow your settings to propogate before trying to fix any non-existant problems.
Please share if you find the content useful - thank you
Have a comment or something to say?