1 (edited by mkokoszkiewicz 2016-12-16 19:30:00)

Topic: Expire issue

Hello,


I'm struggling with "expire" module. I believe that everything is set correctly. I have modified config file using this documentation: http://wiki2.dovecot.org/Plugins/Expire

Bits of dovecot.conf related to the expire plugin configuration:

mail_plugins = quota zlib expire
dict {
#  acl = mysql:/etc/dovecot/dovecot-share-folder.conf
  expire = mysql:/etc/dovecot/dovecot-dict-expire.conf.ext
  quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
}

plugin {
    expire_dict = proxy::expire
    expire = Trash 7 Trash/* 7 Junk 30 Sent 30
    expire_dict = proxy::expire
    expire_cache = yes
}

Contents of the /etc/dovecot/dovecot-dict-expire.conf.ext file

connect = host=secret dbname=vmail user=vmail password=secret

map {
  pattern = shared/expire/$user/$mailbox
  table = expires
  value_field = expire_stamp

  fields {
    username = $user
    mailbox = $mailbox
  }
}


Is there anything else I should do to make this work? There is nothing in the logs related to the expire plugin even with Dovecot in debug mode, also the MySQL table (expires) is empty.

==== Required information ====
- iRedMail version 0.9.5-1
- Linux/BSD distribution name and version: CentOS 6.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: Nothing in log
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Expire issue

CentOS 6 uses Dovecot-2.0.x, if i remember correctly, the expire plugin in 2.0.x is buggy, you'd better upgrade to Dovecot 2.2.x to get it working.

3

Re: Expire issue

ZhangHuangbin wrote:

CentOS 6 uses Dovecot-2.0.x, if i remember correctly, the expire plugin in 2.0.x is buggy, you'd better upgrade to Dovecot 2.2.x to get it working.


We are using Dovecot 2.2.27 version:

[root@XXXX]# dovecot --version
2.2.27 (c0f36b0)

4

Re: Expire issue

Great, you build your own package, or use a third-party repo.
According to Dovecot wiki, you should use "autoexpunge setting" instead:
http://wiki2.dovecot.org/MailboxSettings