As example I also test it with Cygwin on WinXP, but should work on Solaris or MacOS X.
It is written as a Bash scri_pt, so you have no GUI.
The scri_pt is written under the GNU/GPL license so, as everytime other developer are wellcomed.
My thanks to tembow for the idea and many explanations on domain name system
In my experience, it cutted my spam from 20 a day, to 5 a day. It carry my time around spam to near 0.
Invocation:
If run with a parameter, will be interpretated as a URL, and complaint for this.
It recover Registrar, Name Servers, Registrar Name Server, and send all the complaints emails for the spammed domain.
If run without parameter, it download all the spam from an IMAP4 account, from a particular spam folder.
spam should be moved there before by a Bayesian filter like the one included in Mozilla, that after a week of training, indentify 100% of spam with 0% false positive, carrying away from your eyes all the spam.
Then it analyze the spam (decoding as appropriate) to find the URL, and complaint for all the founded URL.
It can follow some simple redirect URL and complaint also for those.
Then it parse again the mail to find scam email, and complaint also for those.
Last, it forward the spam to a configured email like spamcop or knujon.
My suggestion is to use in tandem with Spamcop as are complementary solutions.
This version send complaint emails with domain in obfuscated [dot] format for some Registrars.
Initially are Beijing and Hichina, you can add more in 'RegistrarObfuscated.txt' file.
Take care of configure your user IMAP and SMTP mail account inside the scri_pt.
In particular correctly fill the string 'userMail' with <email>
Example:
userMail="Name <yourEmail[at]domain.tld>"
as some SMTP server require the <>
From this version you can (optional) use an external mail server configuration file.
It must be called 'xComplaintConfig.txt' and should be in this format:
CODE
# mail server user configurations:
export userImap="imap.gmail.com" # imap4 server
export userUser="" # user on imap4 server
export userPass="" # pass on imap4 server
export imapSSL="--ssl" # insert --ssl when IMAP server require (Gmail)
export spamFold="[Gmail]/spam" # spam folder on IMAP server
export userSmtp="" # user smtp server
export userMail="" # user email "Name <email[at]domain.tld>"
export forwardEmail="" # a mail to forward all spams
The Registrar list is exacly the same as:
http://www.spamtrackers.eu/downloads/Compl...lainterator.txt
but with unix style new line, sorted alphabetically, and with no line ending space.
Unfortunately the search algoritm is really slow. Need a new version in C language with a GUI in GTK+.
The scri_pt depend on the following external tools executables:
CODE
cat # text handling
grep # text handling
awk # text handling
sed # text handling
tr # text handling
cut # text handling
sort # text handling
dos2unix # text handling
wc # text handling
read # input handling (bash builtin)
base64 # decode base64 encoding
iconv # international encoding conversion
dig # NameServer query
host # IP query
whois # whois query
wget # URL html redirect check
telnet # send emails
fetchmail # receive emails
On Windows you have to install Cygwin with standard package, plus whois, wget, inettools (for telnet), fetchmail, dos2unix, base64, and iconv.
More you have to install the package 'dig' from:
http://members.shaw.ca/nicholas.fong/dig/
as isn't included in Cygwin.
The package can be downloaded from:
http://www.castlecops.com/p1110770-Complai...ux.html#1110770
