Thanks everyone for helping! I got it to redirect to a different email
account. Now I just need to learn more about scripting the mailfilter and
SA options. Two links that will hopefully help me learn more and for
reference:

http://www.flounder.net/~mrsam/maildrop/maildropfilter.html

and

http://www.spamassassin.org/doc/Mail_SpamAssassin_Conf.html

Thanks again!
Robert

>
>
>> -----Original Message-----
>> From: Robert Bartlett [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, June 16, 2004 11:07 AM
>> To: Duncan Hill
>> Cc: [EMAIL PROTECTED]
>> Subject: Re: Forwarding Spam emails
>>
>>
>> Im using Qmail with Maildrop. So configure maildrop to
>> control it when tagged? Can you point me in the right
>> direction in obtaining the information to do this?
>>
>
> My documentation in spamd/README.vpopmail located in your
> Mail-SpamAssassin-2.6.3.tar.gz bundle should help you there.
>
> I dunno if you are running vpopmail or not, but my mailfilter setup
> currently looks like this..
>
> [EMAIL PROTECTED] domains]# cat engelken.net/.qmail-default
> | maildrop ../mailfilter
>
> [EMAIL PROTECTED] domains]# cat mailfilter
> VPOP="| /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
> VHOME=`/var/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
>
> `test -d $VHOME/Maildir`
> if ( $RETURNCODE == 1 )
> {
>    echo "Sorry, no mailbox here by that name. (#5.1.1)"
>    EXITCODE=100
>    exit
> }
>
> `test -d $VHOME/Maildir/.Spam`
> if ( $RETURNCODE == 1 )
> {
>    `/usr/local/bin/maildirmake -f Spam $VHOME/Maildir`
>    `echo Inbox.Spam >> $VHOME/Maildir/courierimapsubscribed`
> }
>
> if (/^X-Spam-Flag: *YES/)
> {
>         exception {
>                 include $VHOME/Maildir/.mailfilter
>         }
>         exception {
>                 to "$VHOME/Maildir/.Spam"
>                 exit
>         }
>         exception {
>                 to "$VPOP"
>                 exit
>         }
> }
> else
> {
>         exception {
>                 include $VHOME/Maildir/.mailfilter
>         }
>         exception {
>                 to "$VPOP"
>                 exit
>         }
> }
> exit
>
> Dallas
>


Reply via email to