[Dovecot] Expire plugin in chkpw-wrapper.sh script

Timo Sirainen tss at iki.fi
Fri Oct 16 02:33:16 EEST 2009


Stop sending the same mail every few hours.

On Thu, 2009-10-15 at 18:14 -0500, Jose Luis Marin Perez wrote:
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20091015/ec946c7a/attachment.bin 


More information about the dovecot mailing list