[Dovecot] AntiSpam Plugin
Leander S.
leander.schaefer at googlemail.com
Thu Jul 29 00:21:29 EEST 2010
I did some closer research:
1. sa-learn script doesn't directly say something about "exit code 9" -
it must be linked with another file which I wasn't able to figure.
2. while experimenting with drag&drop in Thunderbird PLUS playing
arround with the configs I figured that my spam_count/ham_count values
where changing as I was drag&dropping ... But it's still givin exactly
the same erro as bevore when I try to move from INBOX to Spam folder:*
[SERVERBUG] failed to send mail.*
And from a neutral folder to the as 'unsure'declared folder Virus I get
the following Error in Thunderbird:* [CANNOT] Cannot copy to unsure folder.*
both times it exits exactly the same: "exit code 9"
... and worst: Mail is not being copied to the place where you dropped
it but stays in its old place OR even worse: sometimes mail is not even
only not copied but _lost_ .
I posted that one already, but here again:
The debug output I could find at /var/log/debug:
Jul 28 23:03:57 server imap: antispam: mailbox_is_unsure(Spam): 0
Jul 28 23:03:57 server imap: antispam: mailbox_is_trash(INBOX): 0
Jul 28 23:03:57 server imap: antispam: mailbox_is_trash(Spam): 0
Jul 28 23:03:57 server imap: antispam: mail copy: from trash: 0, to trash: 0
Jul 28 23:03:57 server imap: antispam: mailbox_is_spam(INBOX): 0
Jul 28 23:03:57 server imap: antispam: mailbox_is_spam(Spam): 1
Jul 28 23:03:57 server imap: antispam: mailbox_is_unsure(INBOX): 0
Jul 28 23:03:57 server imap: antispam: mail copy: src spam: 0, dst spam:
1, src unsure: 0
Jul 28 23:03:57 server imap: antispam: running mailtrain backend program
/usr/local/bin/sa-learn
Jul 28 23:03:57 server imap: antispam: running mailtrain backend program
/usr/local/bin/sa-learn
Jul 28 23:04:00 server imap: antispam: run program failed with exit code 9
and here my dovecot.conf:
server [~]# dovecot -n
# 1.2.13: /usr/local/etc/dovecot.conf
# OS: FreeBSD 8.1-RELEASE amd64 ufs
protocols: imap imaps pop3 pop3s managesieve
listen(default): *
listen(imap): *
listen(pop3): *
listen(managesieve): *:2000
ssl_cert_file: /etc/ssl/mail/mail.cert
ssl_key_file: /etc/ssl/mail/mail.key
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_executable(managesieve): /usr/local/libexec/dovecot/managesieve-login
login_greeting: home MailSystem
verbose_proctitle: yes
first_valid_uid: 2000
first_valid_gid: 2000
mail_privileged_group: mail
mail_location: maildir:/var/mail/%d/%n
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_executable(managesieve): /usr/local/libexec/dovecot/managesieve
mail_plugins(default): autocreate antispam
mail_plugins(imap): autocreate antispam
mail_plugins(pop3): quota
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
mail_plugin_dir(managesieve): /usr/local/lib/dovecot/managesieve
imap_client_workarounds(default): outlook-idle
imap_client_workarounds(imap): outlook-idle
imap_client_workarounds(pop3):
imap_client_workarounds(managesieve):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
managesieve_implementation_string(default): dovecot
managesieve_implementation_string(imap): dovecot
managesieve_implementation_string(pop3): dovecot
managesieve_implementation_string(managesieve): home
lda:
postmaster_address: admin at server.home
mail_plugins: sieve
log_path: /var/log/dovecot-deliver.log
info_log_path: /var/log/dovecot-deliver.log
auth default:
mechanisms: cram-md5
username_format: %Lu
passdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
userdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 384
user: dovecot
group: dovecot
plugin:
autocreate: Trash
autocreate2: Sent
autocreate3: Drafts
autocreate4: Spam
autocreate5: Virus
autosubscribe: Trash
autosubscribe2: Sent
autosubscribe3: Drafts
autosubscribe4: Spam
autosubscribe5: Virus
sieve: ~/.dovecot.sieve
sieve_dir: ~/sieve
sieve_global_path: /usr/local/etc/dovecot/sieve/default.sieve
antispam_signature: X-Spam-Status
antispam_signature_missing: move
antispam_mail_sendmail: /usr/local/bin/sa-learn
antispam_mail_sendmail_args: --username=%u
antispam_mail_spam: --spam
antispam_mail_notspam: --ham
antispam_mail_tmpdir: /tmp
antispam_spam: Spam
antispam_unsure: Virus
antispam_trash: Trash
server [~]#
Am 28.07.10 21:19, schrieb Steve:
> -------- Original-Nachricht --------
>> Datum: Wed, 28 Jul 2010 21:12:07 +0200
>> Von: "Leander S."<leander.schaefer at googlemail.com>
>> An: Dovecot Mailing List<dovecot at dovecot.org>,user+dovecot at localhost.localdomain.org,tom at whyscream.net
>> Betreff: Re: [Dovecot] AntiSpam Plugin
>>
>>
>>
>> On 07/28/2010 07:24 PM Leander S. wrote:
>>
>>>> …
>>>> Jul 28 18:51:40 server imap: antispam: running mailtrain backend
>> program
>>>> /usr/local/bin/sa-learn
>>>> Jul 28 18:51:40 server imap: antispam: running mailtrain backend
>> program
>>>> /usr/local/bin/sa-learn
>>>> Jul 28 18:51:41 server imap: antispam: run program failed with exit
>> code 9
>>>>
>>>>
>>>>
>>>> "run program failed with exit code 9" --> unfortunately is nothing
>>>> mentioned in the dovecot antspam man.
>>>> Antispam
>> manual:http://johannes.sipsolutions.net/files/antispam.html#lbAL
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Could anybody give me a hint where to look up this exit code? Or is
>>>> there a general meaning for exit codes?
>>>> i.e.: 0 means normal ; 5 internal error ; and 9 maybe means syntax
>> issue
>>>> ... or whatever ?!
>> /usr/local/bin/sa-learn returned exit code 9. So, check the fine
>> spamassassin documentation.
>>
>> ^^ I did - there is nothing mentioned about exit codes at all - except in
>> the spamc manual. But the spamc manual doesn't represent exit code 9.
>>
> Read the sa-learn file. It is just a Perl file and you should quickly see where it is failing and why. Alternatively run it in verbose mode to maybe get more detailed error reports.
>
>
>> Do you guys maybe have any idea what this could mean? How does your config
>> for antispam looks like - but I doubt there could be anything wrong in
>> mine.
>>
>> ... very weired ...
>>
>>
>>
>> Regards,
>> Leander
>>
>>
>>
>>
>>
>> Regards,
>> Pascal
>> -- The trapper recommends today:f007ba11.1020919 at localdomain.org
>>
More information about the dovecot
mailing list