Package: dovecot-imapd
Version: 1:1.1.11-3
Severity: wishlist
Tags: patch
(I tried to submit this upstream via GMane, but it's queued for
moderation. In the meantime...)
The expire configuration in the example config file in 1.1.11 is broken:
r...@omega:/etc/dovecot# /etc/init.d/dovecot restart
Restarting IMAP/POP3 mail server: dovecot
Unknown dict module: db
expire plugin: dict_init() failed
Error: imap dump-capability process returned 89
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
failed!
It's inconsistent with the documentation at
http://wiki.dovecot.org/Plugins/Expire, so I've made the attached patch
to try and fix it.
Note: I don't know if this new configuration is correct either, because
its a new box and I've not got any mails old enough to cause the plugin
to try and write anything, but at least I can start dovecot like this. :)
Regards,
Rob
--- dovecot-1.1.11/dovecot-example.conf~ 2009-03-06 17:28:46.785662296 +0000
+++ dovecot-1.1.11/dovecot-example.conf 2009-03-06 17:29:23.082571853 +0000
@@ -1057,7 +1057,8 @@
# referenced using URIs in format "proxy::<name>".
dict {
- #quota = mysql:/etc/dovecot-dict-quota.conf
+ #expire = db:/var/lib/dovecot/expire.db
+ #quota = mysql:/etc/dovecot-dict-quota.conf
}
# Path to Berkeley DB's configuration file. See doc/dovecot-db-example.conf
@@ -1136,7 +1137,7 @@
# you must set up:
# dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool
#expire = Trash 7 Spam 30
- #expire_dict = db:/var/lib/dovecot/expire.db
+ #expire_dict = proxy::expire
# Lazy expunge plugin. Currently works only with maildirs. When a user
# expunges mails, the mails are moved to a mailbox in another namespace