For anyone using sendmail's spam filtering, i've attached a list i've made up from all the spam i've gotten for about a year now. Just thought someone else might benefit from a few less spam emails in their inbox.

The request I have is for anyone good with linux scripting. The list I made from manually grepping my "spam" mail folder on the server with a criteria of "Received:" and outputed to a file which I then edited to contain 1 line per ip/host address. Then searched for duplicates using excel, appended to my current /etc/mail/access file, searched for dupes again in excel, and just to be picky, sorted the whole thing. Then added REJECT at the end of each line, saved back to the /etc/mail/access file, used the makemap cmd to create the /etc/mail/access.db file and restarted sendmail.

Now I know this could be automated with the proper scripting using the right grep and sed, searching for the right criteria and filters and being able to append to my current access file, filtering out dupes again, running makemap and then restarting sendmail.

My ideal situation is to be able to throw any spam that I haven't yet blocked into the spam folder, setup a cron to periodically check that folder and add the ip/email/host address to the spamlist, restart sendmail and even delete the contents of the spam folder. A step further would be to scan my other mail folders for the ip/email/host address's and run them against the spam list to make sure I haven't accidentally put a valid email into the spam folder and if so, remove the entry.

I ask this here because I know ther are some very talented people that are great with linux and/or scripting and could throw this together in notime. I on the otherhand am limited in my grep/sed/scripting abilities and would take me a year to figure all this out(which I might end up doing if nobody can help me)

Any help is appreciated.

P.S. please don't suggest some of the other ready-made "smart" filters out there. The reason I like my way is because I pick what is spam by putting it in the folder and just want the ip/email/host address's of those emails to be blocked. I don't trust these "smart" filters as there is SOME spam (thinkgeek's newletters) I would actually like and don't feel like having to manually add these to some exclude list like I had to do with the ones I tried.


Attachments
126832-spam_list.txt (969 downloads)

_________________________
Mk2a 30GB Blue. Serial 030102999