On Tue, 30 Dec 2003, Jon Nelson wrote:

> You are problably running spamassasin incorrectly.
> How are you running it in .mailfilters  *exactly*?
> You need to use it like this:
>
> exception {
>   xfilter "/usr/bin/spamassassin --local"
> }
>
> (I suppose you could use spamc, it's faster, but also kinda scary).


I am using it like this:


exception {
# filter message
if ( $SIZE < 512000 )
{
        xfilter "/usr/pkg/bin/spamc"
}

}


# filter message
if ( $SIZE < 129000 )
{
        if ( /^X-Spam-Level:
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/ )
        {
                log "%% Utter spam rejected %%"
                cc "/home/mail/spam/Maildir"
                EXITCODE=0
                exit
        }


        if( /X-Spam-Level: \*\*\*\*\*+/)
        {
                cc "/home/mail/spam/Maildir"
        }
        else
        {
                if( /X-Spam-Level: \*\*?\*?$/ && !(/X-Spam-Flag: YES/))
                {
                        cc "/home/mail/ham/Maildir"
                }
        }
}
else
{
        if ( /^X-Spam-Level:
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/ )
        {
                log "%% Utter spam rejected %%"
                EXITCODE=0
                exit
        }
}




#EXITCODE 0
to "$DEFAULT"





>
>
> On Tue, 30 Dec 2003, Joe Laffey wrote:
>
> > On Tue, 30 Dec 2003, Jon Nelson wrote:
> >
> > > On Tue, 30 Dec 2003, Joe Laffey wrote:
> > >
> > > > Any way to stop DSNs from messages spamassassin decides are spam?
> > >
> > > Er, how are you using spamassassin?  How are DSNs and spamassassin
> > > connected?
> > >
> >
> > Calling SA from .mailfilter per user. I am still seeing DSNs go out from
> > incoming spam messages. I guess I do not understand precisely how DSNs
> > work.
> >
> > Like this:
> >
> > Dec 30 14:25:52 raw courierd: Waiting.  shutdown time=none, wakeup
> > time=Tue Dec 30 14:26:26 2003, queuedelivering=3, inprogress=1
> > Dec 30 14:25:53 raw courieresmtp:
> > id=002DD216.3FF1DF50.00003B15,from=<>,addr=<[EMAIL PROTECTED]>:
> > 250 2.0.0 hBULhlZ07971 Message accepted for delivery
> > Dec 30 14:25:53 raw courieresmtp:
> > id=002DD216.3FF1DF50.00003B15,from=<>,addr=<[EMAIL PROTECTED]>,size=7703,success:
> > delivered: mail.quickresponder.net [66.36.255.20]
> > Dec 30 14:25:53 raw courieresmtp:
> > id=002DD216.3FF1DF50.00003B15,from=<>,addr=<[EMAIL PROTECTED]>,size=7703,status:
> > success
> > Dec 30 14:25:53 raw courierd: completed,id=002DD216.3FF1DF50.00003B15
> >
> >
> > Is that not a DSN? That message was rejected by SA in .mailfilter and the
> > .mailfilter returned exitcode 0; exit without delivery. (except it may
> > have been cc'd (NOT to) into my spam trove I sort through periodically to
> > feed sa-learn bayes).
> >
> > Any insight would be appreciated.
> >
> > Thanks,
> >
> > --
> > Joe Laffey              |  Want to convert subnet masks between different
> > LAFFEY Computer Imaging |  notations, or figure the number of IPs in a block?
> > St. Louis, MO           |  Whatmask - It's FREE (GPL) - NEW Version 1.2!
> > USA                     |  http://www.laffeycomputer.com/wm.html
> > ------------------------------------------------------------------------------
> > Mail here will be rejected  -----> "Sigfried Trap" <[EMAIL PROTECTED]>
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IBM Linux Tutorials.
> > Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> > Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> > _______________________________________________
> > courier-users mailing list
> > [EMAIL PROTECTED]
> > Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
> >
> >
>
> --
> Ensign Walnut approaches Dr. Crusher with caution...
>
> Jon Nelson <[EMAIL PROTECTED]>
> C and Python Code Gardener
>

--
Joe Laffey              |  Want to convert subnet masks between different
LAFFEY Computer Imaging |  notations, or figure the number of IPs in a block?
St. Louis, MO           |  Whatmask - It's FREE (GPL) - NEW Version 1.2!
USA                     |  http://www.laffeycomputer.com/wm.html
------------------------------------------------------------------------------
Mail here will be rejected  -----> "Sigfried Trap" <[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to