"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
