what does your log say ?
i have a script which look like that except i try to use xfilter
"/usr/local/bin/deliverquota -w 90 $VHOME to keep the quota working (but
mail never arrived with deliverquota instead of to )

----- Original Message ----- 
From: "Remo Mattei" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 18, 2004 3:42 PM
Subject: [vchkpw] spamassassin + maildrop issue and suggestions...


> Hello guys I have a server which does recognize my header (spamassassin
> marks SPAM) however it never moves it to the directory called spam here is
> the mailfilter (which by the way works on a redhat box) this is a SuSE box
> and it does not put it on the spam folder thanks for any suggestions,
>
> PS yes I did check since I made the directory manually that there is a
spam
> folder under the user account.
>
> #!/bin/bash
> VPOP="|
/home/vpopmail/bin/vdelivermail'/home/vpopmail/domains/metoo.com/re"
> VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
>
> if ( $SIZE < 262144 )
> {
>         exception {
>                 xfilter "/usr/bin/spamc -f -u [EMAIL PROTECTED]"
>         }
> }
>
> 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"
>         }
> }
>
> Remo Mattei
> Network Security Engineer
> cell 801-808-unix
> email [EMAIL PROTECTED]
>
>
>
> Remo Mattei
> Network Security Engineer
> cell 801-808-unix
> email [EMAIL PROTECTED]
>
>

Reply via email to