[Dovecot] Mixed maildir and mbox folder

Stefan Klatt stefan.klatt at cac-netzwerk.de
Wed May 7 23:13:39 EEST 2008


Hello,

i tried to implement a mixed structure of mbox for spams and spam 
backscatters and maildir for the rest at dovecot 1.0.13.

I used the information at the dovecot wiki:
http://wiki.dovecot.org/Namespaces (Multiple Mailbox Locations)

But if i try this (complete config is attached with this part)

namespace:
  type: private
  separator: /
  prefix: "#md/"
  location: maildir:/srv/imapd/user/%u/maildir
  inbox: yes
  hidden: yes

namespace:
  type: private
  separator: /
  location: mbox:/srv/imapd/user/%u/Spam

thunderbird can't open a maildir folder:-( The msg is " Mailbox doesn't 
exist: XXXX"

If i use this version:

namespace:
  type: private
  separator: /
  location: maildir:/srv/imapd/user/%u/maildir
  inbox: yes

namespace:
  type: private
  separator: /
  prefix: "#mb/"
  location: mbox:/srv/imapd/user/%u/Spam
  hidden: yes

Thunderbird can open maildir folder but no mbox folder.. " Mailbox 
doesn't exist: XXXX" :-(

Where is my fault? Or is this feature first complete implemented at 1.1?
I configured namespaces without hidden like a charme... with hidden i 
run against a wall :-(

Other question... has anybody a script to delete messages older then XY 
days in a mbox file?


Here is my complete config with the first config version:

[root at kronos etc]# dovecot -n
# 1.0.13: /etc/dovecot.conf
ssl_cert_file: /etc/pki/tls/certs/xyz.cert
ssl_key_file: /etc/pki/tls/private/xyz.key
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
login_process_size: 32
mail_access_groups: email
dotlock_use_excl: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins: zlib
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): outlook-idle tb-extra-mailbox-sep
imap_client_workarounds(imap): outlook-idle tb-extra-mailbox-sep
imap_client_workarounds(pop3): outlook-idle
namespace:
  type: private
  separator: /
  prefix: #md/
  location: maildir:/srv/imapd/user/%u/maildir
  inbox: yes
  hidden: yes
namespace:
  type: private
  separator: /
  location: mbox:/srv/imapd/user/%u/Spam
namespace:
  type: public
  separator: /
  prefix: Public/
  location:  
maildir:/srv/imapd/shared/public/maildir:CONTROL=/srv/imapd/user/%u/shared-settings/public/control:INDEX=/srv/imapd/user/%u/shared-settings/public/index
namespace:
  type: public
  separator: /
  prefix: Archiv/
  location: 
mbox:/srv/imapd/shared/archiv/maildir:CONTROL=/srv/imapd/user/%u/shared-settings/archiv/control:INDEX=/srv/imapd/user/%u/shared-settings/archiv/index
auth default:
  passdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  userdb:
    driver: static
    args: uid=600 gid=600

Stefan


More information about the dovecot mailing list