Author Topic: spamassassin & Junk folder  (Read 6200 times)

Offline juniew

  • Newbie
  • *
  • Posts: 2
spamassassin & Junk folder
« 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.

Offline jcortes

  • Newbie
  • *
  • Posts: 1
Re: spamassassin & Junk folder
« Reply #1 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)

Code: [Select]
require "fileinto";

if header :contains "from" "fax@segundo.plastecnia.cl" {
fileinto "Hylafax";
}

elsif header :contains "from" "fax@plastecnia.cl" {
fileinto "Hylafax";
}

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