Am Do, den 14.10.2004 schrieb Jesse Guardiani um 17:39:
> Hello,

> Also, we would like to be able to allow the user
> to tweak their own filtering setup from a web
> interface or multiple web interfaces as needed,

Sqwebmail has a filter for maildrop-mailfilter files.
And you can get a filter-editor for Squirrelmail that also reads/writes
mailfilter-files - allthough the two can't read each other's filters...

> but within the constraints of the services they
> are paying for.

Uh. 

> Sound complicated? Yeah, I think so too.

Bingo.

> Anyway, the web interface can wait, but right
> now I really need some way to add, remove, and
> re-order filters on a per mailbox basis *without*
> making qmailadmin choke to death on the strange
> dot-qmail syntax. I figure the only way to do
> this is to use some third party filtering
> application, like maybe maildrop, as qmailadmin's
> "spam command". This way filtering can be turned
> on and off quickly, and qmailadmin understands
> the dot-qmail syntax.
> 
> It would then be the job of maildrop or whatever
> to find and apply any filters we set up for the
> user from our integration scripts. The trick is
> that the filters MUST:
> 
> 1.) reside in the user's directory under the vpopmail
>     hierarchy. This way if the user is deleted by
>     vpopmail then the filters are cleanly deleted
>     as well. This also allows filters to be set up
>     and tweaked on a per user basis.
> 
> 2.) be easy to create, modify, delete, and sort
>     by an external script or program (i.e. our
>     integration scripts AND a future user web
>     interface)
> 
> I have a few ideas, but I don't want to re-invent
> the wheel. Has anyone done something similar to
> this before? Can you give me tips? Or a howto?

On my qmail-toasters (done Matt Simerson's way - http://www.tnpi.biz), a
global mailfilter-file is consulted for every user who has filtering
enabled. That global file also sucks-in any local files it finds in the
users $VHOME.

[EMAIL PROTECTED] pwd
/usr/local/vpopmail/domains/ultra-secure.de/rainer
[EMAIL PROTECTED] cd ..
[EMAIL PROTECTED] cat .qmail-default
| /usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox
[EMAIL PROTECTED] cat rainer/.qmail
| /usr/local/bin/maildrop /usr/local/etc/mail/mailfilter

I've started spamd with the following commands:
spamd_flags="-q -a -c -d -v -u vpopmail -r /var/run/spamd.pid
--siteconfigpath=/usr/local/etc/mail/spamassassin/"

But you must patch spamassassin a little to get the user-specific
.spamassassin directory created (it's on the sf-site, hidden in some
bug- or feature-forum...)
My spamassassin-configs are in mysql, there's another plugin (or two, or
three) to edit the preferences (spamscore-threshold).




Rainer
-- 
===================================================
~     Rainer Duffner - [EMAIL PROTECTED]     ~
~           Freising - Munich - Germany           ~
~    Unix - Linux - BSD - OpenSource - Security   ~
~  http://www.ultra-secure.de/~rainer/pubkey.pgp  ~
===================================================

Reply via email to