'Swenderful

vsergu on 2003-09-21T18:33:44

I was mostly untouched by Sobig, but two of my accounts are being slammed by Swen. Both have been used on Usenet recently (one through a mailing-list gateway).

For my home account, I had been handling my junk mail by running SAProxy (which uses SpamAssassin), but I got tired of having to download all the viruses before filtering -- plus I was afraid my mailbox would fill up. So I've finally learned the basics of procmail. For now, I'm keeping the headers so I can see how many I get (and contact the sender on the off chance that somehow a real message gets trashed). I'm also keeping a count of the total bytes received. The body of the mail gets dropped, so my mailbox fills much more slowly, and no messages get send into the queue to be retrieved with POP.

There's probably a better way, but here's the .procmailrc file:

:0 HB:
*^Content-Type: (application/x-msdownload|audio/x-(wav|midi));
{
    :0 hc
    mail/junk

    :0
    | wc -c >> junk-mail.txt
}