Hi,
I run maildrop to sort spam into a special folder, but for some
reason, it doesn't take the domain/user/.qmail file into account for
autorespond etc. Perhaps vdelivermail requires an environment variable
which i could import? Does anyone know which one if so?
This is my (somewhat hackish) maildroprc:
----------------------------------------------------------
import EXT
import HOST
VPOPBIN="/var/lib/vpopmail/bin"
QMAILDIRMAKE="/var/qmail/bin/maildirmake"
VPOP="| /var/lib/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VUSERDIR=`$VPOPBIN/vuserinfo -d [EMAIL PROTECTED] | grep -v '^no such'`
`test -z $VUSERDIR`
if ($RETURNCODE == 0)
{
ALIASUSER=`$VPOPBIN/valias -s [EMAIL PROTECTED] | /usr/bin/awk -F' -> '
'{print $2}' | /bin/sed 's/^&//'`
VUSERDIR=`$VPOPBIN/vuserinfo -d $ALIASUSER`
}
VMAILDIR="$VUSERDIR/Maildir"
SPAMDIR="$VUSERDIR/Maildir/.Spam"
`test -d "$VUSERDIR/Maildir"`
if ($RETURNCODE == 1)
{
`exit 77`
}
logfile "/var/log/maildrop.log"
if (/^X-Spam-Status: *YES/)
{
`test -d $SPAMDIR`
if ($RETURNCODE == 1)
{
`/usr/bin/maildirmake.courier -f Spam $VMAILDIR && echo INBOX.Spam
>> $VMAILDIR/courierimapsubscribed`
}
to $SPAMDIR/
}
else
{
#to $VMAILDIR/
to "$VPOP"
}
!DSPAM:48109efd120509039189208!