spamassassin + procmail + dovecot

Hi all,

I need a help to configure procmail to redirect messages tagged as SPAM to Junk folder.

My system configuration is:

Opensuse 11.0
Postfix 2.5.1
Dovecot 1.0.13
Procmail 3.22
Spamassassin 3.2.4

And I tried to use the following configuration in procmail, but didn’t work:

:0:

  • ^X-Spam-Status: Yes
    $MAILDIR/.Junk

It create files with a different name format, different file stucture and new directories cur:2,Sb , new:2,Sb and tmp:2,Sb

Ex.

correct file name: 1244309351.24807_0.host:2,STc

$/home/user/Maildir/.Junk/cur/1244309351.24807_0.host:2,STc

wrong file name: msg.KAqi

$/home/user/Maildir/.Junk/msg.KAqi

A Maildir must end in a /, i.e. $MAILDIR/.Junk/

thanks,
now all work perfectly! :slight_smile:

now, you know how to teach the spamassassin by the client?
:|::shame:

I don’t use spamassassin myself. Where I have installed it for servers, it’s been part of the amavis virus and spam filtering process.

BrunoFurtado wrote:

> now, you know how to teach the spamassassin by the client?

Enable Bayes in SA, then create 2 folders (i.e., spam, nospam) on each user
inbox so they can drop messages there.

Then run “sa-learn --ham /path/to/imap/folder/nospam”
and “sa-learn --spam /path/to/imap/folder/spam”. You can put this task into
a cron task.

Bayesian filter needs at least thousand messages under /spam and /nospam in
order to be accurate.

I’d suggest to disable “autolearn”.

Some links:

http://wiki.apache.org/spamassassin/BayesFaq
http://spamassassin.apache.org/full/3.2.x/doc/sa-learn.html

Greetings,


Camaleón