Your .qmail-default would have:
|preline maildrop /etc/mailfilter

Then /etc/mailfilter something like:

VERBOSE=0
SHELL="/bin/sh"
PATH="/usr/bin:/usr/local/bin:/usr/include:/usr/local/sbin:/bin:/sbin:/u
sr/sbin"
MAILDIR="$HOME/Maildir"
SPAMDIR="$MAILDIR/.Spam"
DEFAULT="$MAILDIR"
# If Spamfilter is enabled then run the following:
if ( /^X-Spam-Status: Yes/:h )
{
   # This spam is to be disposed of
   `/usr/bin/test -d $SPAMDIR/new`
   if ( $RETURNCODE == 1 )
   {
        # Oops.  No Spamdir so lets make one.
        echo "Maildrop: No Spamdir so lets make one"
        `/usr/local/bin/maildirmake -f Spam $MAILDIR`
        if ( $RETURNCODE == 1 )
        {
             # If for some unknown reason maildirmake fails then just
deliver it
             echo "Maildrop: maildirmake failed - deliver normally"
             to "$DEFAULT"
        }
   }
   exception {
        to "$SPAMDIR"
   }
}
else
{
   exception {
        to "$DEFAULT"
   }
}

---
Ed Henderson, Managing Partner
Certainty Tech
http://www.certainty.net/


> -----Original Message-----
> From: Zachary Denison [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 25, 2004 5:04 PM
> To: CertaintyTech-Ed; [EMAIL PROTECTED]
> Subject: RE: [Qmail-scanner-general]seperate folder junkmail, 
> why so difficult?
> 
> 
> Thanks very much.  Is there someplace I can RTFM about
> this - I am assuming I would have to setup qmail to
> deliver to a program (i.e. deliveryProgramPath to
> /path/to/maildrop plus some arguments) and then set
> the deliveryMode to nolocal so maildrop would be the
> only agent.  Is this on the right track ?
> 
> 
> 
> 
> --- CertaintyTech-Ed <[EMAIL PROTECTED]>
> wrote:
> > > >Thanks so much!  This is exactly what I was
> > looking
> > > >for!  Is it possible to have spam moved to each
> > users
> > > >junkmail directory instead of a general
> > quarantine
> > > >folder?
> > > 
> > > Sorry, no. This works before the user delivery.
> > > 
> > > ST
> > > 
> > 
> > This can be accomplished easily during user delivery
> > using procmail or
> > maildrop.  I personally use maildrop.  Just look for
> > the "X-Spam-Status:
> > Yes" header and deliver message to their personal
> > Spam directory
> > otherwise deliver normally.
> > 
> > Ed.
> > 
> > 
> > 
> >
> -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux
> > Tutorials
> > Free Linux tutorial presented by Daniel Robbins,
> > President and CEO of
> > GenToo technologies. Learn everything from
> > fundamentals to system
> >
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > _______________________________________________
> > Qmail-scanner-general mailing list
> > [EMAIL PROTECTED]
> >
> https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance Tax Center - File online. File on time.
> http://taxes.yahoo.com/filing.html
> 



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to