[Dovecot] Problems with Expire Plugin

Jose Luis Marin Perez jolumape_al at hotmail.com
Sat Jul 11 01:41:48 EEST 2009


I appreciate the explanation. 

The Papelera folder is set to expire in 1 day
 
The Trash folder is empty, Yesterda when
I copy the first mail a the folder Papelera, the table expires is updated.

+---------------------------------------------+-----------------------------+
| mailbox                                     | from_unixtime(expire_stamp) |
+---------------------------------------------+-----------------------------+
| jmarin at sistemasunidos.com/INBOX.Papelera | 2009-07-10 17:20:30         |
+---------------------------------------------+-----------------------------+

Before of 2009-07-10 17:20:30, when run expire-tool --test showed this message:

[root at mail ~]# dovecot --exec-mail ext /usr/local/libexec/dovecot/expire-tool --test
Info: jmarin at enlaceaduanero.com.pe/INBOX.Papelera: stop, expire time in future: Fri Jul 10 17:20:30 2009

After of 2009-07-10 17:20:30, when run expire-tool did not show any message and delete data from table expires.

In reviewing the Trash folder, the mail that was copied was maintained. 

 This problem may be with the version of dovecot 1.1.6 or settings of Maildir or namespace? 

Thanks for your help!!

dovecot -n

# 1.1.16: /usr/local/etc/dovecot.conf
Warning: There is no way to login to this server: disable_plaintext_auth=yes, ssl-disable=yes, no non-plaintext auth mechanisms.
# OS: Linux 2.6.9-67.0.7.EL i686 CentOS release 4.6 (Final)
log_path: /var/log/dovecot.log
protocols: imap
listen: *:10143
ssl_disable: yes
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 autocreate expire
namespace:
  type: private
  separator: .
  prefix: INBOX.
  inbox: yes
  list: yes
  subscriptions: yes
auth default:
  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
  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
  quota_rule3: Papelera:ignore
  expire: INBOX.Papelera 1 INBOX.Papelera.* 1
  expire_dict: proxy::expire
  autocreate: INBOX.Papelera
  autosubscribe: INBOX.Papelera
dict:
  expire: mysql:/usr/local/etc/dovecot-dict-expire.conf




> From: tss at iki.fi
> To: jolumape_al at hotmail.com
> Date: Mon, 27 Jul 2009 16:45:56 -0400
> CC: dovecot at dovecot.org
> Subject: Re: [Dovecot] Problems with Expire Plugin
> 
> I'm getting tired of explaining again and again how expire plugin is
> supposed to work, so I added now Example #1 timeline and Example #2
> timeline to http://wiki.dovecot.org/Plugins/Expire which tell exactly
> what is supposed to happen with a couple of examples. Do they finally
> help understanding how exactly things are supposed to work?
> 
> Unfortunately X-SAVEDATE doesn't work with current 1.2 versions, because
> of a bug. If you want to look at them, you can apply this patch to
> v1.2.1: http://hg.dovecot.org/dovecot-1.2/rev/f353c5b71097
> 
> On Fri, 2009-07-10 at 10:58 -0500, Jose Luis Marin Perez wrote:
> > Dear Timo,
> > 
> > As I understand with regard to Expire plugin is marking the folder will
> > be deleted in a certain amount of days and that the deletion is
> > performed by expire-tool 
> > 
> >  Expire plugin works correctly, and
> > I can check on the database folder has been marked, the problem is with
> > expire-tool as it does the deletion. 
> > 
> >  This is intended to expire Expire Plugin-tool?
> > 
> > Please require your help to solve this problem. 
> > 
> >  I apologize for my low level of knowledge about these issues, but what interests me is to learn.
> > 
> > Thanks
> > 
> > Jose Luis
> > 
> > > From: jolumape_al at hotmail.com
> > > To: tss at iki.fi
> > > Date: Thu, 9 Jul 2009 14:18:28 -0500
> > > CC: dovecot at dovecot.org
> > > Subject: Re: [Dovecot] Problems with Expire Plugin
> > > 
> > > 
> > > Dear Timo
> > > 
> > > I have set up crontab to run the tool expires at midnight 
> > > 
> > >  When running with the --test option: 
> > > 
> > > Info: User lookup failed: jmarin at sistemasunidos.com
> > > Info: jmarin at sistemasunidos.com/INBOX.Papelera: no messages left
> > > 
> > > When running without the --test option: 
> > > 
> > > Does not leave any message and there are no data in the table expires of Mysql
> > > 
> > >  I reviewed the Trash folder and still holds the emails. 
> > > 
> > > 
> > > It should be noted that for purposes of the test today I sent two
> > > emails and copied to the Papelera folder so that after executing the
> > > end-tool should be removed
> > > 
> > > Thanks
> > > 
> > > Jose Luis
> > > 
> > > > Subject: Re: [Dovecot] Problems with Expire Plugin
> > > > From: tss at iki.fi
> > > > To: jolumape_al at hotmail.com
> > > > CC: dovecot at dovecot.org
> > > > Date: Thu, 9 Jul 2009 14:57:19 -0400
> > > > 
> > > > On Thu, 2009-07-09 at 12:12 -0500, Jose Luis Marin Perez wrote:
> > > > >  Now my problem is with expire-tool because it is not deleting the
> > > > > emails in the folder that has been marked by Expire Plugin. 
> > > > 
> > > > Did you read how exactly it works?
> > > > http://wiki.dovecot.org/Plugins/Expire
> > > > 
> > > > >  This is the command that I run through crontab:
> > > > > 
> > > > > /usr/local/sbin/dovecot --exec-mail ext /usr/local/libexec/dovecot/expire-tool
> > > > 
> > > > Giving --test parameter shows what it's really doing.
> > > > 
> > > > > | jmarin at sistemasunidos.com/INBOX.Papelera |   1247162400 |
> > > > 
> > > > 1247162400 = Thu Jul  9 18:00:00 UTC 2009
> > > > 
> > > > So it should have started checking and expunging oldest message(s) from
> > > > this mailbox about an hour ago (as of when I'm writing this mail).
> > > > 
> > > 
> > > _________________________________________________________________
> > > News, entertainment and everything you care about at Live.com. Get it now!
> > > http://www.live.com/getstarted.aspx
> > 
> > _________________________________________________________________
> > Explore the seven wonders of the world
> > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx


More information about the dovecot mailing list