Hi,
[sorry for the double posting, Gordon. Sometimes Google Mail just
doesn't get it when replying to mailing lists]
On Thu, Jul 10, 2008 at 9:59 PM, Gordon Messmer <[EMAIL PROTECTED]> wrote:
> FM wrote:
>>
>> I just read about the courierd file that can be used for system wide
>> spam filtering :
>>
>> DEFAULTDELIVERY="|/usr/bin/spamc|/usr/bin/maildrop"
>>
>> So it would be a one time config instead of creating a .mailfilter file
>> each time a user is created.
>
> As Bowie said, you can use /etc/courier/maildroprc to avoid setting up a
> file for each user.
>
>> Is there perfomance improvement when using courierd file instead of
>> .mailfilter ?
>
> Nothing that you'd notice.
>
>> our .mailfilter are basic :
>> xfilter "/usr/bin/spamc"
>>
>> if(/^X-Spam-Status: Yes/)
>> to Maildir/.Junk/
>
> I suggest a minor modification for use in a global config file:
>
> xfilter "/usr/bin/spamc"
> exception {
> if(/^X-Spam-Status: Yes/)
> {
> to ./Maildir/.Junk/.
> }
> }
>
> The exception will allow mail to be delivered to the DEFAULT location if
> the Junk folder doesn't exist.
>
> Some Unix systems (Mac OS, notably) treat paths with trailing slashes as
> invalid paths, so it's a good habit to end the path in with the '.'
> character.
>
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"
}
}
Best regards
Marcus
-------------------------------------------------------------------------
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