Petri IT Knowledgebase Forums
 

Petri.co.il forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri IT Knowledgebase Forums > Networking > General Networking
Petri.co.il is happy to award auglan the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri IT Knowledgebase Forums Search Todays Posts Today's Posts Mark Forums Read

Notices

MX record Preference

MX record Preference

this thread has 5 replies and has been viewed 1016 times

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th July 2012, 05:13
avilt avilt is offline
Casual
It's not a coincidence
 
 Join Date: Jan 2010
  6 month star 12 month star
 Posts: 82
 Reputation: avilt is on a distinguished road (10)
Default MX record Preference

Does the MX preference distance improve the efficiency of email routing?

In the following example, if I increae the preference value of Host3 to 700 instead of 30, am I going to get any benefit if my objective is to get emails via Host1/Host2 and not Host3.

Current:
-----------------------------------------------
Host1 with MX value 10
Host2 with MX value 20
Host3 with MX value 30

New:
-----------------------------------------------
Host1 with MX value 10
Host2 with MX value 20
Host3 with MX value 700
  #2  
Old 6th July 2012, 07:57
tehcamel's Avatar
tehcamel tehcamel is offline
Moderator
 
 Join Date: Mar 2009
  6 month star 12 month star
 Location: Melbourne
 Posts: 5,091
  Send a message via Skype™ to tehcamel
 Reputation: tehcamel is a name known to alltehcamel is a name known to alltehcamel is a name known to alltehcamel is a name known to alltehcamel is a name known to alltehcamel is a name known to all (564)
Default Re: MX record Preference

Mx is weighted.
It will try to go to the lowest priority first.
If it can't reach that, it'll go to the next one.

It doesn't really round robin. Increasing the weight to 700 won't make much difference - it'll go to 10, then 20, then go straight to 700

it should already be going to 10 or 20 first anyway...
__________________

IT Support for businesses. Australian IT Support
Adept Small Business IT
Passionate about IT Support

Please do show your appreciation to those who assist you by leaving Rep Point
Posting from a BB Playbook - please excuse my typing
  #3  
Old 6th July 2012, 11:34
cruachan's Avatar
MVM cruachan cruachan is offline
Senior Member
MVM
 
 Join Date: Jun 2008
  6 month star 12 month star
 Location: Hamilton, Scotland
 Posts: 1,980
 Reputation: cruachan is just really nicecruachan is just really nicecruachan is just really nicecruachan is just really nice (351)
Default Re: MX record Preference

I'm sure I've seen posts in the Exchange forum suggesting that MX weighting is not reliable, might be worth a search?
__________________
BSc, MCSE, MCSA: Messaging, MCTS, STS, DCSE

Cruachan's Blog
  #4  
Old 6th July 2012, 13:45
wullieb1 wullieb1 is offline
Moderator
 
 Join Date: Jul 2005
  6 month star 12 month star
 Location: Bris Vegas, Australia
 Posts: 6,436
 Reputation: wullieb1 is a splendid one to beholdwullieb1 is a splendid one to beholdwullieb1 is a splendid one to beholdwullieb1 is a splendid one to beholdwullieb1 is a splendid one to beholdwullieb1 is a splendid one to behold (690)
Default Re: MX record Preference

Please read this http://en.wikipedia.org/wiki/MX_record with specific reference to this

Quote:
The preference debate
The SMTP RFC[3] is ambiguous about exactly what kinds of delivery failure must result in re-attempting delivery via more distant MX records (those with higher preference values).
For example, sometimes servers indicate temporary failures, either by explicitly sending a 4xx error or by ending the connection unexpectedly (which must be treated as a 451 error, according to Section 3.8 of the RFC). If there is a temporary failure, should a more distant MX record be attempted, or should the server wait and retry later? According to Section 4.5.4.1:
The sender MUST delay retrying a particular destination after one
attempt has failed.
But when the sender retries later, the RFC is silent about whether the sender should retry the same server that gave the previous temporary error or a more distant MX record. It does say, in Section 5.1:
When the lookup succeeds, the mapping can result in a list of
alternative delivery addresses rather than a single address, because
of multiple MX records, multihoming, or both. To provide reliable
mail transmission, the SMTP client MUST be able to try (and retry)
each of the relevant addresses in this list in order, until a
delivery attempt succeeds.
It is not specific about what should cause the sender to use a higher-preference MX record, merely that the sender must be able to use higher-preference MX records. Some servers (such as Sendmail and Postfix 2.1 or later[4]) will attempt the next-furthest MX server after some types of temporary delivery failures, such as greeting failures.[5] Other servers (such as qmail and Postfix 2.0 or earlier) will only use more distant MX records if the servers specified in the shortest-distance MX records could not be contacted at all.
Both behaviors are valid, since the RFC is not specific. Re-attempting with more distant MX records makes a lot of sense if the primary MX's failure is considered non-authoritative; that is, if there is an expectation that the message may yet be delivered by the backup MX servers. This is often phrased as "if the alternative is giving up and not delivering the mail, why not try the higher-preference MXs?"[6] However, if the primary MX's failure is considered authoritative (i.e. it is the primary server for a non-arbitrary reason), attempting to deliver to secondary MX servers is not only a waste of time but potentially a waste of expensive resources, depending on the reason why the secondary servers have higher preference values.
The different MX-handling behaviors of email servers (MTAs) often comes up in discussions of nolisting and similar anti-spam strategies that rely on manipulating the MX order and exercising MTA failure handling mechanisms.
Regardless of how one interprets the RFCs there is an advantage to choosing to deliver to higher numbered MX records when receiving a 4xx error from a primary mail server. If the primary server is overloaded or experiencing some other temporary failure the backup server can accept the email and process it. This means the email is delivered faster than waiting to retry the primary server until it recovers. Some front end spam filtering services apply gray listing techniques on only the primary server to discourage spam bot email. Sending servers that retry the higher MX records will be able to deliver their outgoing mail immediately, while servers like qmail will be delayed typically for an hour till the primary server allows it. So servers that retry higher numbered MX records gain a performance advantage.
  #5  
Old 6th July 2012, 16:27
Lior_S's Avatar
MVM Lior_S Lior_S is offline
Member
MVM
 
 Join Date: Aug 2006
  6 month star 12 month star
 Location: USA
 Posts: 946
 Reputation: Lior_S is a jewel in the roughLior_S is a jewel in the roughLior_S is a jewel in the rough (269)
Default Re: MX record Preference

Quote:
Originally Posted by tehcamel View Post
It doesn't really round robin. Increasing the weight to 700 won't make much difference - it'll go to 10, then 20, then go straight to 700
If you want some kind of round robin, make the priority the same, but increasing the distance in numbers makes no difference..

Host1 with MX value 10
Host2 with MX value 10
Host3 with MX value 30 (700)

Also some spam tactics will go to the highest MX first anyway
__________________
"...if I turn out to be particularly clear, you've probably misunderstood what I've said” - Alan Greenspan
  #6  
Old 12th July 2012, 22:11
justintoxicated justintoxicated is offline
Casual
Casual
 
 Join Date: Jul 2012
  6 month star
 Posts: 1
 Reputation: justintoxicated is on a distinguished road (10)
Default Re: MX record Preference

I agree with the comments that the distance does not make much difference. I do a lot of domain research and just about every result I've gotten from my main online tool has had priorities of 10 20 30 etc.

Feel free to confirm yourself. There must be a reason a majority of people use this method.

unlocktheinbox.com/dnslookup/mx/
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Group Policy Preference ( Folder Option ) Parampe GPO 0 30th April 2012 09:59
GPO Preference to push out registry keys brcmadmin GPO 8 10th November 2011 00:54
Broken SID owns DNS record. Prevents any control of record. CCSMSharon DNS 0 19th August 2011 18:32
1811 Router - Dual WAN w/failover, ISP protocol preference Chuckak Cisco Routers & Switches How-to 1 20th April 2010 18:58
Round Robin priority vs. MX preference. lukeandmax Exchange 2000 / 2003 2 1st June 2006 14:58


All times are GMT +3. The time now is 01:58.

Steel Blue 3.5.4 vBulletin Style ©2006 vBEnhanced
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri