If your users have access to an imap account, you could setup one
account for your users to access to drop spam messages directly into it
then run sa-learn --spam on that maildir. Run it as a cron job so
that every couple of hours you could have the job run and finish be
deleting the messages after they have looked at.
Just my 2 cents... Dennis
Noel Sanchez wrote:
Thanks for the advice Bob. I've spent more time reading the docs like I
should've to begin with. From what I've read, if I let my users know to
forward all spam they receive into their email to an email that I
created, say [EMAIL PROTECTED], I can use "sa-learn --spam
/home/vpopmail/domains/furniture-homegallery.com/3/spam/Maildir/cur so
that it "learns" what spam is. Question, won't it think that the spam is
actually my users forwarding the spam instead of the actual spam being
forwarded to it? If they forward the email to [EMAIL PROTECTED], I think
it'll learn to ban my users at my domain instead. Am I doing this wrong?
Thanks
-----Original Message-----
From: Bob Hutchinson [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 16, 2006 2:04 PM
To: toaster@shupp.org
Subject: Re: [toaster] spamassassin
On Thursday 16 Feb 2006 19:52, Noel Sanchez wrote:
Hello All. I have used the toaster without the "options" installed for
quite some time, very happy with it. Now, my users have been getting
many spam emails. So, I installed ALL "options" per the toaster. Very
easy to do, thanks to Bill. Question, now that I have installed it,
what
now? I sent a spam email from outside into my mail server.
Spamassassin
recognizes it and puts it on my squirrelmails inbox and marks it as
spam. That's great, but I isn't the point of simscan is to drop it
automatically? I'd like to NOT receive ANY spam in my inbox. Maybe
sent
to a spam folder or drop it altogether. And if it doesn't put it in my
inbox, where will it go? What if it marks an important email as spam
when in fact it isn't? I'm only trying to understand how this works.
I'd
like for the spam to NOT show up in my squirrelmail inbox at all if
possible and maybe be sent automatically to a spam folder that I
create
inside of squirrelmail or in outlook for my outlook users. Did I not
config properly?
Thanks
install maildrop
put something like this in .qmail file for the user
|/usr/local/bin/maildrop
/home/vpopmail/domains/domain.name/mailfilter-spam
here is a mailfilter. it is generic, so it works for any user
ps. maildrop is picky, so no empty lines/comments in the if statement
;-)
import EXT
import HOST
VPOPBIN="/home/vpopmail/bin"
QMAILDIRMAKE="/var/qmail/bin/maildirmake"
MAILDIRQUOTA=`$VPOPBIN/vuserinfo -q [EMAIL PROTECTED]
VUSERDIR=`$VPOPBIN/vuserinfo -d [EMAIL PROTECTED]
VMAILDIR="$VUSERDIR/Maildir"
SPAMDIR="$VUSERDIR/Maildir/.SPAM"
if (/^X-Spam-Flag: *YES/)
{
`test -d $SPAMDIR`
if( $RETURNCODE == 1 )
{
`$QMAILDIRMAKE $SPAMDIR;chown -R vpopmail.vchkpw
$SPAMDIR`
}
to $SPAMDIR/
}
else
{
to $VMAILDIR/
}
you might need to use courier-imap's maildirmake (if that is what you're
using). I found that I had to use it where version 4.xx is installed, to
create some ACL support files.
HTH