[Dovecot] Expire plugin in chkpw-wrapper.sh script
Jose Luis Marin Perez
jolumape_al at hotmail.com
Fri Oct 16 02:14:30 EEST 2009
Dear Timo,
I'm trying to extend the configuration of vchkpw-wrapper.sh script by adding the expire plugin as follows:
#!/bin/bash
DOMAIN=`echo $VPOPUSER|sed s/^.*@//`
if [ "$DOMAIN" = "operaciones.qnet.com.pe" ]; then
export USERDB_AUTOCREATE=INBOX.Spam
export USERDB_AUTOSUBSCRIBE=INBOX.Spam
export USERDB_EXPIRE="INBOX.Spam 1 INBOX.Spam.* 1"
export USERDB_EXPIRE_DICT="proxy::expire"
export EXTRA="USERDB_AUTOCREATE USERDB_AUTOSUBSCRIBE USERDB_EXPIRE USERDB_EXPIRE_DICT"
fi
unset USER
exec $*
In the database no problem
mysql> select * from expires;
+-------------------------------------------+--------------+
| mailbox | expire_stamp |
+-------------------------------------------+--------------+
| jmarin at operaciones.qnet.com.pe/INBOX.Spam | 1255701608 |
+-------------------------------------------+--------------+
1 row in set (0.00 sec)
But when you run the command
/usr/local/sbin/dovecot --exec-mail ext /usr/local/libexec/dovecot/expire-tool --test
Displays the following message
Fatal: expire and expire_altmove settings not set
That may be happening?
Thanks
Jose Luis
dovecot -n
# 1.1.16: /usr/local/etc/dovecot.conf
# OS: Linux 2.6.9-67.0.15.plus.c4smp i686 CentOS release 4.6 (Final)
log_path: /var/log/dovecot.log
listen: *:10143
ssl_listen: *:10943
disable_plaintext_auth: no
login_dir: /usr/local/var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
first_valid_uid: 89
last_valid_uid: 89
first_valid_gid: 89
last_valid_gid: 89
mail_uid: 89
mail_gid: 89
mail_location: maildir:~/Maildir
mail_debug: yes
mail_plugins: quota imap_quota expire mail_log autocreate
namespace:
type: private
separator: .
prefix: INBOX.
inbox: yes
list: yes
subscriptions: yes
auth default:
debug: yes
passdb:
driver: checkpassword
args: /usr/vpopmail/bin/vchkpw /usr/local/bin/vchkpw-wrapper.sh
userdb:
driver: prefetch
args: uid=89 gid=89 home=/usr/vpopmail/domains/%d/%u
userdb:
driver: vpopmail
socket:
type: listen
master:
path: /usr/local/var/run/dovecot/auth-master
mode: 384
user: vpopmail
group: vchkpw
plugin:
quota: maildir
quota_rule: ?:storage=0
quota_rule2: Trash:ignore
expire_dict: proxy::expire
mail_log_events: delete undelete expunge copy mailbox_delete
mail_log_group_events:
mail_log_fields: uid box msgid size
dict:
expire: mysql:/usr/local/etc/dovecot-dict-expire.conf
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
More information about the dovecot
mailing list