Andrei Popescu ha scritto:
> On Wed,03.Mar.10, 13:26:19, Marco Nenciarini wrote:
>  
>> To obtain a core dump you should enable them in /etc/defaults/dovecot
>> and then restart the daemon with /etc/init.d/dovecot restart
>  
> $ grep CORE /etc/default/dovecot
> ALLOW_COREDUMPS=1
> 
>> You'll find the resulting core file as  /var/run/dovecot/core
>>
>> If you want to allow multiple core files try to execute something like
>>
>> echo "core.%p" > /proc/sys/kernel/core_pattern
>>
>> After that the core files will be named like core.<pid> until the next
>> reboot.
>  
> In syslog I still have "(core not dumped)".

This happen because login processes aren't allowed to dump their core
unless they were started with -D option (for security reasons, I think).

Could you try to obtain a core after you have amended your configuration
with the attached patch?

Kind regards,
Marco

-- 
---------------------------------------------------------------------
|    Marco Nenciarini    | Debian/GNU Linux Developer - Plug Member |
| mnen...@prato.linux.it | http://www.prato.linux.it/~mnencia       |
---------------------------------------------------------------------
Key fingerprint = FED9 69C7 9E67 21F5 7D95  5270 6864 730D F095 E5E4

--- dovecot.conf.orig	2010-02-05 12:00:29.000000000 +0100
+++ dovecot.conf.core	2010-03-03 22:50:38.995762762 +0100
@@ -550,7 +550,7 @@
 
 protocol imap {
   # Login executable location.
-  #login_executable = /usr/lib/dovecot/imap-login
+  login_executable = /usr/lib/dovecot/imap-login -D
 
   # IMAP executable location. Changing this allows you to execute other
   # binaries before the imap process is executed.
@@ -627,7 +627,7 @@
 
 protocol pop3 {
   # Login executable location.
-  #login_executable = /usr/lib/dovecot/pop3-login
+  login_executable = /usr/lib/dovecot/pop3-login -D
 
   # POP3 executable location. See IMAP's mail_executable above for examples
   # how this could be changed.
@@ -715,7 +715,7 @@
 
 protocol managesieve {
   # Login executable location.
-  #login_executable = /usr/lib/dovecot/managesieve-login
+  login_executable = /usr/lib/dovecot/managesieve-login -D
 
   # ManageSieve executable location. See IMAP's mail_executable above for
   # examples how this could be changed.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to