Eliminate Spam Now... >g< Python w/DNS/&POP3

Benjamin Schollnick junkster at rochester.rr.com
Sun Mar 17 19:16:00 EST 2002


on 3/17/02 5:48 PM, Neil Schemenauer at nas at python.ca wrote:

> You don't need DNSlib.  socket.gethostbyname() works fine.  Check out my
> spamhunter script¹ for example code.
> 
> Neil 
> 
> ¹ http://arctrix.com/nas/python/spamhunter.py

Neil,

    Your script is quite helpful, but I don't follow your suggestion about
not needing DNSlib.

    gethostbyname would resolve to the IP address of the spammer, but it
doesn't do any checking against the blacklists....The only exception that I
can think of would be if you were using the blacklist organizations DNS
servers as your primary DNS server???

                - Benjamin





More information about the Python-list mailing list