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.
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
3. 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?
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.