procmail piping to vdelivermail
I'm not quite sure what's happening here I've seen a lot of posts doing the same thing as me, but I'm having no luck! But what I need is to have this thing pipe through spamassassin and then come back w/ a valid Deliver-to: address. I tried:
|preline| procmail -t ./postmaster/.procmailrc
but preline is adding a messed up Deliver to:
(looks like Deliver_to:$DOMAIN-$USER@$DOMAIN)
so I dropped the idea of preline, unless someone knows what's going on with that.
Anyways I would prefer to have procmail run and drop the stuff into vdelivermail so shouldn't this work..
.procmailrc file
------------------
:0fw
| /usr/bin/spamassassin -P -p /www/hosts/acolyte.net/html/user_prefs -C ./.spamassassin/
:0e
{
EXITCODE=$?
}
### DELIVER SPAM
:0
* ^X-Spam-Status: Yes
| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/$DOMAIN/postmaster.spam
### DELIVER CLEAN
:0
*
| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/$DOMAIN/postmaster
*----------------*
if I put folders in the place of the vdelivermail calls it works, but it just lags and does nothing if I put it in as above?
Thanks for the help guys!
|