[Dovecot] dovecot v1.2.1 expire-tool with mail_log enabled

e-frog e-frog at gmx.de
Mon Jul 13 21:28:33 EEST 2009


Nikita Koshikov wrote:
> Hello list,
> 
> Sorry, if it has been asked, but searching throught list not give possitive answers.
> 
> After upgrade to dovecot version 1.2.1 expire-tool stoped working. I have changed database format and config file to appropriative 1.2 version but:
> 
> expire-tool.sh fails with:
> # dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext /usr/libexec/dovecot/expire-tool.sh
> 

You are already using the wrapper for expire-tool ... to remove the imap_quota plugin?

> Info: Loading modules from directory: /usr/lib/dovecot/imap
> Info: Module loaded: /usr/lib/dovecot/imap/lib10_quota_plugin.so
> Info: Module loaded: /usr/lib/dovecot/imap/lib11_trash_plugin.so
> Info: Module loaded: /usr/lib/dovecot/imap/lib20_expire_plugin.so
> Info: Module loaded: /usr/lib/dovecot/imap/lib20_fts_plugin.so
> Error: dlopen(/usr/lib/dovecot/imap/lib20_mail_log_plugin.so) failed: /usr/lib/dovecot/imap/lib20_mail_log_plugin.so: undefined symbol: imap_write_flags
> Fatal: Couldn't load required plugins
> 
> When I diasabled mail_log plugin from imap section, everything start working, as expected and expire-tool delete old mail.
> 

I think you also need to remove the mail_log plugin from the environment:

expire-tool.sh:
...
MAIL_PLUGINS=${MAIL_PLUGINS//imap_quota/}
MAIL_PLUGINS=${MAIL_PLUGINS//mail_log/}
...



More information about the dovecot mailing list