Roundcube Community Forum

 

spamassassin & Junk folder

Started by juniew, April 25, 2007, 12:50:11 PM

Previous topic - Next topic

juniew

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.

jcortes

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";
}