Roundcube Community Forum

Recycle Bin => Recycle Bin => Topic started by: juniew on April 25, 2007, 12:50:11 PM

Title: spamassassin & Junk folder
Post by: juniew on April 25, 2007, 12:50:11 PM
I have been searching this forum for an answer without luck. Does anyone know how to configure spamassassin to send spam to the junkmail folder in RoundCube?

Thanks all for your help.
Title: Re: spamassassin & Junk folder
Post by: jcortes on April 26, 2007, 09:53:59 AM
you must configure a sieve script, i just doing it with cyrus deliverer and sieve scripting :

here an example from a sieve script to filter some mails and spam.

(this works for altnamespace=yes in /etc/imapd.conf)

require "fileinto";

if header :contains "from" "[email protected]" {
fileinto "Hylafax";
}

elsif header :contains "from" "[email protected]" {
fileinto "Hylafax";
}

elsif header :contains "X-Spam-Flag" "YES" {
fileinto "SPAM";
}