[Dovecot] Error using antispam plugin
Hi
When activating antispam plugin in imap protocol, when sending an email, Evolution/Thunderbirdkeeps infinitely "Sending authentication information", and Dovecor logs shows "dovecot: May 28 10:14:35 Error: child 6910 (imap) killed with signal 11"; lots of empty folders in /tmp are created with names like "antispam-mail-ZvyWeZ".
I am using Dovecot1.1 rc15 compiled from Debian source repositories (http://xi.rename-it.nl/debian/) and last version of antispam plugin, obtained with git. Any idea or help to debug?
Thanks.
On 5/28/2008, Juan Asensio Sánchez (okelet@gmail.com) wrote:
I am using Dovecot1.1 rc15 compiled from Debian source repositories (http://xi.rename-it.nl/debian/) and last version of antispam plugin, obtained with git. Any idea or help to debug?
First... upgrade... this is a very old version.
--
Best regards,
Charles
Well, i did a mistake, it is 1.1rc5 version, so i don't think this is an old version.
2008/5/28 Charles Marcus CMarcus@media-brokers.com:
On 5/28/2008, Juan Asensio Sánchez (okelet@gmail.com) wrote:
I am using Dovecot1.1 rc15 compiled from Debian source repositories (http://xi.rename-it.nl/debian/) and last version of antispam plugin, obtained with git. Any idea or help to debug?
First... upgrade... this is a very old version.
--
Best regards,
Charles
On Wed, 2008-05-28 at 06:43 -0400, Charles Marcus wrote:
Right, all I saw was rc15... so many distros have locked onto that version for some reason...
I think it's mainly RHEL / CentOS. But RHEL 5.2 was released this week with Dovecot 1.0.7 (or so I've heard), so perhaps we can soon get rid of 1.0.rc15 questions. :)
No idea how to add the -g3 option to compile. Once done, how and where is the gdb generated? I would need detailed help to do this.
I know that it is known to not work, but if nobody uses it, then it will never work.
I think this plugin is great, a great way to classify SPAM without difficult instructions for the final users. I will use the plugin with SpamAssassin, not DSPAM.
Regards.
2008/5/28 Timo Sirainen tss@iki.fi:
On Wed, 2008-05-28 at 06:43 -0400, Charles Marcus wrote:
Right, all I saw was rc15... so many distros have locked onto that version for some reason...
I think it's mainly RHEL / CentOS. But RHEL 5.2 was released this week with Dovecot 1.0.7 (or so I've heard), so perhaps we can soon get rid of 1.0.rc15 questions. :)
Hi again
Testing with Dovecot 1.1RC7, and antispam plugin 31/05/2008, 18:00, the problem persists. The error ocurrs when Evolution/Thunderbird tries to save the message in the Sent folder (the message is sent and received by the recipient correctly). If i disable antispam plugin from IMAP protocol everything works fine.
Sent folder has been autocreated and autosubscribed using the autocreate plugin. With plugin autocreate disabled and folders subscribed manually the problem persists.
Now i have compiled dovecot-antispam plugin with the -g3 option in CFLAGS. What to do now?
The errors shown by dovecot are these:
dovecot: May 31 19:49:24 Error: child 16929 (imap) killed with signal 11 dovecot: May 31 19:49:24 Error: child 16933 (imap) killed with signal 11 dovecot: May 31 19:49:25 Error: child 16936 (imap) killed with signal 11 dovecot: May 31 19:49:26 Error: child 16940 (imap) killed with signal 11
In syslog, antispam plugin logs this (compiled with DEBUG_VERBOSE=1):
May 31 19:51:33 pdc-server imap: antispam: plugin initialising May 31 19:51:33 pdc-server imap: antispam: "Trash" is trash folder May 31 19:51:33 pdc-server imap: antispam: "Junk" is spam folder May 31 19:51:33 pdc-server imap: antispam: mail backend spam address -r May 31 19:51:33 pdc-server imap: antispam: mail backend not-spam address -k May 31 19:51:33 pdc-server imap: antispam: mail backend sendmail /usr/bin/spamassassin May 31 19:51:33 pdc-server imap: antispam: mail backend tmpdir /tmp
repeated for every child error.
Regards.
2008/5/29 Juan Asensio Sánchez okelet@gmail.com:
No idea how to add the -g3 option to compile. Once done, how and where is the gdb generated? I would need detailed help to do this.
I know that it is known to not work, but if nobody uses it, then it will never work.
I think this plugin is great, a great way to classify SPAM without difficult instructions for the final users. I will use the plugin with SpamAssassin, not DSPAM.
Regards.
2008/5/28 Timo Sirainen tss@iki.fi:
On Wed, 2008-05-28 at 06:43 -0400, Charles Marcus wrote:
Right, all I saw was rc15... so many distros have locked onto that version for some reason...
I think it's mainly RHEL / CentOS. But RHEL 5.2 was released this week with Dovecot 1.0.7 (or so I've heard), so perhaps we can soon get rid of 1.0.rc15 questions. :)
Well
Finally i found the error. It look like antispam is not compatible with quota plugin.
mail_plugins = quota imap_quota autocreate antispam
If i remove quota and imap_quota plugins from imap protocol, everything works fine and the message is saved in sent folder.
mail_plugins = autocreate antispam
If i enable again the plugins, the error happens again. Any solution?
Regards.
2008/5/31 Juan Asensio Sánchez okelet@gmail.com:
Hi again
Testing with Dovecot 1.1RC7, and antispam plugin 31/05/2008, 18:00, the problem persists. The error ocurrs when Evolution/Thunderbird tries to save the message in the Sent folder (the message is sent and received by the recipient correctly). If i disable antispam plugin from IMAP protocol everything works fine.
Sent folder has been autocreated and autosubscribed using the autocreate plugin. With plugin autocreate disabled and folders subscribed manually the problem persists.
Now i have compiled dovecot-antispam plugin with the -g3 option in CFLAGS. What to do now?
The errors shown by dovecot are these:
dovecot: May 31 19:49:24 Error: child 16929 (imap) killed with signal 11 dovecot: May 31 19:49:24 Error: child 16933 (imap) killed with signal 11 dovecot: May 31 19:49:25 Error: child 16936 (imap) killed with signal 11 dovecot: May 31 19:49:26 Error: child 16940 (imap) killed with signal 11
In syslog, antispam plugin logs this (compiled with DEBUG_VERBOSE=1):
May 31 19:51:33 pdc-server imap: antispam: plugin initialising May 31 19:51:33 pdc-server imap: antispam: "Trash" is trash folder May 31 19:51:33 pdc-server imap: antispam: "Junk" is spam folder May 31 19:51:33 pdc-server imap: antispam: mail backend spam address -r May 31 19:51:33 pdc-server imap: antispam: mail backend not-spam address -k May 31 19:51:33 pdc-server imap: antispam: mail backend sendmail /usr/bin/spamassassin May 31 19:51:33 pdc-server imap: antispam: mail backend tmpdir /tmp
repeated for every child error.
Regards.
2008/5/29 Juan Asensio Sánchez okelet@gmail.com:
No idea how to add the -g3 option to compile. Once done, how and where is the gdb generated? I would need detailed help to do this.
I know that it is known to not work, but if nobody uses it, then it will never work.
I think this plugin is great, a great way to classify SPAM without difficult instructions for the final users. I will use the plugin with SpamAssassin, not DSPAM.
Regards.
2008/5/28 Timo Sirainen tss@iki.fi:
On Wed, 2008-05-28 at 06:43 -0400, Charles Marcus wrote:
Right, all I saw was rc15... so many distros have locked onto that version for some reason...
I think it's mainly RHEL / CentOS. But RHEL 5.2 was released this week with Dovecot 1.0.7 (or so I've heard), so perhaps we can soon get rid of 1.0.rc15 questions. :)
On Tue, 2008-06-03 at 00:51 +0200, Juan Asensio Sánchez wrote:
Well
Finally i found the error. It look like antispam is not compatible with quota plugin.
mail_plugins = quota imap_quota autocreate antispam
If i remove quota and imap_quota plugins from imap protocol, everything works fine and the message is saved in sent folder.
mail_plugins = autocreate antispam
Ok, that explains why I don't see that problem.
If i enable again the plugins, the error happens again. Any solution?
Now i have compiled dovecot-antispam plugin with the -g3 option in CFLAGS. What to do now?
http://dovecot.org/bugreport.html
The "debugging hangs" section is what I usually do: start mail client, "gdb -p $(pidof imap)", enter "cont" in gdb, do operation in mail client that crashes, get backtrace from gdb.
johannes
Hi
Thanks for the help, This is the result of the running commands:
pdc-server:~# dpkg -l | grep gdb ii gdb 6.4.90.dfsg-1 The GNU Debugger ii libgdbm3 1.8.3-3 GNU dbm database routines (runtime version) pdc-server:~# dpkg -l | grep dovecot ii dovecot-common 1.1.rc7-0~auto+1 secure mail server that supports mbox and ma ii dovecot-dev 1.1.rc7-0~auto+1 header files for the dovecot mail server ii dovecot-imapd 1.1.rc7-0~auto+1 secure IMAP server that supports mbox and ma ii dovecot-pop3d 1.1.rc7-0~auto+1 secure POP3 server that supports mbox and ma pdc-server:~# ps aux | grep imap dovecot 2749 0.0 0.5 3312 1512 ? S 20:45 0:00 imap-login dovecot 2824 0.0 0.5 3308 1508 ? S 20:52 0:00 imap-login dovecot 2848 0.4 0.5 3308 1508 ? S 20:54 0:00 imap-login mailuser 2849 1.0 0.4 2540 1280 ? S 20:54 0:00 /usr/lib/dovecot/imap root 2852 0.0 0.2 2880 752 pts/0 R+ 20:54 0:00 grep imap pdc-server:~# gdb -p 2849 GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu". Attaching to process 2849 Reading symbols from /usr/lib/dovecot/imap...(no debugging symbols found)...done. Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". Reading symbols from /lib/tls/i686/cmov/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/tls/i686/cmov/libdl.so.2 Reading symbols from /lib/tls/i686/cmov/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/tls/i686/cmov/libc.so.6 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so... (no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so Reading symbols from /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so Reading symbols from /usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so...done. Loaded symbols for /usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so Reading symbols from /usr/lib/dovecot/modules/imap/autocreate_plugin.so...done. Loaded symbols for /usr/lib/dovecot/modules/imap/autocreate_plugin.so Failed to read a valid object file image from memory. 0xb7fba410 in ?? () (gdb) cont Continuing.
Program received signal SIGSEGV, Segmentation fault. 0x0809ea67 in mail_get_physical_size () (gdb) bt full #0 0x0809ea67 in mail_get_physical_size () No symbol table info available. #1 0xb7e795c5 in quota_mail_storage_created () from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so No symbol table info available. #2 0xb7e6d02d in antispam_save_finish (ctx=0x813b720) at antispam-storage-1.1.c:178 asbox = (struct antispam_mailbox *) 0x8124320 ast = (struct antispam_internal_context *) 0x8134978 dest_mail = (struct mail *) 0x8137310 ret = 135092783 #3 0x0805a1c8 in _start () No symbol table info available. (gdb)
Regards.
2008/6/3 Johannes Berg johannes@sipsolutions.net:
On Tue, 2008-06-03 at 00:51 +0200, Juan Asensio Sánchez wrote:
Well
Finally i found the error. It look like antispam is not compatible with quota plugin.
mail_plugins = quota imap_quota autocreate antispam
If i remove quota and imap_quota plugins from imap protocol, everything works fine and the message is saved in sent folder.
mail_plugins = autocreate antispam
Ok, that explains why I don't see that problem.
If i enable again the plugins, the error happens again. Any solution?
Now i have compiled dovecot-antispam plugin with the -g3 option in CFLAGS. What to do now?
http://dovecot.org/bugreport.html
The "debugging hangs" section is what I usually do: start mail client, "gdb -p $(pidof imap)", enter "cont" in gdb, do operation in mail client that crashes, get backtrace from gdb.
johannes
Program received signal SIGSEGV, Segmentation fault. 0x0809ea67 in mail_get_physical_size () (gdb) bt full #0 0x0809ea67 in mail_get_physical_size () No symbol table info available. #1 0xb7e795c5 in quota_mail_storage_created () from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so No symbol table info available. #2 0xb7e6d02d in antispam_save_finish (ctx=0x813b720) at antispam-storage-1.1.c:178 asbox = (struct antispam_mailbox *) 0x8124320 ast = (struct antispam_internal_context *) 0x8134978 dest_mail = (struct mail *) 0x8137310 ret = 135092783 #3 0x0805a1c8 in _start () No symbol table info available.
Hmm. Can you compile dovecot and the quota plugin with debugging symbols too? This doesn't look too useful.
johannes
Wow. Thanks for your quick answer. I don't know much about compiling or debugging. Could anyone say me how to do that or give some tips?
Thanks in advance.
2008/6/3 Johannes Berg johannes@sipsolutions.net:
Program received signal SIGSEGV, Segmentation fault. 0x0809ea67 in mail_get_physical_size () (gdb) bt full #0 0x0809ea67 in mail_get_physical_size () No symbol table info available. #1 0xb7e795c5 in quota_mail_storage_created () from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so No symbol table info available. #2 0xb7e6d02d in antispam_save_finish (ctx=0x813b720) at antispam-storage-1.1.c:178 asbox = (struct antispam_mailbox *) 0x8124320 ast = (struct antispam_internal_context *) 0x8134978 dest_mail = (struct mail *) 0x8137310 ret = 135092783 #3 0x0805a1c8 in _start () No symbol table info available.
Hmm. Can you compile dovecot and the quota plugin with debugging symbols too? This doesn't look too useful.
johannes
On Tue, 2008-06-03 at 21:11 +0200, Johannes Berg wrote:
On Tue, 2008-06-03 at 21:06 +0200, Juan Asensio Sánchez wrote:
Wow. Thanks for your quick answer. I don't know much about compiling or debugging. Could anyone say me how to do that or give some tips?
well, add -g3 somewhere to the CFLAGS when building dovecot.
-g is added by default. Does -g3 add anything useful compared to it?
On Tue, 2008-06-03 at 22:16 +0300, Timo Sirainen wrote:
On Tue, 2008-06-03 at 21:11 +0200, Johannes Berg wrote:
On Tue, 2008-06-03 at 21:06 +0200, Juan Asensio Sánchez wrote:
Wow. Thanks for your quick answer. I don't know much about compiling or debugging. Could anyone say me how to do that or give some tips?
well, add -g3 somewhere to the CFLAGS when building dovecot.
-g is added by default. Does -g3 add anything useful compared to it?
I think it only adds debug information for macros.
johannes
I am using Dovecot1.1 rc15 compiled from Debian source repositories (http://xi.rename-it.nl/debian/) and last version of antispam plugin, obtained with git. Any idea or help to debug?
Well, compile with -g3 and attach gdb. It's known to not work, and I never said it work would, in fact, the defconfig file you edited clearly states:
# Dovecot version to build against DOVECOT_VERSION=1.0 #DOVECOT_VERSION=1.1 # CURRENTLY BROKEN
No further comments.
johannes
Juan Asensio Sánchez wrote:
I am using Dovecot1.1 rc15 compiled from Debian source repositories (http://xi.rename-it.nl/debian/) and last version of antispam plugin, obtained with git. Any idea or help to debug?
I believe that antispam has not been announced working with 1.1 yet.
Anders.
participants (5)
-
Anders
-
Charles Marcus
-
Johannes Berg
-
Juan Asensio Sánchez
-
Timo Sirainen