Koozali.org: home of the SME Server

Zarafa and Spam

Offline azche24

  • *
  • 163
  • +0/-0
    • http://az-law.de
Zarafa and Spam
« on: October 29, 2012, 12:45:49 PM »
After i installed Zarafa on SME 8.0 (and enabled Baysian-Learning) described in the howtos, the spam-rejection on smtp-level (enabled in config database) does not seem to work any more. The junkmail-folders of zarafa-enabled users receive Spam with scores or more than 20, which should not be the case.

How can i make this work again? And how is it possible to sort away the obvious spam (e.g. score > 20) to a place the zarafa-enabled users do not see it any more (or even delete it). This problem occurs, because outlook is not able to hide these folders an my users are very irritated by these masses of spam in their folders.
Alexander Ziemann, Berlin - DE

Offline azche24

  • *
  • 163
  • +0/-0
    • http://az-law.de
Re: Zarafa and Spam
« Reply #1 on: November 30, 2013, 12:00:47 PM »
For some reason the Zarafa Spamassassin integration does not work at all. I installed the perl-script and made config-files according to http://wiki.contribs.org/Zarafa_Bayesian_Learning and now i get this:

Quote
[root@server bin]# sh  /usr/bin/DMZS-sa-learn.pl
/usr/bin/DMZS-sa-learn.pl: line 9: use: command not found
/usr/bin/DMZS-sa-learn.pl: line 11: my: command not found
/usr/bin/DMZS-sa-learn.pl: line 12: my: command not found
/usr/bin/DMZS-sa-learn.pl: line 16: syntax error near unexpected token `('
/usr/bin/DMZS-sa-learn.pl: line 16: `my $imap = Mail::IMAPClient->new( Server=> '127.0.0.1:8143','

What is wrong here? The variables are not recognized at all.
Alexander Ziemann, Berlin - DE

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Zarafa and Spam
« Reply #2 on: November 30, 2013, 12:21:36 PM »
you are using sh to run a perl script :-)

Offline azche24

  • *
  • 163
  • +0/-0
    • http://az-law.de
Re: Zarafa and Spam
« Reply #3 on: November 30, 2013, 12:40:30 PM »
Thx Stefano, now i was able to test it (and figure out, that "SpamAdmin" should be a "real-world-user", which was pretty unclear to me after reading the wiki.

Sorry for being uncommon with shell and perl - the perl magic did it! :oops:
Alexander Ziemann, Berlin - DE