Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / Getting the MX pointer for a domain

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Getting the MX pointer for a domain
#887
Posted by: 2003-05-08 21:05:02
When sending a mail to a user blablabla@domain.com it's probbably mail.domain.com that is the mail server... is this always the case?

or do i have to extract the domain info. from a DNS server and look for the MX record and then use the MX record as the mail server addr in my app.
This seams to be the bulletproof way, but to do this is sooooo much work.

Tnx for any answer.

/phlmr
Message2. Re: Getting the MX pointer for a domain
#901
Posted by: Gerard 2003-05-10 00:09:11
Actually you should always use the DNS query for asking the MX record.
You need the name of the SMTP server. See hotmail! Non of the mail servers is called mail.hotmail.com. At this time they are called Mx#.hotmail.com. Another case: if mail.domain.com is not accessible, and there exists a second mail server in their domain i.e. mailbackup.domain.com...? This means you should check the MX preference as well.
The chance that the HTTP server and mail server are the same IP is low and is not really smart (Vulnerability's etc).

Conclusion:
I think, you should wipe your tears and do the UDP stuff to port 53!

Regards,

Gerard
Message3. Re: Getting the MX pointer for a domain
#906
Posted by: 2003-05-12 17:45:43
Ok... tnx dude.

Do you know any RapidQ implementation of chatting with the DNS?

/ph4lmr
Message4. Re: Getting the MX pointer for a domain
#907
Posted by: Gerard 2003-05-12 18:04:55
Sorry, I didn't see any of that kind, but it doesn't mean that it does not exist.
Probably you can use the include RSocket of Doctor Electron and ask him how to use UDP and of course I like to follow this discussion.

gerard
Message5. Re: Getting the MX pointer for a domain
#909
Posted by: 2003-05-12 22:15:59
Ok... found it..

This nice DLL will do the work for me..

http://www.opcode.co.uk/components/mxlookup.asp

Hope It's valuable information for all writing e-mail progs out there...

/pHl4Mr.
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0