[Dovecot] MailDIR and expire plugin
All of the mailboxes on this system are in MailDIR format. None of the users delete mail off of the server after POPing their accounts. This is the present setting:
expire = Trash 7 Spam 30 expire_dict = proxy::expire
Is that correct for MailDIR style mailboxes? It doesn't appear correct; however, I have not been able to find any specific documentation on expire with MailDIR style mailboxes. I am assuming that the expire plugin will work since IMAP has not been implemented on this server.
-- Jerry |::::======= gesbbb@yahoo.com |::::======= |=========== |=========== | QOTD: "Wouldn't it be wonderful if real life supported control-Z?"
On Thu, 2009-10-15 at 06:10 -0400, Jerry wrote:
All of the mailboxes on this system are in MailDIR format. None of the users delete mail off of the server after POPing their accounts. This is the present setting:
expire = Trash 7 Spam 30 expire_dict = proxy::expire
Is that correct for MailDIR style mailboxes?
The configuration is the same for maildir and everything else.
It doesn't appear correct;
Why?
Anyway, the important part is what does your namespace configuration look like? Post your dovecot -n output.
On Thu, 15 Oct 2009 13:33:01 -0400 Timo Sirainen tss@iki.fi wrote:
On Thu, 2009-10-15 at 06:10 -0400, Jerry wrote:
All of the mailboxes on this system are in MailDIR format. None of the users delete mail off of the server after POPing their accounts. This is the present setting:
expire = Trash 7 Spam 30 expire_dict = proxy::expire
Is that correct for MailDIR style mailboxes?
The configuration is the same for maildir and everything else.
It doesn't appear correct;
Why?
Anyway, the important part is what does your namespace configuration look like? Post your dovecot -n output.
OK!
# 1.2.4: /usr/local/etc/dovecot.conf # OS: FreeBSD 7.2-STABLE i386 ufs log_path: /usr/home/gerard/dovecot.log info_log_path: /usr/home/gerard/dovecot.log protocols: pop3 pop3s managesieve listen(default): * listen(pop3): * listen(managesieve): localhost:2000 disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/local/libexec/dovecot/pop3-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login login_executable(managesieve): /usr/local/libexec/dovecot/managesieve-login login_greeting: Greetings From Seibercom.net verbose_proctitle: yes first_valid_uid: 1000 first_valid_gid: 1000 mail_privileged_group: mail mail_location: maildir:/var/mail/vhost/%d/%n mail_executable(default): /usr/local/libexec/dovecot/pop3 mail_executable(pop3): /usr/local/libexec/dovecot/pop3 mail_executable(managesieve): /usr/local/libexec/dovecot/managesieve mail_plugins(default): expire mail_plugins(pop3): expire mail_plugins(managesieve): mail_plugin_dir(default): /usr/local/lib/dovecot/pop3 mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 mail_plugin_dir(managesieve): /usr/local/lib/dovecot/managesieve pop3_client_workarounds(default): outlook-no-nuls oe-ns-eoh pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh pop3_client_workarounds(managesieve): dict_db_config: /usr/local/etc/dovecot-db.conf managesieve_logout_format(default): bytes=%i/%o managesieve_logout_format(pop3): bytes=%i/%o managesieve_logout_format(managesieve): bytes ( in=%i : out=%o ) lda: postmaster_address: postmaster@seibercom.net mail_plugins: expire sieve: /usr/local/etc/dovecot/sieve/gerard.sieve sieve_global_path: /usr/local/etc/dovecot/sieve/gerard.sieve sendmail_path: /usr/sbin/sendmail auth default: mechanisms: plain login cram-md5 digest-md5 username_chars: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@+ username_format: %Lu passdb: driver: sql args: /usr/local/etc/dovecot-sql.conf userdb: driver: sql args: /usr/local/etc/dovecot-sql.conf socket: type: listen client: path: /var/run/dovecot/auth-client mode: 438 master: path: /var/run/dovecot/auth-master mode: 438 plugin: expire: Trash 7 Spam 30 expire_dict: proxy::expire dict: expire: mysql:/usr/local/etc/dovecot-dict-expire.conf
On Thu, 2009-10-15 at 14:36 -0400, Jerry wrote:
It doesn't appear correct;
Why?
Anyway, the important part is what does your namespace configuration look like? Post your dovecot -n output.
OK!
# 1.2.4: /usr/local/etc/dovecot.conf ..
Everything looks correct. Doesn't it work?
On Thu, 15 Oct 2009 15:22:46 -0400 Timo Sirainen tss@iki.fi wrote:
On Thu, 2009-10-15 at 14:36 -0400, Jerry wrote:
It doesn't appear correct;
Why?
Anyway, the important part is what does your namespace configuration look like? Post your dovecot -n output.
OK!
# 1.2.4: /usr/local/etc/dovecot.conf ..
Everything looks correct. Doesn't it work?
Maybe I am looking at it wrong. I have checked the SQL entries, and nothing is ever entered into them. Shouldn't there be or does that not occur until after the number of days, in my case 7, occurs?
I have this entered into CRON, and I checked and it being run.
@midnight /usr/local/sbin/dovecot --exec-mail ext /usr/local/libexec/dovecot/expire-tool
I have used the "test" mode also; without any output.
-- Jerry |::::======= gesbbb@yahoo.com |::::======= |=========== |=========== | A political man can have as his aim the realization of freedom, but he has no means to realize it other than through violence.
Jean Paul Sartre
On Thu, 2009-10-15 at 06:10 -0400, Jerry wrote:
All of the mailboxes on this system are in MailDIR format. None of the users delete mail off of the server after POPing their accounts. This is the present setting:
expire = Trash 7 Spam 30 expire_dict = proxy::expire
Is that correct for MailDIR style mailboxes?
Hmm. Maybe I misunderstood what you mean. What exactly is it that you want? You have only POP3 users, which only have their INBOX? So they don't really have any Trash or Spam folders? And you just want to delete old mails from their INBOX? In that case, use something like:
expire = INBOX 30
On Thu, 15 Oct 2009 18:10:58 -0400 Timo Sirainen tss@iki.fi wrote:
On Thu, 2009-10-15 at 06:10 -0400, Jerry wrote:
All of the mailboxes on this system are in MailDIR format. None of the users delete mail off of the server after POPing their accounts. This is the present setting:
expire = Trash 7 Spam 30 expire_dict = proxy::expire
Is that correct for MailDIR style mailboxes?
Hmm. Maybe I misunderstood what you mean. What exactly is it that you want? You have only POP3 users, which only have their INBOX? So they don't really have any Trash or Spam folders? And you just want to delete old mails from their INBOX? In that case, use something like:
expire = INBOX 30
Now that makes more sense. I thought it might be something like that; however, I could not find any definitive documentation on it.
-- Jerry |::::======= gesbbb@yahoo.com |::::======= |=========== |=========== | To get something clean, one has to get something dirty. To get something dirty, one does not have to get anything clean.
participants (2)
-
Jerry
-
Timo Sirainen