> SpamAssassin can read user prefs from a MySQL table. Here's
>another PHP interface for users to update there prefs as well
>.
>
>If you configure SpamAssassin to use a MySQL table, and update users
>qmail files to call spamc with the "-u [EMAIL PROTECTED]", you
>could possibly get some tight integration between SA, vpopmail and
>qmailadmin.
>
>I'm not sure how you'd set up spamc to store the message in the
>user's directory though, if you were to add it to the .qmail file.
>Perhaps someone could write a modified spamc, or a wrapper for it,
>that would make sure the output of spamc was placed in the Maildir
>and then return the proper exit code for qmail-local. I'm currently
>using qmail-spamc as a replacement for qmail-queue to scan all
>incoming messages before they're delivered, but it can't handle
>per-user prefs.
Actually the best way I've found to do this is to create a shell script that takes the email message on stdin and the user's email and perhaps a forwarding email as parameters. This script calls spamc to filter the email for spam. If you want the email to continue onto your Maildir, just have the script exit with code 0. If you don't want it to deliver the spam to your Maildir, exit the script with 99. The exit codes are explained in the dot-qmail man page.
This script is of course called in the user's .qmail file. The file would look something like this
| /path/to/filter.sh [EMAIL PROTECTED]
./Maildir/
I suppose if you wanted the email tagged as spam (subject line, report, etc) you'd have to add lines in your filter script that will write the email to Maildir/new and then exit with code 99.
I have sort of a strange setup. I want to forward the email to another mail server if it is not detected as spam and deliver all spam locally. I'm basically creating a sort of "spam-firewall". Maybe I'll write a HOWTO for this one of these days, but for now its still in beta.
Hope this helps...
Ryan
Tired of spam? Get advanced junk mail protection with MSN 8.
