Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

maildrop and maildroprc problem

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


nemod79 at tiscali

Oct 14, 2003, 7:22 AM

Post #1 of 1 (741 views)
Permalink
maildrop and maildroprc problem

Hi to all , i'va a little problem :

i'm trying to use maildrop to discard (or store in a proper subdir) spam
mail detected with spamassassin run by qmail-scanner .

spamassassin works fine (it modify subject of spam mail).

I'm trying to set up maildrop to work under rc script for my qmail
installation (setted up following lifewithqmail specifications)

I'm running also vpopmail .

When i change rc script from :
#!/bin/sh

# Using stdout for logging
# Using control/defaultdelivery from qmail-local to deliver messages by
default

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`"

to

#!/bin/sh

# Using stdout for logging
# Using control/defaultdelivery from qmail-local to deliver messages by
default

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start '| /usr/local/bin/maildrop'

and create /etc/maildroprc

VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`


if (/^X-Spam-Flag: *YES/)
{
# try filtering it using user-defined rules
exception {
include $VHOME/Maildir/.mailfilter
}
# then try delivering it to a Spam folder
exception {
# to "$VPOP"
to "$VHOME/Maildir/.Spam/"
}
# ah well, I guess they'll just have to live with disappointment
exception {
to "$VPOP"
}
}
else
{
exception {
include $VHOME/Maildir/.mailfilter
}
exception {
to "$VPOP"
}
}

it seems that maildrop doesn't use this file . (delivery all to correct
mailbox , without redirecting spam to .Spam)

what i've missed up ?


ty

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.