[Dovecot] Trouble with expire plugin

Gedalya gedalya at gedalya.net
Wed Jan 9 15:37:41 EET 2013


On 01/09/2013 02:32 AM, Robert Schetterer wrote:
>>> my daily cron job says:
>>> >>
>>> >>#!/bin/sh
>>> >>doveadm expunge -A mailbox Junk savedbefore 14d
>>> >>doveadm expunge -A mailbox Trash savedbefore 30d
>>> >>doveadm expunge -A mailbox "Trash.*" savedbefore 30d
> do verbose logging during cron
>
>
> Best Regards
> MfG Robert Schetterer
No need, I have indeed already gone beyond the "but I made a cron job, 
why isn't it working" point.

mysql> select * from expires;
.
.
.
7 rows in set (0.00 sec)

Complete doveadm output with domain masked:

# doveadm -D search -A mailbox Trash savedbefore 14d
doveadm(root): Debug: Loading modules from directory: 
/usr/lib/dovecot/modules
doveadm(root): Debug: Module loaded: 
/usr/lib/dovecot/modules/lib10_quota_plugin.so
doveadm(root): Debug: Module loaded: 
/usr/lib/dovecot/modules/lib20_expire_plugin.so
doveadm(root): Debug: Module loaded: 
/usr/lib/dovecot/modules/lib20_listescape_plugin.so
doveadm(root): Debug: Loading modules from directory: 
/usr/lib/dovecot/modules/doveadm
doveadm(root): Debug: Skipping module doveadm_acl_plugin, because 
dlopen() failed: 
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so: undefined 
symbol: acl_user_module (this is usually intentional, so just ignore 
this message)
doveadm(root): Debug: Module loaded: 
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_expire_plugin.so
doveadm(root): Debug: Module loaded: 
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so
doveadm(root): Debug: Skipping module doveadm_zlib_plugin, because 
dlopen() failed: 
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_zlib_plugin.so: undefined 
symbol: i_stream_create_deflate (this is usually intentional, so just 
ignore this message)
doveadm(root): Debug: Skipping module doveadm_fts_plugin, because 
dlopen() failed: 
/usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so: undefined 
symbol: fts_list_backend (this is usually intentional, so just ignore 
this message)
doveadm(root): Debug: expire: Searching only users listed in expire database
doveadm(root): Debug: expire: Stopping iteration on key 
shared/expire/jedi1 at xxxxxx.com/Trash (1357165578 > 1356528524)


mysql> select * from expires;
.
.
.
6 rows in set (0.00 sec)

The row being deleted: levy at xxxxxxx.com, Junk, 1350397036 (Tue Oct 16 
10:17:16 EDT 2012), all others at this point in time are younger than 14 
days.
So far it has seemed to me that running any search or expunge has the 
sole effect of deleting rows matching the savedbefore criteria, 
regardless of the mailbox criteria.

working with doveadm -o"mail_plugins=....." leaving out expire seems to 
work fine.




More information about the dovecot mailing list