Proper way to handle misidentifiedspamsite-wide?
Julian Field
mailscanner at ecs.soton.ac.uk
Thu Jun 27 20:36:08 IST 2002
This has taken me about an hour and a half to solve.
Take a look at the attached shell script.
It should do 99% of what you are trying to achieve.
Its syntax is:
df2mbox dirname [ dirname ... ]
i.e. you can cd into your quarantine directory and do
df2mbox *
to process all your quarantine directories, or you can just do the
directory that corresponds to yesterday's mail, e.g.
df2mbox 20020622
It will create a file called "spam.<dirname>" in the current directory, for
each directory name you pass on the command-line. Try doing
cd /var/spool/MailScanner/quarantine
df2mbox *
and you'll see what I mean.
You can then point most mail readers, everything from pine to Eudora, at
the spam.* files.
Read the comment at the top of the script for the things I forgot to
mention here.
All donations gratefully received :-)
At 18:52 27/06/2002, you wrote:
>Not hard, no, but not very accurate/usable either. :) What is going on is
>that I'm trying to pull all the spam out of our "info" and "help" accounts
>before the people that have to handle such requests see them. This is why it
>is really all "my" mail -- I don't think there are legal problems are. The
>problem is that we get tons of spam at these -- because we make the email
>addresses so readily available on web sites and such -- crawlers pick them up
>repeatedly.
>
>So, I'm just trying to filter most of that out before it ever gets to them to
>see at all -- but want to check for errors. So, just for fun, here are some
>of the subjects from our quarantine (ie. marked as spam already) using your
>method:
>
>qfg5QM7D128287:H??Subject: help...
>qfg5QMBv131050:H??Subject: Offer
>qfg5QMOo104547:H??Subject: Re: More info?
>qfg5R0Jj104316:H??Subject: Here is what you requested
>qfg5R0Rs109645:H??Subject: YOUR ATTENTION PLEASE
>qfg5R2IS106590:H??Subject: Welcome New Member!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: df2mbox
Type: application/octet-stream
Size: 1282 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20020627/2c191da0/df2mbox.obj
-------------- next part --------------
--
Julian Field Teaching Systems Manager
jkf at ecs.soton.ac.uk Dept. of Electronics & Computer Science
Tel. 023 8059 2817 University of Southampton
Southampton SO17 1BJ
More information about the MailScanner
mailing list