I ended up finding a piece of code that does an MX lookup against the domain name in the email address and it also does a regex and tests the syntax of the email address. You are correct that I cannot speak directly with the end user's SMTP server and even if I do, they will not always tell me what I want to hear. Thank you very much for the info!
Thomas B�tzler wrote: >"Brian Gibson" <[EMAIL PROTECTED]> asked: > >>I am finishing up an http link checking script that checks the validity >>of every link that happens in any web page on our main server. >>Since we have so many "mailto:" links in our pages I also wanted check >>to see if these are even valid email recipients ( I do not >>want to check the syntax of the email address, I want to talk to >>whomever holds the MX record and really see if the mail would >>get to the user ). >> > >What you want to do is theoretically possible, but it will not work >reliably. > >Accoprding to your specs you would need to use Net::DNS to find the >primary MX and then use Net::SMTP to talk to that box. The SMTP >command you're looking for would be "VFRY" - however, you should be >aware that nowadays many mail relays either respond OK to any VRFY >query, or don't implement the command at all for security reasons. > >And that does not even count the cases when a mail relay can't know >the user names becauise even though it is primary MX, it is not the >box that holds the user accounts. > >HTH, >Thomas >-- >Home Page: http://baetzler.de/ - Humor Archive http://baetzler.de/humor/ > >_______________________________________________ >Perl-Win32-Users mailing list >[EMAIL PROTECTED] >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
