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" set > /tmp/environment fi
unset USER exec $*
In the database no problem
mysql> select * from expires; +-------------------------------------------+--------------+ | mailbox | expire_stamp | +-------------------------------------------+--------------+ | jmarin@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
From: jolumape_al@hotmail.com To: dovecot@dovecot.org Date: Wed, 14 Oct 2009 16:38:50 -0500 Subject: Re: [Dovecot] Autocreate plugin for some domains
Thanks Timo.
From: tss@iki.fi To: jolumape_al@hotmail.com Date: Wed, 14 Oct 2009 17:37:25 -0400 CC: dovecot@dovecot.org Subject: Re: [Dovecot] Autocreate plugin for some domains
On Wed, 2009-10-14 at 16:33 -0500, Jose Luis Marin Perez wrote:
working correctly, just wanted to ask if I use the variable VPOPUSER not bring trouble?
Anything that works is fine.
News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx
News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx