autoexpunge problems

Olaf Hopp Olaf.Hopp at kit.edu
Fri Dec 18 10:26:49 UTC 2015


Hello,
I tried to use the new autoexpunge for my Trash folders
I had in 15-mailboxes.conf

  mailbox Trash {
  special_use = \Trash
  auto = subscribe
  }

(dovecot -n of the original config is below)
and added just the line
       autoexpunge = 1h
Just a short period on my test system.
But it failed. In the log I see

Dec 18 10:54:07 irams2 dovecot: imap(ms2test): Error: Failed to autoexpunge mailbox 'Trash': Invalid mailbox name 'Trash': Missing namespace prefix 'INBOX.'

But in 10-mail.conf I have

namespace inbox {
   prefix = INBOX.
   separator = .
   inbox = yes
}

So I changed the line "mailbox Trash" to "mailbox  INBOX.Trash". I now have

  mailbox INBOX.Trash {
  special_use = \Trash
  auto = subscribe
  autoexpunge = 1h
  }

Now it seems to work (Trash is emptied, log file is fine)
but in the mail client I see two Trash folders.
Once the normal one below INBOX and another one also called
Trash which is under a new created folder named INBOX below the original INBOX
Thus I have

INBOX
INBOX.Trash
INBOX.INBOX.Trash

autoexpunge seems to work, but this is not what I like to offer to my users.

Any glues ?
Olaf



# 2.2.21 (5345f22): /opt/dovecot/etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.10 (d61ff8a5af9e+)
doveconf: Warning: service auth { client_limit=2000 } is lower than required under max. load (23192)
doveconf: Warning: service anvil { client_limit=2000 } is lower than required under max. load (17195)
# OS: Linux 2.6.32-573.12.1.el6.x86_64 x86_64 CentOS release 6.7 (Final)
auth_failure_delay = 3 secs
auth_master_user_separator = *
auth_mechanisms = plain login
auth_username_format = %Ln
auth_verbose = yes
auth_worker_max_count = 60
default_client_limit = 2000
default_process_limit = 3000
mail_location = maildir:~/Maildir
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart
mbox_write_locks = fcntl
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
     auto = subscribe
     special_use = \Drafts
   }
   mailbox Sent {
     auto = subscribe
     special_use = \Sent
   }
   mailbox Trash {
     auto = subscribe
     special_use = \Trash
   }
   mailbox spambox {
     auto = create
     special_use = \Junk
   }
   prefix = INBOX.
   separator = .
}
passdb {
   args = /etc/dovecot/master-users
   driver = passwd-file
   master = yes
}
passdb {
   args = dovecot
   driver = pam
}
plugin {
   sieve = file:~/sieve;active=~/.dovecot.sieve
   sieve_before = /etc/dovecot/sieve-master
   sieve_max_redirects = 20
}
protocols = imap pop3 lmtp sieve sieve
quota_full_tempfail = yes
service imap-login {
   process_limit = 8192
   process_min_avail = 16
   service_count = 0
}
service imap {
   process_limit = 8192
}
service lmtp {
   executable = lmtp -L
}
service managesieve-login {
   inet_listener sieve {
     port = 4190
   }
}
service pop3 {
   process_limit = 8192
}
ssl = required
ssl_ca = </etc/pki/tls/certs/chain.pem
ssl_cert = </etc/pki/tls/certs/imap.pem
ssl_key = </etc/pki/tls/private/imap.key
ssl_prefer_server_ciphers = yes
ssl_protocols = !SSLv2 !SSLv3
syslog_facility = local3
userdb {
   driver = passwd
}
verbose_proctitle = yes
protocol lmtp {
   mail_plugins = " sieve"
}
protocol imap {
   mail_max_userip_connections = 100
   ssl_cert = </etc/pki/tls/certs/imap.pem
   ssl_key = </etc/pki/tls/private/imap.key
}
protocol pop3 {
   ssl_cert = </etc/pki/tls/certs/pop.pem
   ssl_key = </etc/pki/tls/private/pop.key
}







--
Karlsruher Institut für Technologie (KIT)
ATIS - Abt. Technische Infrastruktur, Fakultät für Informatik

Dipl.-Geophys. Olaf Hopp
- Leitung IT-Dienste -

Am Fasanengarten 5, Gebäude 50.34, Raum 009
76131 Karlsruhe
Telefon: +49 721 608-43973
Fax: +49 721 608-46699
E-Mail: Olaf.Hopp at kit.edu
atis.informatik.kit.edu

www.kit.edu

KIT – Die Forschungsuniversität in der Helmholtz-Gemeinschaft

Das KIT ist seit 2010 als familiengerechte Hochschule zertifiziert.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5304 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20151218/6753274c/attachment.p7s>


More information about the dovecot mailing list