Marcus Ilgner wrote:
> 
> I also found it a good practice to pass only small messages (<512KB)
> to SpamAssassin. Spam mail is usually quite small and thus this
> setting saves processing time and memory, especially if your users are
> prone to send large files via mail.
> 
> # send all messages < 512KB through spamassassin
> if ($SIZE < 524288)
> {
>        exception {
>                xfilter "/usr/bin/spamc"
>        }
> }

I agree with Bowie.  spamc has a default upper limit already.  Anything 
larger will be written to a file and then returned.  If you want to save 
yourself that disk I/O, you can use a rule like yours.  I suggest, 
however, that you specify the size limit so that you don't pass in the 
odd message larger than the default, but smaller than your limit:

SPAMSIZE=500000
if($SIZE < $SPAMSIZE)
{
        exception {
                xfilter "/usr/bin/spamc -s $SPAMSIZE"
                if(/^X-Spam-Status: Yes/)
                {
                        to ./Maildir/.Junk/.
                }
        }
}

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to