[Dovecot] Unknown dict module: db with expire plugin
Nicolas Letellier
nicolas at nicoelro.net
Wed Jan 28 10:30:12 EET 2009
Hello.
I use dovecot 1.1.8 in a FreeBSD 6.3
Today, I want to active expire plugin.
But it does not work. I made instructions described in http://wiki.dovecot.org/Plugins/Expire for a bdb database.
See my dovecot -n:
# 1.1.8: /usr/local/etc/dovecot.conf
# OS: FreeBSD 6.3-RELEASE-p4 i386 ufs
syslog_facility: local6
ssl_cert_file: /etc/ssl/mail/***********.cert
ssl_key_file: /etc/ssl/mail/********************.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_user: dovecot-auth
login_greeting: **************************
login_processes_count: 2
verbose_proctitle: yes
first_valid_uid: 143
last_valid_uid: 143
first_valid_gid: 143
last_valid_gid: 143
mail_access_groups: mail
mail_location: maildir:/var/mail/vmail/%u/
mail_plugins: quota imap_quota mail_log expire
imap_client_workarounds: delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep
auth default:
mechanisms: plain login
passdb:
driver: sql
args: /usr/local/etc/dovecot/dovecot-sql.conf
userdb:
driver: sql
args: /usr/local/etc/dovecot/dovecot-sql.conf
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
master:
path: /var/run/dovecot/auth-master
mode: 432
user: dovecot
group: mail
plugin:
quota: maildir
quota_rule: *:storage=1000M
quota_rule2: Trash:storage=50M
quota_warning: storage=80%% /usr/home/scripts/mail_quota-warning.sh 80
quota_warning2: storage=90%% /usr/home/scripts/mail_quota-warning.sh 90
quota_warning3: storage=95%% /usr/home/scripts/mail_quota-warning.sh 95
sieve: /var/mail/vmail/%u/sieve
expire: Trash 7 Trash/* 7 Junk 2
expire_dict: proxy::expire
dict:
expire: db:/var/lib/dovecot/expire.db
The /var/lib/dovecot/expire.db file is not automatically created. So I created it, with root rights. After, the file is always to 0 bytes.
When I want to dovecot --exec-mail ext /usr/local/libexec/dovecot/expire-tool --test
I have this: Error: read(/var/run/dovecot/dict-server) failed: Remote disconnected
And in my logs:
Jan 28 09:24:36 ******** dovecot: dict: Unknown dict module: db
Jan 28 09:24:36 ******** dovecot: dict: Failed to initialize dictionary 'expire'
I do not understand the problem. I made instructions on the wiki page. Is anybody could help me to resolve this?
Thanks.
Regards,
(ps : another question : what's the advantage of expire plugin with a manual cron job?)
--
-Nicolas.
More information about the dovecot
mailing list