Tak you guys for your quick responce. I have it up and running now, only time will tell how well it works.
Here is what I did to make it work:
First of all enable spamassassin:
#config setprop spamassassin status enabled
#config setprop spamassassin UseBayes 1
#config setprop spamassassin BayesAutoLearnThresholdSpam 12.00
#config setprop spamassassin BayesAutoLearnThresholdNonspam 0.10
#expand-template /etc/mail/spamassassin/local.cf
#sa-learn --sync --dbpath /var/spool/spamd/.spamassassin -u spamd
#chown spamd.spamd /var/spool/spamd/.spamassassin/bayes_*
#chmod 750 /var/spool/spamd/.spamassassin/bayes_*
#chown spamd.spamd /var/spool/spamd/.spamassassin/bayes.mutex
#config setprop spamassassin RejectLevel 12
#config setprop spamassassin TagLevel 5
#config setprop spamassassin Sensitivity custom
I like this manual approach because one is not dependent on a contrib being available.
#signal-event post-upgrade && signal-event reboot
Then downloaded the pearl scripts.
curl -o /usr/bin/LearnAsSpam.pl
http://bugs.contribs.org/attachment.cgi?id=1227curl -o /usr/bin/LearnAsHam.pl
http://bugs.contribs.org/attachment.cgi?id=1229curl -o /etc/cron.d/LearnAsSpam.cron
http://bugs.contribs.org/attachment.cgi?id=1231curl -o /etc/cron.d/LearnAsHam.cron
http://bugs.contribs.org/attachment.cgi?id=1232Created the folders LearnAsHam and LearnAsSpam in the users imap account and copied some mails to them.
Checked the admin's mailboks for status mails and voila it works, no mails when there is noting to do and some when mails are processed, just beautiful.