You will probably run into a few issues. First you need to fetch the MX record for the domain before you can even connect. After that you could use the SMTP verify user command to see if the user exists, but I think you might find that many SMTP servers will not give you a reliable answer. I think AOL, for example, will always tell you that the user exists (I may be wrong though).
I think you might be better off with Spam Assassin, or using an ISP that uses it. On the other hand, it can't hurt to try doing it yourself. Rob -----Original Message----- From: Jerry Rocteur [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:33 PM To: [EMAIL PROTECTED] Subject: OT: Conceptual -- Spam stopper script Hi, I've been analyzing my SPAM by replying to it lately and find that MOST email addresses where the SPAM originates do not exist.. Nothing new here.. What I'd like to do is to write a script that accesses my pop mail, gets the From: address, verifies it and if it is a valid address, accepts the mail, otherwise, removes it.. Is this feasible or plain wishful thinking ??? I've written perl scripts to handle sending mail and to access pop mail but I'm not sure of being able to do the above ??? I realize this is a bit OFF topic but SPAM is getting to me ;-(( Thanks for your thoughts, Jerry Rocteur. Italy did it first... http://www.rocteur.cc/geeklog/public_html/ article.php?story=20030914164349518 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]