Q: Global Sieve Script to move Junk mail (Snow Leopard Server)
I want to setup a global sieve script to move junk mail, marked by Spamassassin, to the user's Junk folder server side. The problem with client side is, clients like the iPhone have no filtering ability and are flooded with Junk mail when a client like Mail.app is running.
Setting email rules via the "EmailRules" built-in wiki/blog/calendar interface works. Custom rules and vacation rules.
The documentation seems weak, Snow Leopard Server uses outdated programs, so trying to go by Linux-based howtos is often pointless.
Can anyone explain to me how I would go about setting a global sieve script in Snow Leopard Server (using the default dovecot/postfix mail setup), to filter Junk mail to a user's Junk folder automatically.
Here is the sieve script I want to use
require \["relational", "comparator-i;ascii-numeric", "fileinto"\];
if allof (not header :contains "X-Spam-Score" "-", header :value "ge" :comparator "i;ascii-numeric" "X-Spam-Score" "4.5")
{ fileinto ".Junk"; }
I've added "add_header spam Score SCORE" to my /etc/mail/spamassassin/local.cf
Message was edited by: Joe Roback
Setting email rules via the "EmailRules" built-in wiki/blog/calendar interface works. Custom rules and vacation rules.
The documentation seems weak, Snow Leopard Server uses outdated programs, so trying to go by Linux-based howtos is often pointless.
Can anyone explain to me how I would go about setting a global sieve script in Snow Leopard Server (using the default dovecot/postfix mail setup), to filter Junk mail to a user's Junk folder automatically.
Here is the sieve script I want to use
require \["relational", "comparator-i;ascii-numeric", "fileinto"\];
if allof (not header :contains "X-Spam-Score" "-", header :value "ge" :comparator "i;ascii-numeric" "X-Spam-Score" "4.5")
{ fileinto ".Junk"; }
I've added "add_header spam Score SCORE" to my /etc/mail/spamassassin/local.cf
Message was edited by: Joe Roback
MacBook Pro (17-inch 3.06Ghz/8GB/X25-M 160GB G2), Mac OS X (10.6.2), Ubuntu Linux (9.10) on 8-core Intel Xeon (Harpertown), Mac Mini Server
Posted on Feb 8, 2010 10:28 AM