Re: Procmail in Vmailmgr

ChuanWee <[email protected]> Wed, 22 Feb 2006 09:52:46 +0800
Newsgroups gmane.mail.vmailmgr
Message-ID <[email protected]>
Hi Josh,

Your approach would work fine accept that it bypass the vdeliver-predeliver 
and vdeliver-postdeliver scripts which are needed for quota check and 
autoreply.

Do you think its possible that in the procmailrc, for mails that are not spam, 
to pass it on to vdeliver for the normal Vmailmgr processing? 

I have tried but unable to make it work...

If my idea works, then I would probably call procmail first in .qmail-default, 
then thru procmail pass it on to vdeliver.

cheers
ChuanWee

On Tuesday February 21 2006 pm 20:50, Josh Trutwin wrote:
> Here's what I do - I doubt it's the best approach, but it works:
>
> Inside domainxyz.com's control account home dir there is the
>
> .qmail-josh file for [email protected] (all on one line):
> | /var/qmail/bin/preline /usr/bin/procmail
>
> /usr/local/sites/www.domainxyz.com/users
> /josh/.procmailrc
>
> Here's the .procmailrc file (I filter on X-Spam-Level):
>
> HOME=/usr/local/sites/www.domainxyz.com/users/josh
> #LOGFILE=$HOME/.procmaillog
> #VERBOSE=yes
> MAILDIR=$HOME
> LANG=en_US
> DROPPRIVS=yes # don't run procmail as root
>
> # Mails with a score of 10 or higher are almost certainly spam (with 0.05%
> # false positives according to rules/STATISTICS.txt). Let's put them in a
> # different folder.
>
> :0:$HOME/.procmail.lock
>
> * ^X-Spam-Level: \*\*\*\*\*
>
> |/usr/local/bin/maildir $MAILDIR/.SPAM
>
> # could also send to /dev/null
>
> # other rules here
>
> # Default rule, send message to INBOX
>
> :0:$HOME/.procmail.lock
> :
> |/usr/local/bin/maildir $MAILDIR
>
> /usr/local/bin/maildir is a C program I found here:
>
> http://www.ornl.gov/lists/mailing-lists/qmail/1997/11/msg00454.html
>
> I doubt I need this anymore, but it works so I'm not going to change
> it.  :)
>
> Any tips appreciated.
>
> Thanks,
>
> Josh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]