[Dovecot] dovecot expire doesn't work (?)
LÉVAI Dániel
leva at ecentrum.hu
Wed Oct 29 21:14:58 EET 2008
On Wednesday 29 October 2008 15.53.24 you wrote:
> On Wed, 2008-10-29 at 15:25 +0100, LÉVAI Dániel wrote:
> > >> That is, if I want to expire the emails under the
> > >> spamassassin/SPAM directory, after 1 day. Is this correct? I'm
> > >> asking this because with this setup, the expire-tool does
> > >> nothing... nothing in the logs either.
> > >
> > > Try and set mail_debug=yes. It should log more.
> >
> > Done.
> >
> > When I ran `dovecot --exec-mail ext
> > /usr/local/libexec/dovecot/expire-tool --test', it told me that:
> > Info: leva/spamassassin.SPAM: stop, expire time in future:
> > 1225290174
>
> Sounds like it's working. It just wasn't time yet to expunge the
> oldest mail from there:
>
> % unix2date.sh -u 1225290174
> Wed Oct 29 14:22:54 UTC 2008
>
> Running it again now would show that it's going to expunge it?
Unfortunately not:
# ls -lrt $USER/Maildir/.spamassassin.SPAM/cur/
1840 Oct 25 03:17:55 2008 1225137329.[...],W=1890,S=1840:2,S
1978 Oct 25 04:32:37 2008 1225137329.[...],W=2028,S=1978:2,S
3773 Oct 25 13:12:23 2008 1225137329.[...],W=3841,S=3773:2,S
2749 Oct 26 02:10:28 2008 1225137329.[...],W=2835,S=2749:2,S
3783 Oct 26 13:15:36 2008 1225137329.[...],W=3852,S=3783:2,S
13172 Oct 26 18:30:16 2008 1225137329.[...],W=13377,S=13172:2,S
2292 Oct 27 08:00:07 2008 1225137329.[...],W=2340,S=2292:2,S
1985 Oct 27 08:00:10 2008 1225137329.[...],W=2031,S=1985:2,S
26644 Oct 27 16:02:35 2008 1225137329.[...],W=27234,S=26644:2,S
3209 Oct 27 16:23:57 2008 1225137329.[...],W=3282,S=3209:2,S
3155 Oct 27 19:13:38 2008 1225290969.[...],W=3210,S=3155:2,S
3193 Oct 27 22:11:38 2008 1225291087.[...],W=3267,S=3193:2,S
4444 Oct 28 01:06:51 2008 1225203774.[...],W=4502,S=4444:2,S
4793 Oct 28 09:42:31 2008 1225203785.[...],W=4849,S=4793:2,S
2925 Oct 28 14:04:10 2008 1225203793.[...],W=2977,S=2925:2,S
3727 Oct 28 17:51:33 2008 1225218230.[...],W=3819,S=3727:2,S
255537 Oct 29 00:27:32 2008 1225236452.[...],S=255537,W=259071:2,S
4021 Oct 29 04:02:59 2008 1225249379.[...],S=4021,W=4119:2,S
2802 Oct 29 16:03:29 2008 1225292609.[...],S=2802,W=2874:2,S
You see the oldest message is dated back four days from now, and no
matter if I run the expire-tool without the --test option, it won't
expunge them. Although all of the messages was saved by dovecot's
deliver, the expire-tool doesn't seem to recognize but one of the
messages. That is the last one, created on Oct 29, 16:03.
# /usr/local/sbin/dovecot --exec-mail \
ext /usr/local/libexec/dovecot/expire-tool --test
Info: leva/spamassassin.SPAM: stop, expire time in future: 1225379009
# date -r 1225379009
Thu Oct 30 16:03:29 CET 2008
Daniel
--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
More information about the dovecot
mailing list