Btw, why is the whole Dovecot system shutting down due to a bug in the 'imap' subprocess? It's rather annoying for the rest of the users...
It shouldnt' be.
May 20 15:16:32 ifm.liu.se dovecot: [ID 107833 mail.info] IMAP(inand): Server shutting down
Do you mean you didn't cause this manually?
Right.
Hmm.. I wonder if it might be due to the Solaris SMF system seeing the coredump (and/or signals) and deciding that the system it is monitoring has failed and thus shuts it down. (I use SMF to handle Dovecot).
Ah! Yes, that's why!
# tail -18 /var/svc/log/network-dovecot:default.log [ May 20 15:16:32 Stopping because process dumped core. ] [ May 20 15:16:32 Executing stop method (:kill) ] [ May 20 15:17:02 Method or service exit timed out. Killing contract 6893 ] [ May 20 15:24:03 Leaving maintenance because clear requested. ] [ May 20 15:24:03 Enabled. ] [ May 20 15:24:04 Executing start method ("/ifm/sbin/start_dovecot") ] [ May 20 15:24:04 Method "start" exited with status 0 ] [ May 20 19:42:25 Stopping because process dumped core. ] [ May 20 19:42:25 Executing stop method (:kill) ] [ May 20 19:42:56 Method or service exit timed out. Killing contract 7854 ] [ May 20 21:26:45 Leaving maintenance because clear requested. ] [ May 20 21:26:45 Enabled. ] [ May 20 21:26:46 Executing start method ("/ifm/sbin/start_dovecot") ] [ May 20 21:26:46 Method "start" exited with status 0 ] [ May 21 08:35:34 Stopping because process dumped core. ] [ May 21 08:35:34 Executing stop method (:kill) ] [ May 21 08:35:34 Executing start method ("/ifm/sbin/start_dovecot") ] [ May 21 08:35:34 Method "start" exited with status 0 ]
Hmm...
Ah! The Solaris SMF FAQ 4.5 has a good answer on how to fix that. Add the following to the Solaris SMF manifest that controls Dovecot:
Please find enclosed an updated Solaris SMF manifest that others might be interested in using on Solaris 10/OpenSolaris systems...
- Peter