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.

-------------------------------------------------------------------------
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