Dovecot Logging and Shell Script Hang

Aki Tuomi aki.tuomi at open-xchange.com
Wed Feb 27 20:00:22 EET 2019


> On 27 February 2019 18:49 Asai via dovecot <dovecot at dovecot.org> wrote:
> 
> 
> Greetings,
> 
> We have a PHP based shell script that runs a doveadm backup routine.
> 
> This script was running just fine, and then we turned on more logging for Dovecot (enabled the mail_log plugin). For some reason, once this was done, the shell script would run for a few minutes and then hang, as it added more log messages to the dsync STDOUT. Once the mail_log plugin was disabled, it ran without hanging.
> 
> Is there any way to run doveadm and temporarily suspend the mail_log plugin? Or is there a better way to do this?
> 
> Thanks for the insights.
> 
> Asai
>

You might want to enable mail_log plugin for imap/pop3 protocols only.

protocol imap {
   mail_plugins = $mail_plugins mail_log
}

protocol pop3 {
   mail_plugins = $mail_plugins mail_log
}

Aki


More information about the dovecot mailing list