MX priority server behaviour

Under normal circumstances the server will connect to the first one that is available, but there are many reasons the first one may be unavailable to one person but not the next. Some of these reasons include things you have no control over. However the general rule is try from lowest to highest until there is a response and then use that server.

Where there tends to be an exception is spam. Often the lower numbered MX records will point to hosted services, spam filtering etc. The highest numbered MX record will be a "failsafe" and often point directly to the IP of your server. The idea being if the hosted service fails mail will still be delivered. With this is mind Spammers will look up the highest number and send mail there.


You cannot be sure because the client can also have some network errors and fail to connect to serverA, then repair network and try to connect to serverB.