?
Solved

When will a sending mail server fallback to the receiving domains backup mx?

Posted on 2010-09-24
5
Medium Priority
?
390 Views
Last Modified: 2013-11-30
Hi all,
I have a mail server that operates a couple of gateways as a backup mx for a couple of clients (necessary due to their ISPs being very flaky), recently their Exchange server became corrupted (so the internet connectivity was still in place).  During this time no messages were delivered to the backup gateway.

I've seen many circumstances where - if a mail server is playing up and not simply unavailable, sending servers will not attempt delivery to the backup mail server - does anyone have a definitive list of the circumstances?  For example:

When sending server gets EHLO response but no delivery, backup mail server not contacted

Thanks

Bob
0
Comment
Question by:Mango-Man
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 6

Expert Comment

by:Ryan Smith
ID: 33755466
Emails go to the lower number mx records you have listed.  So if exchange is 5 and then your backup is 10 when the exchange server is not available it should forward to your backup.  Maybe your exchange server is just eating those emails?  Turn it off and see what happens.
0
 
LVL 1

Author Comment

by:Mango-Man
ID: 33755617
Hi NorcalHelpDesk,

Thanks for the response - believe me I understand DNS inside out (not by choice!).

My question really is exactly what defines "when the exchange server is not available".

For example, if:
A sending server attempted connection to IP: OK
Through firewall: OK
Says EHLO to mail server: OK
Attempts Deliver: FAIL

Will the sending server retry to the primary (given that it is online and responding) or will it fall back to the backup MX.

I'm 99% certain it will retry to the primary until if gives up because the server is there, it's just being problematic.  As I understand MX doesn't operate at the *message* level, it operates at the *connection* level.

Alas I can't do further testing as this is all stuff that has happened in the past to a clients Exchange.  Our backup gateway didn't have any messages for them and they are stamping their feet about it yet we can see all our systems are working fine.

Bob
0
 
LVL 17

Accepted Solution

by:
fgrushevsky earned 2000 total points
ID: 33755621
Generally, the sending server tries to deliver mail to the first mx from the returned list that is responding
meaning that if primary mx record is not resolvable or unreachable (unreachable at all or non-responsive on port 25) then the backup MX is used

If primary MX is "responsive" (playing up) - i.e. sending server can connect on port 25, but then gets no answer/timeout - then the backup is not used.
Same goes if primary responsive and reject mails etc - the backup is not going to be used

the only exception (that I know) to the "responsive" rule is made to certain 4xx SMTP return codes. Although it may not be implemented on all mail servers, it could be that when sending server connects to primary mx and receives smtp response 4.2.1 or 4.5.1 or 4.5.2 it would go to the backup mx record

0
 
LVL 31

Expert Comment

by:moorhouselondon
ID: 33761627
>Alas I can't do further testing as this is all stuff that has happened in the past to a clients Exchange.  Our backup gateway didn't have any messages for them and they are stamping their feet about it yet we can see all our systems are working fine.

Do you not have the historic transcript logs you could trawl through?
0
 
LVL 1

Author Comment

by:Mango-Man
ID: 33765228
Moorhouselondon, I do indeed but there is nothing in them (as nothing was delivered to the backup email gateway).

Thanks all for the help.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question