[Dovecot] Expire failing with error Remote Disconnected

dovecot at corwyn.net dovecot at corwyn.net
Sat Feb 14 09:39:35 EET 2009


At 06:22 PM 2/13/2009, Timo Sirainen wrote:
>On Fri, 2009-02-13 at 17:54 -0500, dovecot at corwyn.net wrote:
> > When I delete that, now dovecot --exec-mail ext
> > /usr/libexec/dovecot/expire-tool
> > runs with no errors, no output, no anything.
>
>The expire database is empty, so it has nothing to do. Expire plugin
>updates the database while messages are being saved/copied to the expire
>mailboxes.

So if I understand correctly (obviously not *sigh*) :-)

I have Trash and Spam defined as expire databases, I sent a number of 
messages, and then deleted them. They were then in Trash. I manually 
moved a bunch of messages to Spam as well. The Spam messages were > 
14 days old.

I then reran
dovecot --exec-mail ext  /usr/libexec/dovecot/expire-tool

I still get no events in /var/log/messages, and my Spam messages from 
Jan 22 are still there. On the bright side I do have an expire.db 
file now with data in it, tho I can't quite figure out what makes it update.

shouldn't the messages > 14 days old (the date I have set in.conf) go away?

Aha. So if I run it with --test I get
# dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool --test
Info: test222 at example.com/Trash: stop, expire time in future: Sat Feb 
28 02:26:38 2009

That mean it's working? (and if so why are my messages from 1/22 
still there when I run it without --test?)

Thx!

Rick

As I've been tinkering with dovecot.conf, here's an updated copy:
# 1.1.8: /etc/dovecot.conf
# OS: Linux 2.6.18-92.el5 i686 Red Hat Enterprise Linux Server 
release 5.2 (Tikanga) ext3
ssl_cert_file: /etc/httpd/certs/example.com.crt
ssl_key_file: /etc/httpd/certs/example.com.key.no.password
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_uid: 1015
mail_gid: 105
mail_location: maildir:/var/spool/mail/%d/%n/Maildir
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota expire trash
mail_plugins(imap): quota imap_quota expire trash
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail outlook-idle
imap_client_workarounds(imap): delay-newmail outlook-idle
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
dict_db_config: /etc/dovecot-db.conf
auth default:
   mechanisms: plain login
   passdb:
     driver: sql
     args: /etc/dovecot-sql.conf
   userdb:
     driver: passwd
   userdb:
     driver: sql
     args: /etc/dovecot-sql.conf
   userdb:
     driver: static
   socket:
     type: listen
     client:
       path: /var/spool/postfix/private/auth
       mode: 432
       user: postfix
       group: postfix
     master:
       path: /var/run/dovecot/auth-master
       mode: 384
       user: vuser
       group: vuser
plugin:
   quota: maildir
   quota_rule: *:storage=102400000
   quota_rule2: Trash:storage=100M
   trash: /etc/dovecot-trash.conf
   expire: Trash 14 Trash/* 14 Spam 14
   expire_dict: proxy::expire
dict:
   expire: db:/var/lib/dovecot/expire.db









More information about the dovecot mailing list