P.S. I just tried it with 1.2.13 as well - still the same issue. Am I doing something wrong, or is this really a bug now!?
Best Regards Leander S.
Hi,
Has anyone got the chance to get this running? I'm permanently getting this Serverbug error ... ;(
*"[SERVERBUG] failed to send email"*
... This happens when I try to drag&drop mails from one to the other folder within a IMAP-session. What version of Dovecot must I have to get this plugin working? Or will it generally be broken in upcoming new releases of Dovecot?
Best Regards Leander S.
On 28/07/10 16:40, Leander S. wrote:
Has anyone got the chance to get this running? I'm permanently getting this Serverbug error ... ;(
Lots of people on this list are running antispam plugin without issues.
Please post latest config of your dovecot 1.2.13 setup, and relevant log entries. It seems sa-learn returns some error code when called.
-- Regards, Tom
Hi,
thanks for your reply. Yes I also thought so - but the thing unfortunatley doesn't wanna run on my machine no matter what recent version I tried ;/
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_debug: yes 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@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_mail_sendmail: /usr/local/bin/sa-learn antispam_mail_spam: --spam antispam_mail_notspam: --ham antispam_mail_tmpdir: /tmp antispam_spam_pattern_ignorecase: Spam;Junk antispam_trash_pattern_ignorecase: Trash;Deleted *
server [~]#
And here is my log output - but unfortunately am I not getting any sa-learn error there ...
server [~]# cat /var/log/maillog Jul 28 16:58:58 server dovecot: imap-login: Login: user=admin@home.gotdns.com, method=CRAM-MD5, rip=84.157.141.86, lip=192.168.1.100, TLS Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): Loading modules from directory: /usr/local/lib/dovecot/imap Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): Module loaded: /usr/local/lib/dovecot/imap/lib20_autocreate_plugin.so Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): Module loaded: /usr/local/lib/dovecot/imap/lib90_antispam_plugin.so Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): Effective uid=2000, gid=2000, home=(none) Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): maildir: data=/usr/local/www/home/admin/mail/admin@home.gotdns.com/ Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): maildir++: root=/usr/local/www/home/admin/mail/admin@home.gotdns.com, index=, control=, inbox=/usr/local/www/home/admin/mail/admin@home.gotdns.com Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): Namespace : Using permissions from /usr/local/www/home/admin/mail/admin@home.gotdns.com: mode=0700 gid=-1
server [~]# ls -lach ./maildir/ total 114 drwx------ 11 2000 wheel 512B Jul 28 16:59 . drwxrwx--- 3 2000 wheel 512B Jul 25 01:35 .. drwx------ 5 2000 wheel 512B Jul 28 16:59 .Drafts drwx------ 5 2000 wheel 512B Jul 28 16:59 .Sent drwx------ 5 2000 wheel 512B Jul 28 16:59 .Spam drwx------ 5 2000 wheel 512B Jul 28 17:00 .Trash drwx------ 5 2000 wheel 512B Jul 28 17:00 .Virus drwx------ 2 2000 wheel 512B Jul 28 16:58 cur -rw------- 1 2000 wheel 10B Jul 25 01:36 dovecot-keywords -rw------- 1 2000 wheel 142B Jul 28 16:45 dovecot-uidlist -rw------- 1 2000 wheel 8B Jul 25 01:37 dovecot-uidvalidity -rw------- 1 2000 wheel 0B Jul 25 01:37 dovecot-uidvalidity.4c4b6df5 -rw------- 1 2000 wheel 3.0K Jul 27 13:59 dovecot.index -rw------- 1 2000 wheel 64K Jul 28 16:44 dovecot.index.cache -rw------- 1 2000 wheel 14K Jul 28 16:59 dovecot.index.log drwx------ 2 2000 wheel 512B Jul 28 13:08 new drwxrwxrwx 2 2000 wheel 512B Jul 25 02:20 sieve -rw------- 1 2000 wheel 35B Jul 25 03:37 subscriptions drwx------ 2 2000 wheel 512B Jul 28 16:59 tmp server [~]#
Thanks & Best Regards Leander
Am 28.07.10 17:02, schrieb Tom Hendrikx:
On 28/07/10 16:40, Leander S. wrote:
Has anyone got the chance to get this running? I'm permanently getting this Serverbug error ... ;(
Lots of people on this list are running antispam plugin without issues.
Please post latest config of your dovecot 1.2.13 setup, and relevant log entries. It seems sa-learn returns some error code when called.
-- Regards, Tom
Hi,
thanks for your reply. Yes I also thought so - but the thing unfortunatley doesn't wanna run on my machine no matter what recent version I tried ;/
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_debug: yes 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@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_mail_sendmail: /usr/local/bin/sa-learn antispam_mail_spam: --spam antispam_mail_notspam: --ham antispam_mail_tmpdir: /tmp antispam_spam_pattern_ignorecase: Spam;Junk antispam_trash_pattern_ignorecase: Trash;Deleted *
server [~]#
And here is my log output - but unfortunately am I not getting any sa-learn error there ...
server [~]# cat /var/log/maillog Jul 28 16:58:58 server dovecot: imap-login: Login: user=admin@home.gotdns.com, method=CRAM-MD5, rip=84.157.141.86, lip=192.168.1.100, TLS Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): Loading modules from directory: /usr/local/lib/dovecot/imap Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): Module loaded: /usr/local/lib/dovecot/imap/lib20_autocreate_plugin.so Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): Module loaded: /usr/local/lib/dovecot/imap/lib90_antispam_plugin.so Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): Effective uid=2000, gid=2000, home=(none) Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): maildir: data=/usr/local/www/home/admin/mail/admin@home.gotdns.com/ Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): maildir++: root=/usr/local/www/home/admin/mail/admin@home.gotdns.com, index=, control=, inbox=/usr/local/www/home/admin/mail/admin@home.gotdns.com Jul 28 16:58:58 server dovecot: IMAP(admin@home.gotdns.com): Namespace : Using permissions from /usr/local/www/home/admin/mail/admin@home.gotdns.com: mode=0700 gid=-1
server [~]# ls -lach ./maildir/ total 114 drwx------ 11 2000 wheel 512B Jul 28 16:59 . drwxrwx--- 3 2000 wheel 512B Jul 25 01:35 .. drwx------ 5 2000 wheel 512B Jul 28 16:59 .Drafts drwx------ 5 2000 wheel 512B Jul 28 16:59 .Sent drwx------ 5 2000 wheel 512B Jul 28 16:59 .Spam drwx------ 5 2000 wheel 512B Jul 28 17:00 .Trash drwx------ 5 2000 wheel 512B Jul 28 17:00 .Virus drwx------ 2 2000 wheel 512B Jul 28 16:58 cur -rw------- 1 2000 wheel 10B Jul 25 01:36 dovecot-keywords -rw------- 1 2000 wheel 142B Jul 28 16:45 dovecot-uidlist -rw------- 1 2000 wheel 8B Jul 25 01:37 dovecot-uidvalidity -rw------- 1 2000 wheel 0B Jul 25 01:37 dovecot-uidvalidity.4c4b6df5 -rw------- 1 2000 wheel 3.0K Jul 27 13:59 dovecot.index -rw------- 1 2000 wheel 64K Jul 28 16:44 dovecot.index.cache -rw------- 1 2000 wheel 14K Jul 28 16:59 dovecot.index.log drwx------ 2 2000 wheel 512B Jul 28 13:08 new drwxrwxrwx 2 2000 wheel 512B Jul 25 02:20 sieve -rw------- 1 2000 wheel 35B Jul 25 03:37 subscriptions drwx------ 2 2000 wheel 512B Jul 28 16:59 tmp server [~]#
Thanks & Best Regards Leander
Am 28.07.10 17:02, schrieb Tom Hendrikx:
On 28/07/10 16:40, Leander S. wrote:
Has anyone got the chance to get this running? I'm permanently getting this Serverbug error ... ;(
Lots of people on this list are running antispam plugin without issues.
Please post latest config of your dovecot 1.2.13 setup, and relevant log entries. It seems sa-learn returns some error code when called.
-- Regards, Tom
I was now only able to get some more interesting log file:
Jul 28 18:51:27 server imap: antispam: plugin initialising (1.2-notgit) Jul 28 18:51:27 server imap: antispam: "Trash" is exact match trash folder Jul 28 18:51:27 server imap: antispam: "Spam" is exact match spam folder Jul 28 18:51:27 server imap: antispam: "Virus" is exact match unsure folder Jul 28 18:51:27 server imap: antispam: mail backend spam address --spam Jul 28 18:51:27 server imap: antispam: mail backend not-spam address --ham Jul 28 18:51:27 server imap: antispam: mail backend sendmail /usr/local/bin/sa-learn Jul 28 18:51:27 server imap: antispam: mail backend tmpdir /tmp Jul 28 18:51:40 server imap: antispam: mailbox_is_unsure(Spam): 0 Jul 28 18:51:40 server imap: antispam: mailbox_is_trash(INBOX): 0 Jul 28 18:51:40 server imap: antispam: mailbox_is_trash(Spam): 0 Jul 28 18:51:40 server imap: antispam: mail copy: from trash: 0, to trash: 0 Jul 28 18:51:40 server imap: antispam: mailbox_is_spam(INBOX): 0 Jul 28 18:51:40 server imap: antispam: mailbox_is_spam(Spam): 1 Jul 28 18:51:40 server imap: antispam: mailbox_is_unsure(INBOX): 0 Jul 28 18:51:40 server imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 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 ?!
Thanks in advance & Regards
Leander
2
Am 28.07.10 17:02, schrieb Tom Hendrikx:
On 28/07/10 16:40, Leander S. wrote:
Has anyone got the chance to get this running? I'm permanently getting this Serverbug error ... ;(
Lots of people on this list are running antispam plugin without issues.
Please post latest config of your dovecot 1.2.13 setup, and relevant log entries. It seems sa-learn returns some error code when called.
-- Regards, Tom
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.
Regards, Pascal
The trapper recommends today: f007ba11.1020919@localdomain.org
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.
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@localdomain.org
-------- Original-Nachricht --------
Datum: Wed, 28 Jul 2010 21:12:07 +0200 Von: "Leander S." leander.schaefer@googlemail.com An: Dovecot Mailing List dovecot@dovecot.org, user+dovecot@localhost.localdomain.org, tom@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@localdomain.org
--
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
I did some closer research:
- 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.
- 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@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@googlemail.com An: Dovecot Mailing Listdovecot@dovecot.org,user+dovecot@localhost.localdomain.org,tom@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@localdomain.org
Figure out exactly what script is running and see if it says why it would return with a status of 9. If that is because of a SIGKILL, it is because some process is sending that signal. You are gonna get to figure out what debug knobs to crank to figure out why this is going on.
Can you invoke any of this stuff manually from the command line to see what messages may come up?
h
Am 28.07.10 23:43, schrieb Harlan Stenn:
Figure out exactly what script is running and see if it says why it would return with a status of 9. If that is because of a SIGKILL, it is because some process is sending that signal. You are gonna get to figure out what debug knobs to crank to figure out why this is going on.
Can you invoke any of this stuff manually from the command line to see what messages may come up?
h
Hi,
unfortunately I still wasn't able to figure out what's going on. I tried to debug the sa-learn perl script and I wasn't able to find any hint to that code. (I'm not a beginner) But I guess that this is not an issue of sa-learn. Why? Because sa-learn does as I asked it to. sa-learn writes everything into the SQL DB as wanted - but the mail is not being copied to the destination plus the dovecot server returns the old known [SERVERBUG] message to Thunderbird. I obviously also tried:
server [~]# sa-learn --username=admin@mydom.com --spam /var/mail/admin/.Spam/ Learned tokens from 0 message(s) (2 message(s) examined) server [~]#
"Learned tokens from 0" because it has learnd from Dovecot antispam already. If I reset SQL values it would learn again.
Here is my debug.log output again.
Aug 3 22:16:29 server imap: antispam: plugin initialising (1.2-notgit) Aug 3 22:16:29 server imap: antispam: "Trash" is exact match trash folder Aug 3 22:16:29 server imap: antispam: "Spam" is exact match spam folder Aug 3 22:16:29 server imap: antispam: "Virus" is exact match unsure folder Aug 3 22:16:29 server imap: antispam: mail backend spam address --spam Aug 3 22:16:29 server imap: antispam: mail backend not-spam address --ham Aug 3 22:16:29 server imap: antispam: mail backend sendmail /usr/local/bin/sa-learn Aug 3 22:16:29 server imap: antispam: mail backend sendmail arg --username=admin@mydom.com --debug all Aug 3 22:16:29 server imap: antispam: mail backend tmpdir /tmp Aug 3 22:16:34 server imap: antispam: mailbox_is_unsure(Spam): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_trash(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_trash(Spam): 0 Aug 3 22:16:34 server imap: antispam: mail copy: from trash: 0, to trash: 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_spam(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_spam(Spam): 1 Aug 3 22:16:34 server imap: antispam: mailbox_is_unsure(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Aug 3 22:16:34 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 22:16:34 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 22:16:38 server imap: antispam: run program failed with exit code 9
Those are my Antispam options from dovecot.conf:
[...] ### Dovecot AntiSpam ### # mail signature (used with any backend requiring a signature) #antispam_signature = X-Spam-Status #antispam_signature_missing = move
antispam_mail_sendmail = /usr/local/bin/sa-learn
antispam_mail_sendmail_args = --username=%u --debug all
antispam_mail_spam = --spam
antispam_mail_notspam = --ham
antispam_mail_tmpdir = /tmp
antispam_spam = Spam
antispam_unsure = Virus
antispam_trash = Trash
[...]
Even --debug all doesn't help a thing ;( I tried my luck enabeling all this Dovecot debug knobs:
## ## Logging ## mail_debug = yes auth_verbose = yes auth_debug = yes auth_debug_passwords = yes log_timestamp = "%b %d %H:%M:%S " syslog_facility = mail
... didn't help ... - dovecot's log didn't tell me anything new - no error nothing after the Serverbug happend ... ;(
I really don't know where to debug anymore ;( Therefore, I would _really_ - out of all my frustration - appreaciate your help (cause this issue is now bothering me now for more than two weeks now already - without any little peace of success)
Thanks & Regards
Am 28.07.10 23:43, schrieb Harlan Stenn:
Figure out exactly what script is running and see if it says why it would return with a status of 9. If that is because of a SIGKILL, it is because some process is sending that signal. You are gonna get to figure out what debug knobs to crank to figure out why this is going on.
Can you invoke any of this stuff manually from the command line to see what messages may come up?
h
Hi,
unfortunately I still wasn't able to figure out what's going on. I tried to debug the sa-learn perl script and I wasn't able to find any hint to that code. (I'm not a beginner) But I guess that this is not an issue of sa-learn. Why? Because sa-learn does as I asked it to. sa-learn writes everything into the SQL DB as wanted - but the mail is not being copied to the destination plus the dovecot server returns the old known [SERVERBUG] message to Thunderbird. I obviously also tried:
server [~]# sa-learn --username=admin@mydom.com --spam /var/mail/admin/.Spam/ Learned tokens from 0 message(s) (2 message(s) examined) server [~]#
"Learned tokens from 0" because it has learnd from Dovecot antispam already. If I reset SQL values it would learn again.
Here is my debug.log output again.
Aug 3 22:16:29 server imap: antispam: plugin initialising (1.2-notgit) Aug 3 22:16:29 server imap: antispam: "Trash" is exact match trash folder Aug 3 22:16:29 server imap: antispam: "Spam" is exact match spam folder Aug 3 22:16:29 server imap: antispam: "Virus" is exact match unsure folder Aug 3 22:16:29 server imap: antispam: mail backend spam address --spam Aug 3 22:16:29 server imap: antispam: mail backend not-spam address --ham Aug 3 22:16:29 server imap: antispam: mail backend sendmail /usr/local/bin/sa-learn Aug 3 22:16:29 server imap: antispam: mail backend sendmail arg --username=admin@mydom.com --debug all Aug 3 22:16:29 server imap: antispam: mail backend tmpdir /tmp Aug 3 22:16:34 server imap: antispam: mailbox_is_unsure(Spam): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_trash(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_trash(Spam): 0 Aug 3 22:16:34 server imap: antispam: mail copy: from trash: 0, to trash: 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_spam(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_spam(Spam): 1 Aug 3 22:16:34 server imap: antispam: mailbox_is_unsure(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Aug 3 22:16:34 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 22:16:34 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 22:16:38 server imap: antispam: run program failed with exit code 9
Those are my Antispam options from dovecot.conf:
[...] ### Dovecot AntiSpam ### # mail signature (used with any backend requiring a signature) #antispam_signature = X-Spam-Status #antispam_signature_missing = move
antispam_mail_sendmail = /usr/local/bin/sa-learn antispam_mail_sendmail_args = --username=%u --debug all anitspam_blah_args is a semicolon separated list, no spaces (I thought
On 2010-08-03 1:41 PM, Leander S. wrote: this odd too), therefore: antispam_mail_sendmail_args = --username=;%u;--debug;all
(i think)
antispam_mail_spam = --spam antispam_mail_notspam = --ham antispam_mail_tmpdir = /tmp antispam_spam = Spam antispam_unsure = Virus antispam_trash = Trash [...]
Even --debug all doesn't help a thing ;( I tried my luck enabeling all this Dovecot debug knobs:
## ## Logging ## mail_debug = yes auth_verbose = yes auth_debug = yes auth_debug_passwords = yes log_timestamp = "%b %d %H:%M:%S " syslog_facility = mail
... didn't help ... - dovecot's log didn't tell me anything new - no error nothing after the Serverbug happend ... ;(
I really don't know where to debug anymore ;( Therefore, I would _really_ - out of all my frustration - appreaciate your help (cause this issue is now bothering me now for more than two weeks now already
- without any little peace of success)
Thanks & Regards
-Greg
Am 03.08.10 22:53, schrieb Gregory Finch:
Am 28.07.10 23:43, schrieb Harlan Stenn:
Figure out exactly what script is running and see if it says why it would return with a status of 9. If that is because of a SIGKILL, it is because some process is sending that signal. You are gonna get to figure out what debug knobs to crank to figure out why this is going on.
Can you invoke any of this stuff manually from the command line to see what messages may come up?
h Hi,
unfortunately I still wasn't able to figure out what's going on. I tried to debug the sa-learn perl script and I wasn't able to find any hint to that code. (I'm not a beginner) But I guess that this is not an issue of sa-learn. Why? Because sa-learn does as I asked it to. sa-learn writes everything into the SQL DB as wanted - but the mail is not being copied to the destination plus the dovecot server returns the old known [SERVERBUG] message to Thunderbird. I obviously also tried:
server [~]# sa-learn --username=admin@mydom.com --spam /var/mail/admin/.Spam/ Learned tokens from 0 message(s) (2 message(s) examined) server [~]#
"Learned tokens from 0" because it has learnd from Dovecot antispam already. If I reset SQL values it would learn again.
Here is my debug.log output again.
Aug 3 22:16:29 server imap: antispam: plugin initialising (1.2-notgit) Aug 3 22:16:29 server imap: antispam: "Trash" is exact match trash folder Aug 3 22:16:29 server imap: antispam: "Spam" is exact match spam folder Aug 3 22:16:29 server imap: antispam: "Virus" is exact match unsure folder Aug 3 22:16:29 server imap: antispam: mail backend spam address --spam Aug 3 22:16:29 server imap: antispam: mail backend not-spam address --ham Aug 3 22:16:29 server imap: antispam: mail backend sendmail /usr/local/bin/sa-learn Aug 3 22:16:29 server imap: antispam: mail backend sendmail arg --username=admin@mydom.com --debug all Aug 3 22:16:29 server imap: antispam: mail backend tmpdir /tmp Aug 3 22:16:34 server imap: antispam: mailbox_is_unsure(Spam): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_trash(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_trash(Spam): 0 Aug 3 22:16:34 server imap: antispam: mail copy: from trash: 0, to trash: 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_spam(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_spam(Spam): 1 Aug 3 22:16:34 server imap: antispam: mailbox_is_unsure(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Aug 3 22:16:34 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 22:16:34 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 22:16:38 server imap: antispam: run program failed with exit code 9
Those are my Antispam options from dovecot.conf:
[...] ### Dovecot AntiSpam ### # mail signature (used with any backend requiring a signature) #antispam_signature = X-Spam-Status #antispam_signature_missing = move
antispam_mail_sendmail = /usr/local/bin/sa-learn antispam_mail_sendmail_args = --username=%u --debug all
anitspam_blah_args is a semicolon separated list, no spaces (I thought
On 2010-08-03 1:41 PM, Leander S. wrote: this odd too), therefore: antispam_mail_sendmail_args = --username=;%u;--debug;all
(i think)
antispam_mail_spam = --spam antispam_mail_notspam = --ham antispam_mail_tmpdir = /tmp antispam_spam = Spam antispam_unsure = Virus antispam_trash = Trash
[...]
Even --debug all doesn't help a thing ;( I tried my luck enabeling all this Dovecot debug knobs:
## ## Logging ## mail_debug = yes auth_verbose = yes auth_debug = yes auth_debug_passwords = yes log_timestamp = "%b %d %H:%M:%S " syslog_facility = mail
... didn't help ... - dovecot's log didn't tell me anything new - no error nothing after the Serverbug happend ... ;(
I really don't know where to debug anymore ;( Therefore, I would _really_ - out of all my frustration - appreaciate your help (cause this issue is now bothering me now for more than two weeks now already
- without any little peace of success)
Thanks& Regards
-Greg
Thanks for your reply. I tried that one as well - unfortunately that didn't really help a lot. Debug now looks a bit different than before: (Ofcourse did I try it without the debug option at all as well - but with the same result.)
### Dovecot AntiSpam ### # mail signature (used with any backend requiring a signature) #antispam_signature = X-Spam-Status #antispam_signature_missing = move
antispam_mail_sendmail = /usr/local/bin/sa-learn
antispam_mail_sendmail_args = --username=%u;--debug;all
antispam_mail_spam = --spam
antispam_mail_notspam = --ham
antispam_mail_tmpdir = /tmp
antispam_spam = Spam
antispam_unsure = Virus
antispam_trash = Trash
Aug 3 23:08:38 server imap: antispam: plugin initialising (1.2-notgit) Aug 3 23:08:38 server imap: antispam: "Trash" is exact match trash folder Aug 3 23:08:38 server imap: antispam: "Spam" is exact match spam folder Aug 3 23:08:38 server imap: antispam: "Virus" is exact match unsure folder Aug 3 23:08:38 server imap: antispam: mail backend spam address --spam Aug 3 23:08:38 server imap: antispam: mail backend not-spam address --ham
Aug 3 23:08:38 server imap: antispam: mail backend sendmail /usr/local/bin/sa-learn Aug 3 23:08:38 server imap: antispam: mail backend sendmail arg --username=admin@mydom.com Aug 3 23:08:38 server imap: antispam: mail backend sendmail arg --debug Aug 3 23:08:38 server imap: antispam: mail backend sendmail arg all
Aug 3 23:08:38 server imap: antispam: mail backend tmpdir /tmp Aug 3 23:08:38 server imap: antispam: mailbox_is_unsure(Spam): 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_trash(INBOX): 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_trash(Spam): 0 Aug 3 23:08:38 server imap: antispam: mail copy: from trash: 0, to trash: 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_spam(INBOX): 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_spam(Spam): 1 Aug 3 23:08:38 server imap: antispam: mailbox_is_unsure(INBOX): 0 Aug 3 23:08:38 server imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Aug 3 23:08:38 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 23:08:38 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 23:08:40 server imap: antispam: run program failed with exit code 9
But unfortunately there is no more debug as I was hoping of sa-learn. I also tried using different Dovecot versons already - but with the same result - they all give my MTC a SERVERBUG when I try to move mails with the help of the antispam plugin.
Thanks & Regards
On 2010-08-03 2:17 PM, Leander S. wrote:
Am 03.08.10 22:53, schrieb Gregory Finch:
Am 28.07.10 23:43, schrieb Harlan Stenn:
Figure out exactly what script is running and see if it says why it would return with a status of 9. If that is because of a SIGKILL, it is because some process is sending that signal. You are gonna get to figure out what debug knobs to crank to figure out why this is going on.
Can you invoke any of this stuff manually from the command line to see what messages may come up?
h Hi,
unfortunately I still wasn't able to figure out what's going on. I tried to debug the sa-learn perl script and I wasn't able to find any hint to that code. (I'm not a beginner) But I guess that this is not an issue of sa-learn. Why? Because sa-learn does as I asked it to. sa-learn writes everything into the SQL DB as wanted - but the mail is not being copied to the destination plus the dovecot server returns the old known [SERVERBUG] message to Thunderbird. I obviously also tried:
server [~]# sa-learn --username=admin@mydom.com --spam /var/mail/admin/.Spam/ Learned tokens from 0 message(s) (2 message(s) examined) server [~]#
"Learned tokens from 0" because it has learnd from Dovecot antispam already. If I reset SQL values it would learn again.
Here is my debug.log output again.
Aug 3 22:16:29 server imap: antispam: plugin initialising (1.2-notgit) Aug 3 22:16:29 server imap: antispam: "Trash" is exact match trash folder Aug 3 22:16:29 server imap: antispam: "Spam" is exact match spam folder Aug 3 22:16:29 server imap: antispam: "Virus" is exact match unsure folder Aug 3 22:16:29 server imap: antispam: mail backend spam address --spam Aug 3 22:16:29 server imap: antispam: mail backend not-spam address --ham Aug 3 22:16:29 server imap: antispam: mail backend sendmail /usr/local/bin/sa-learn Aug 3 22:16:29 server imap: antispam: mail backend sendmail arg --username=admin@mydom.com --debug all Aug 3 22:16:29 server imap: antispam: mail backend tmpdir /tmp Aug 3 22:16:34 server imap: antispam: mailbox_is_unsure(Spam): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_trash(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_trash(Spam): 0 Aug 3 22:16:34 server imap: antispam: mail copy: from trash: 0, to trash: 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_spam(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_spam(Spam): 1 Aug 3 22:16:34 server imap: antispam: mailbox_is_unsure(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Aug 3 22:16:34 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 22:16:34 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 22:16:38 server imap: antispam: run program failed with exit code 9
Those are my Antispam options from dovecot.conf:
[...] ### Dovecot AntiSpam ### # mail signature (used with any backend requiring a signature) #antispam_signature = X-Spam-Status #antispam_signature_missing = move
antispam_mail_sendmail = /usr/local/bin/sa-learn antispam_mail_sendmail_args = --username=%u --debug all
anitspam_blah_args is a semicolon separated list, no spaces (I thought
On 2010-08-03 1:41 PM, Leander S. wrote: this odd too), therefore: antispam_mail_sendmail_args = --username=;%u;--debug;all
(i think)
antispam_mail_spam = --spam antispam_mail_notspam = --ham antispam_mail_tmpdir = /tmp antispam_spam = Spam antispam_unsure = Virus antispam_trash = Trash
[...]
Even --debug all doesn't help a thing ;( I tried my luck enabeling all this Dovecot debug knobs:
## ## Logging ## mail_debug = yes auth_verbose = yes auth_debug = yes auth_debug_passwords = yes log_timestamp = "%b %d %H:%M:%S " syslog_facility = mail
... didn't help ... - dovecot's log didn't tell me anything new - no error nothing after the Serverbug happend ... ;(
I really don't know where to debug anymore ;( Therefore, I would _really_ - out of all my frustration - appreaciate your help (cause this issue is now bothering me now for more than two weeks now already
- without any little peace of success)
Thanks& Regards
-Greg
Thanks for your reply. I tried that one as well - unfortunately that didn't really help a lot. Debug now looks a bit different than before: (Ofcourse did I try it without the debug option at all as well - but with the same result.)
### Dovecot AntiSpam ### # mail signature (used with any backend requiring a signature) #antispam_signature = X-Spam-Status #antispam_signature_missing = move
antispam_mail_sendmail = /usr/local/bin/sa-learn antispam_mail_sendmail_args = --username=%u;--debug;all antispam_mail_spam = --spam antispam_mail_notspam = --ham antispam_mail_tmpdir = /tmp antispam_spam = Spam antispam_unsure = Virus antispam_trash = Trash
Aug 3 23:08:38 server imap: antispam: plugin initialising (1.2-notgit) Aug 3 23:08:38 server imap: antispam: "Trash" is exact match trash folder Aug 3 23:08:38 server imap: antispam: "Spam" is exact match spam folder Aug 3 23:08:38 server imap: antispam: "Virus" is exact match unsure folder Aug 3 23:08:38 server imap: antispam: mail backend spam address --spam Aug 3 23:08:38 server imap: antispam: mail backend not-spam address --ham
Aug 3 23:08:38 server imap: antispam: mail backend sendmail /usr/local/bin/sa-learn Aug 3 23:08:38 server imap: antispam: mail backend sendmail arg --username=admin@mydom.com Aug 3 23:08:38 server imap: antispam: mail backend sendmail arg --debug Aug 3 23:08:38 server imap: antispam: mail backend sendmail arg all
Aug 3 23:08:38 server imap: antispam: mail backend tmpdir /tmp Aug 3 23:08:38 server imap: antispam: mailbox_is_unsure(Spam): 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_trash(INBOX): 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_trash(Spam): 0 Aug 3 23:08:38 server imap: antispam: mail copy: from trash: 0, to trash: 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_spam(INBOX): 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_spam(Spam): 1 Aug 3 23:08:38 server imap: antispam: mailbox_is_unsure(INBOX): 0 Aug 3 23:08:38 server imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Aug 3 23:08:38 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 23:08:38 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 23:08:40 server imap: antispam: run program failed with exit code 9
But unfortunately there is no more debug as I was hoping of sa-learn. I also tried using different Dovecot versons already - but with the same result - they all give my MTC a SERVERBUG when I try to move mails with the help of the antispam plugin.
Thanks & Regards
not knowing anything about spam assassin, my last guess would be make sure that sa-learn can be called by whatever system user the imap process calling it is running as.
-Greg
On 03/08/10 23:17, Leander S. wrote:
Am 03.08.10 22:53, schrieb Gregory Finch:
Am 28.07.10 23:43, schrieb Harlan Stenn:
Figure out exactly what script is running and see if it says why it would return with a status of 9. If that is because of a SIGKILL, it is because some process is sending that signal. You are gonna get to figure out what debug knobs to crank to figure out why this is going on.
Can you invoke any of this stuff manually from the command line to see what messages may come up?
h Hi,
unfortunately I still wasn't able to figure out what's going on. I tried to debug the sa-learn perl script and I wasn't able to find any hint to that code. (I'm not a beginner) But I guess that this is not an issue of sa-learn. Why? Because sa-learn does as I asked it to. sa-learn writes everything into the SQL DB as wanted - but the mail is not being copied to the destination plus the dovecot server returns the old known [SERVERBUG] message to Thunderbird. I obviously also tried:
server [~]# sa-learn --username=admin@mydom.com --spam /var/mail/admin/.Spam/ Learned tokens from 0 message(s) (2 message(s) examined) server [~]#
"Learned tokens from 0" because it has learnd from Dovecot antispam already. If I reset SQL values it would learn again.
Here is my debug.log output again.
Aug 3 22:16:29 server imap: antispam: plugin initialising (1.2-notgit) Aug 3 22:16:29 server imap: antispam: "Trash" is exact match trash folder Aug 3 22:16:29 server imap: antispam: "Spam" is exact match spam folder Aug 3 22:16:29 server imap: antispam: "Virus" is exact match unsure folder Aug 3 22:16:29 server imap: antispam: mail backend spam address --spam Aug 3 22:16:29 server imap: antispam: mail backend not-spam address --ham Aug 3 22:16:29 server imap: antispam: mail backend sendmail /usr/local/bin/sa-learn Aug 3 22:16:29 server imap: antispam: mail backend sendmail arg --username=admin@mydom.com --debug all Aug 3 22:16:29 server imap: antispam: mail backend tmpdir /tmp Aug 3 22:16:34 server imap: antispam: mailbox_is_unsure(Spam): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_trash(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_trash(Spam): 0 Aug 3 22:16:34 server imap: antispam: mail copy: from trash: 0, to trash: 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_spam(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_spam(Spam): 1 Aug 3 22:16:34 server imap: antispam: mailbox_is_unsure(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Aug 3 22:16:34 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 22:16:34 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 22:16:38 server imap: antispam: run program failed with exit code 9
Those are my Antispam options from dovecot.conf:
[...] ### Dovecot AntiSpam ### # mail signature (used with any backend requiring a signature) #antispam_signature = X-Spam-Status #antispam_signature_missing = move
antispam_mail_sendmail = /usr/local/bin/sa-learn antispam_mail_sendmail_args = --username=%u --debug all
anitspam_blah_args is a semicolon separated list, no spaces (I thought
On 2010-08-03 1:41 PM, Leander S. wrote: this odd too), therefore: antispam_mail_sendmail_args = --username=;%u;--debug;all
(i think)
antispam_mail_spam = --spam antispam_mail_notspam = --ham antispam_mail_tmpdir = /tmp antispam_spam = Spam antispam_unsure = Virus antispam_trash = Trash
[...]
Even --debug all doesn't help a thing ;( I tried my luck enabeling all this Dovecot debug knobs:
## ## Logging ## mail_debug = yes auth_verbose = yes auth_debug = yes auth_debug_passwords = yes log_timestamp = "%b %d %H:%M:%S " syslog_facility = mail
... didn't help ... - dovecot's log didn't tell me anything new - no error nothing after the Serverbug happend ... ;(
I really don't know where to debug anymore ;( Therefore, I would _really_ - out of all my frustration - appreaciate your help (cause this issue is now bothering me now for more than two weeks now already
- without any little peace of success)
Thanks& Regards
-Greg
Thanks for your reply. I tried that one as well - unfortunately that didn't really help a lot. Debug now looks a bit different than before: (Ofcourse did I try it without the debug option at all as well - but with the same result.)
### Dovecot AntiSpam ### # mail signature (used with any backend requiring a signature) #antispam_signature = X-Spam-Status #antispam_signature_missing = move
antispam_mail_sendmail = /usr/local/bin/sa-learn antispam_mail_sendmail_args = --username=%u;--debug;all antispam_mail_spam = --spam antispam_mail_notspam = --ham antispam_mail_tmpdir = /tmp antispam_spam = Spam antispam_unsure = Virus antispam_trash = Trash
Aug 3 23:08:38 server imap: antispam: plugin initialising (1.2-notgit) Aug 3 23:08:38 server imap: antispam: "Trash" is exact match trash folder Aug 3 23:08:38 server imap: antispam: "Spam" is exact match spam folder Aug 3 23:08:38 server imap: antispam: "Virus" is exact match unsure folder Aug 3 23:08:38 server imap: antispam: mail backend spam address --spam Aug 3 23:08:38 server imap: antispam: mail backend not-spam address --ham
Aug 3 23:08:38 server imap: antispam: mail backend sendmail /usr/local/bin/sa-learn Aug 3 23:08:38 server imap: antispam: mail backend sendmail arg --username=admin@mydom.com Aug 3 23:08:38 server imap: antispam: mail backend sendmail arg --debug Aug 3 23:08:38 server imap: antispam: mail backend sendmail arg all
Aug 3 23:08:38 server imap: antispam: mail backend tmpdir /tmp Aug 3 23:08:38 server imap: antispam: mailbox_is_unsure(Spam): 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_trash(INBOX): 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_trash(Spam): 0 Aug 3 23:08:38 server imap: antispam: mail copy: from trash: 0, to trash: 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_spam(INBOX): 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_spam(Spam): 1 Aug 3 23:08:38 server imap: antispam: mailbox_is_unsure(INBOX): 0 Aug 3 23:08:38 server imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Aug 3 23:08:38 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 23:08:38 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 23:08:40 server imap: antispam: run program failed with exit code 9
But unfortunately there is no more debug as I was hoping of sa-learn. I also tried using different Dovecot versons already - but with the same result - they all give my MTC a SERVERBUG when I try to move mails with the help of the antispam plugin.
What happens when you write a small shell wrapper and put that in place of sa-learn, which calls sa-learn, and let it save the input (arguments as produced by the plugin) and output of sa-learn to a temporary file?
-- Regards, Tom
On Aug 3, 2010, at 5:52 PM, Tom Hendrikx wrote:
On 03/08/10 23:17, Leander S. wrote:
Am 03.08.10 22:53, schrieb Gregory Finch:
Am 28.07.10 23:43, schrieb Harlan Stenn:
Figure out exactly what script is running and see if it says why it would return with a status of 9. If that is because of a SIGKILL, it is because some process is sending that signal. You are gonna get to figure out what debug knobs to crank to figure out why this is going on.
Can you invoke any of this stuff manually from the command line to see what messages may come up?
h Hi,
unfortunately I still wasn't able to figure out what's going on. I tried to debug the sa-learn perl script and I wasn't able to find any hint to that code. (I'm not a beginner) But I guess that this is not an issue of sa-learn. Why? Because sa-learn does as I asked it to. sa-learn writes everything into the SQL DB as wanted - but the mail is not being copied to the destination plus the dovecot server returns the old known [SERVERBUG] message to Thunderbird. I obviously also tried:
server [~]# sa-learn --username=admin@mydom.com --spam /var/mail/admin/.Spam/ Learned tokens from 0 message(s) (2 message(s) examined) server [~]#
"Learned tokens from 0" because it has learnd from Dovecot antispam already. If I reset SQL values it would learn again.
Here is my debug.log output again.
Aug 3 22:16:29 server imap: antispam: plugin initialising (1.2-notgit) Aug 3 22:16:29 server imap: antispam: "Trash" is exact match trash folder Aug 3 22:16:29 server imap: antispam: "Spam" is exact match spam folder Aug 3 22:16:29 server imap: antispam: "Virus" is exact match unsure folder Aug 3 22:16:29 server imap: antispam: mail backend spam address --spam Aug 3 22:16:29 server imap: antispam: mail backend not-spam address --ham Aug 3 22:16:29 server imap: antispam: mail backend sendmail /usr/local/bin/sa-learn Aug 3 22:16:29 server imap: antispam: mail backend sendmail arg --username=admin@mydom.com --debug all Aug 3 22:16:29 server imap: antispam: mail backend tmpdir /tmp Aug 3 22:16:34 server imap: antispam: mailbox_is_unsure(Spam): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_trash(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_trash(Spam): 0 Aug 3 22:16:34 server imap: antispam: mail copy: from trash: 0, to trash: 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_spam(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mailbox_is_spam(Spam): 1 Aug 3 22:16:34 server imap: antispam: mailbox_is_unsure(INBOX): 0 Aug 3 22:16:34 server imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Aug 3 22:16:34 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 22:16:34 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 22:16:38 server imap: antispam: run program failed with exit code 9
Those are my Antispam options from dovecot.conf:
[...] ### Dovecot AntiSpam ### # mail signature (used with any backend requiring a signature) #antispam_signature = X-Spam-Status #antispam_signature_missing = move
antispam_mail_sendmail = /usr/local/bin/sa-learn antispam_mail_sendmail_args = --username=%u --debug all anitspam_blah_args is a semicolon separated list, no spaces (I thought
On 2010-08-03 1:41 PM, Leander S. wrote: this odd too), therefore: antispam_mail_sendmail_args = --username=;%u;--debug;all
(i think)
antispam_mail_spam = --spam antispam_mail_notspam = --ham antispam_mail_tmpdir = /tmp antispam_spam = Spam antispam_unsure = Virus antispam_trash = Trash [...]
Even --debug all doesn't help a thing ;( I tried my luck enabeling all this Dovecot debug knobs:
## ## Logging ## mail_debug = yes auth_verbose = yes auth_debug = yes auth_debug_passwords = yes log_timestamp = "%b %d %H:%M:%S " syslog_facility = mail
... didn't help ... - dovecot's log didn't tell me anything new - no error nothing after the Serverbug happend ... ;(
I really don't know where to debug anymore ;( Therefore, I would _really_ - out of all my frustration - appreaciate your help (cause this issue is now bothering me now for more than two weeks now already
- without any little peace of success)
Thanks& Regards
-Greg
Thanks for your reply. I tried that one as well - unfortunately that didn't really help a lot. Debug now looks a bit different than before: (Ofcourse did I try it without the debug option at all as well - but with the same result.)
### Dovecot AntiSpam ### # mail signature (used with any backend requiring a signature) #antispam_signature = X-Spam-Status #antispam_signature_missing = move
antispam_mail_sendmail = /usr/local/bin/sa-learn antispam_mail_sendmail_args = --username=%u;--debug;all antispam_mail_spam = --spam antispam_mail_notspam = --ham antispam_mail_tmpdir = /tmp antispam_spam = Spam antispam_unsure = Virus antispam_trash = Trash
Aug 3 23:08:38 server imap: antispam: plugin initialising (1.2-notgit) Aug 3 23:08:38 server imap: antispam: "Trash" is exact match trash folder Aug 3 23:08:38 server imap: antispam: "Spam" is exact match spam folder Aug 3 23:08:38 server imap: antispam: "Virus" is exact match unsure folder Aug 3 23:08:38 server imap: antispam: mail backend spam address --spam Aug 3 23:08:38 server imap: antispam: mail backend not-spam address --ham
Aug 3 23:08:38 server imap: antispam: mail backend sendmail /usr/local/bin/sa-learn Aug 3 23:08:38 server imap: antispam: mail backend sendmail arg --username=admin@mydom.com Aug 3 23:08:38 server imap: antispam: mail backend sendmail arg --debug Aug 3 23:08:38 server imap: antispam: mail backend sendmail arg all
Aug 3 23:08:38 server imap: antispam: mail backend tmpdir /tmp Aug 3 23:08:38 server imap: antispam: mailbox_is_unsure(Spam): 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_trash(INBOX): 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_trash(Spam): 0 Aug 3 23:08:38 server imap: antispam: mail copy: from trash: 0, to trash: 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_spam(INBOX): 0 Aug 3 23:08:38 server imap: antispam: mailbox_is_spam(Spam): 1 Aug 3 23:08:38 server imap: antispam: mailbox_is_unsure(INBOX): 0 Aug 3 23:08:38 server imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Aug 3 23:08:38 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 23:08:38 server imap: antispam: running mailtrain backend program /usr/local/bin/sa-learn Aug 3 23:08:40 server imap: antispam: run program failed with exit code 9
But unfortunately there is no more debug as I was hoping of sa-learn. I also tried using different Dovecot versons already - but with the same result - they all give my MTC a SERVERBUG when I try to move mails with the help of the antispam plugin.
What happens when you write a small shell wrapper and put that in place of sa-learn, which calls sa-learn, and let it save the input (arguments as produced by the plugin) and output of sa-learn to a temporary file?
i was just going to ask. Does the owner of your plugin have the correct permissions to execute salearn ?
antispam_mail_spam = --spam antispam_mail_notspam = --ham antispam_mail_tmpdir = /tmp antispam_spam = Spam antispam_unsure = Virus antispam_trash = Trash
these look like mailboxes sa learn looks to these mailstores to learn "what is spam and what is not " i use several mailboxes as junkmailbox and notjunkmalbox. Shouldn't these have some type of path ? /var/spool/mail/spam
-- Regards, Tom
I've also had this problem in the past. I wrote a wrapper script to try to log what is happening. Funny thing is, when run through this script it works fine. Without the script it fails. Not sure where to look next, I've just kept the script.
#!/usr/local/bin/bash
( id -a echo $@ /usr/local/bin/sa-learn $@ rc=$? echo "exit code $rc" exit $rc ) > /tmp/antispam.out.$$ 2> /tmp/antispam.err.$$
On 7/28/2010 3:12 PM, Leander S. wrote:
On 07/28/2010 07:24 PM Leander S. wrote:
"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
… 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 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.
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@localdomain.org
participants (8)
-
Daryl Richards
-
donovan jeffrey j
-
Gregory Finch
-
Harlan Stenn
-
Leander S.
-
Pascal Volk
-
Steve
-
Tom Hendrikx