Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

DNS MX Records and Mail Routing Question

Thread Tools
 
Search this Thread
 
Old 16 October 2003, 09:32 PM
  #1  
P1Fanatic
Scooby Regular
Thread Starter
 
P1Fanatic's Avatar
 
Join Date: Dec 2001
Location: Arborfield, Berkshire
Posts: 12,387
Likes: 0
Received 0 Likes on 0 Posts
Post

Just looking for some clarification on how SMTP and DNS work together to deliver a mail to a working mail server.

Say mydomain.com has the following MX records:

MX 10 mail1.mydomain.com
MX 20 mail2.mydomain.com
MX 30 mail3.mydomain.com

If my mail server (nothing to do with above domain) is sending to simon@mydomain.com it will try mx pref 10 first. Now does it simply establish a port 25 connection and if it fails move onto the next mx pref, or is it a little more complicated than that?

Also, if the same mail server wanted to send a mail to david@mydomain.com, would it make the same mistake and try mx pref 10 even though it was down 10 secs ago? Im guessing it would but would like to know for sure.

If anyone has any decent links on the subject then feel free to post em.

Cheers,
Simon.
Old 16 October 2003, 09:35 PM
  #2  
P1Fanatic
Scooby Regular
Thread Starter
 
P1Fanatic's Avatar
 
Join Date: Dec 2001
Location: Arborfield, Berkshire
Posts: 12,387
Likes: 0
Received 0 Likes on 0 Posts
Post

Yes I know the MX records arent fully qualified before some geek points it out

Simon.
Old 16 October 2003, 10:20 PM
  #3  
stevencotton
Scooby Regular
 
stevencotton's Avatar
 
Join Date: Jan 2001
Location: behind twin turbos
Posts: 2,710
Likes: 0
Received 1 Like on 1 Post
Post

The RFC is what you want, http://ftp.rfc-editor.org/in-notes/rfc2821.txt describes the use of DNS by SMTP.
Old 16 October 2003, 10:30 PM
  #4  
P1Fanatic
Scooby Regular
Thread Starter
 
P1Fanatic's Avatar
 
Join Date: Dec 2001
Location: Arborfield, Berkshire
Posts: 12,387
Likes: 0
Received 0 Likes on 0 Posts
Post

Ok for once reading an RFC wasnt that bad

This is the section I was after:

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. However, there MAY also be a configurable limit on the number of alternate addresses that can be tried. In any case, the SMTP client SHOULD try at least two addresses.

Cheers Steve,

Simon.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
slimwiltaz
General Technical
20
09 October 2015 07:40 PM
IanG1983
Wheels, Tyres & Brakes
2
06 October 2015 03:08 PM
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM
Benrowe727
ScoobyNet General
7
28 September 2015 07:05 AM



Quick Reply: DNS MX Records and Mail Routing Question



All times are GMT +1. The time now is 08:32 PM.