On Thursday 13 March 2003 20:54, Iain wrote:
> On Fri, 14 Mar 2003 10:09, Dave Weiner wrote:
> > > Do you have valias enabled on your system? Maybe you could try it and
> >
> > Yes, as well as maildrop. However, I call it from user's .qmail files,
> > not the .qmail-default
>
> really. What version of vpopmail and maildrop are you using? Would you mind
> posting your maildrop filter?
vpopmail 5.3.16, maildrop 1.3.8
The user's .qmail file just gets "|maildrop" put in it. In ~vpopmail is this
.mailfilter
#
# We need to know the actual dir for the vpopmail user
#
import EXT
import HOST
VHOME=`/var/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
#
# Do we send the mail through spamc?
#
exception {
include "$VHOME/.spamc"
}
#
# If there's a spamfolder file in the users directory
# it will have the rule to deliver to the SPAM folder
#
exception {
include $VHOME/.spamfolder
}
#
# Include any other rules that the user might have from
# sqwebmail or other compatible program
#
exception {
include $VHOME/Maildir/.mailfilter
}
#
# Default delivery if all else fails
#
exception {
to "$VHOME/Maildir/"
}
if .spamc is present in the users directory, it will contain:
if ( $SIZE < 262144 )
#
# Only filter if less than 256K
#
{
exception {
xfilter '/usr/bin/spamc -f -u "[EMAIL PROTECTED]"'
}
}
and if .spamfolder is present, it will contain:
if ( /^X-Spam-Flag: *YES/)
{
exception {
to "$VHOME/Maildir/.SPAM/"
}
}
Maildir/.mailfilter is there for 2 things -- a place to put custom filtering
rules (my partner and I are working on a SquirrelMail plugin to do this), and
to give some support for people transitioning from or using sqwebmail
This setup gives us some nice flexibility -- to turn on spamassassin, I just
have to drop the .spamc file in the user directory. To deliver to a SPAM
folder, just drop the .spamfolder into the user directory. I've been playing
with a squirrelmail plugin to let the user turn this all on or off.
>
> thanks, Iain.
You're welcome!
Dave