[Dovecot] dovecot-antispam crm114 config
Hi list, Does anyone have a working crm114 config for dovecot-antispam? I have mailreaver running perfectly otherwise, but it doesn't seem to be called correctly from dovecot-antispam - the css files show no change. Piping a message to the command...
/usr/share/crm114/mailreaver.crm --good -u /shared/domains/domain.tld/users/pfern/.crm/
works as expected, and the logs don't indicate anything useful that I can see as to why it isn't working from dovecot.
Log follows:
Nov 11 12:56:48 mx0 dovecot: imap-login: Login: user=pfern@domain.tld,
method=PLAIN, rip=xxx.xxx.xxx.xxx, lip=xxx.xxx.xxx.xxx, TLS
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): Loading modules
from directory: /usr/lib64/dovecot/imap
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): Module loaded:
/usr/lib64/dovecot/imap/lib90_antispam_plugin.so
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): Effective
uid=xxxxx, gid=xxxxx, home=/shared/domains/domain.tld/users/pfern
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): antispam: plugin
initialising (unknown)
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): antispam: "trash"
is trash folder
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): antispam: "Trash"
is trash folder
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): antispam: "Deleted
Items" is trash folder
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): antispam: "-SPAM-"
is spam folder
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): antispam:
"-UNSURE-" is unsure folder
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): antispam: reaver
binary set to /usr/share/crm114/mailreaver.crm
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): antispam: reaver
extra arg -u
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): antispam: reaver
extra arg /shared/domains/domain.tld/users/pfern/.crm/
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): antispam: signature
header line is "X-CRM114-CacheID"
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): maildir:
data=/shared/domains/domain.tld/users/pfern/.maildir:INDEX=/var/lib/dovecot/indexes/domain.tld/p/pfern
Nov 11 12:56:48 mx0 dovecot: IMAP(pfern@domain.tld): maildir++:
root=/shared/domains/domain.tld/users/pfern/.maildir,
index=/var/lib/dovecot/indexes/domain.tld/p/pfern, control=,
inbox=/shared/domains/domain.tld/users/pfern/.maildir
Nov 11 12:56:56 mx0 dovecot: IMAP(pfern@domain.tld): antispam:
mailbox_is_unsure(INBOX.Noojee): 0
Nov 11 12:56:56 mx0 dovecot: IMAP(pfern@domain.tld): antispam:
mailbox_is_trash(-UNSURE-): 0
Nov 11 12:56:56 mx0 dovecot: IMAP(pfern@domain.tld): antispam:
mailbox_is_trash(INBOX.Noojee): 0
Nov 11 12:56:56 mx0 dovecot: IMAP(pfern@domain.tld): antispam: mail
copy: from trash: 0, to trash: 0
Nov 11 12:56:56 mx0 dovecot: IMAP(pfern@domain.tld): antispam:
mailbox_is_spam(-UNSURE-): 0
Nov 11 12:56:56 mx0 dovecot: IMAP(pfern@domain.tld): antispam:
mailbox_is_spam(INBOX.Noojee): 0
Nov 11 12:56:56 mx0 dovecot: IMAP(pfern@domain.tld): antispam:
mailbox_is_unsure(-UNSURE-): 1
Nov 11 12:56:56 mx0 dovecot: IMAP(pfern@domain.tld): antispam: mail
copy: src spam: 0, dst spam: 0, src unsure: 1
works as expected, and the logs don't indicate anything useful that I can see as to why it isn't working from dovecot.
Log follows:
[snipped]
the log doesn't indicate which plugin version you are using, can you make sure you're using 1.1? There was a debugging code error in some versions that lead to a failure in calling the reaver binary. Are you getting errors in your mail client saying "Failed to call reaver"?
johannes
Johannes Berg wrote:
the log doesn't indicate which plugin version you are using, can you make sure you're using 1.1? There was a debugging code error in some versions that lead to a failure in calling the reaver binary. Are you getting errors in your mail client saying "Failed to call reaver"?
johannes
I'm on Gentoo, the last version in portage was git-20080829, have upgraded to 1.1 and everything is working as expected, will submit an updated ebuild to bugs.gentoo, thanks Johannes!
Pete
On Wed, 2008-11-12 at 08:38 +1100, Peter Fern wrote:
I'm on Gentoo, the last version in portage was git-20080829, have upgraded to 1.1 and everything is working as expected, will submit an updated ebuild to bugs.gentoo, thanks Johannes!
Alright, cool. Sorry for not noticing that bug when I wrote that code, somehow I didn't realise I was using the API wrongly.
johannes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 11 Nov 2008, Peter Fern wrote:
Does anyone have a working crm114 config for dovecot-antispam? I have
to debug antispam backends that spawns another program I recommend to replace the call with a shell script, e.g.:
#!/bin/bash
tmpf=/tmp/antispam.log.$$
( date id let i=0 for arg; do let i=1+i echo "arg $i $arg" done cat - > $tmpf.msg command "$@" < $tmpf.msg rc=$? echo rc=$rc date exit $rc ) 2> $tmpf.err > $tmpf.log
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFJGXKNVJMDrex4hCIRAmreAJsGwVRLtHUxuu+REg8oG5t9IK2g+QCfcRqs RO+S8EKIoSXx24GQ3miUY+0= =Y3PO -----END PGP SIGNATURE-----
participants (3)
-
Johannes Berg
-
Peter Fern
-
Steffen Kaiser