Hi all,
I finally manged to create somehow shared folders in dovecot imap ...
After a number trials I came up with this conf from my test server #----------------------------------------------------------------------------------------------------------
#dovecot --build-options SQL drivers: mysql Passdb: checkpassword pam passwd passwd-file shadow sql Userdb: nss passwd passwd-file prefetch sql static #----------------------------------------------------------------------------------------------------------- protocols = imap imaps log_timestamp = "%Y-%m-%d %H:%M:%S " ssl_cert_file = /etc/postfix/sasl/mycert.pem ssl_key_file = /etc/postfix/sasl/mycert.pem mail_location = maildir:~/Maildir
namespace private { separator = / prefix =
location = maildir:~/Maildir inbox = yes } namespace public { prefix = Public/ separator = / location = maildir:/var/Public:INBOX=~/Maildir:INDEX=~/Maildir/p-index:CONTROL=~/Maildir/p-ctrl hidden=no subscriptions=no inbox = no } namespace public { prefix = Public2/ separator = / location = mbox:/var/Public2/mboxes:INBOX=~/Maildir:INDEX=~/Maildir/p2-index:CONTROL=~/Maildir/p2-ctrl hidden=no subscriptions=no inbox = no } mail_privileged_group = mail mail_debug = yes valid_chroot_dirs = /var/mail protocol imap { mail_plugins = convert imap_client_workarounds = outlook-idle }
protocol pop3 { pop3_uidl_format = %08Xu%08Xv } auth default { mechanisms = plain login passdb pam { } userdb passwd { } user = root socket listen { client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } } dict { } plugin { } #-------------------------------------------------------------------- However I observed that a) dovecot-shared file is not honored unless located in inside the maildir stucture .... ( just above cur,tmp,new ) b) when mbox format is used dovecot-shared file does not get honored at all ... ( ie a user creates another mailbox in the directory ). c) Is there a way to reject mbox or maildir file/dir creations by the users in a shared folder ??
I've used a mailbox format public namespace in order to be simple and have users dump undetected spam there for latter use in sa-learn --spam .
Please understand that I am quite new to this ( confused as well ), thus some of my questions might seem naive ( at least ) ..
Cheers Harry.