[Dovecot] last hope... public namespace and directory structure
hello,
I would like to migrate to dovecot, but I have a problem with a public namespace declaration:
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-2-amd64 x86_64 Debian wheezy/sid
And here are the relevant parts from the configuration:
namespace {
location = maildir:/var/mail/vhosts/%d/public
prefix = Public.
separator = .
type = public
}
namespace inbox {
prefix =
separator = .
subscriptions = yes
type = private
}
I assume that all folders under ./public/ are public mailboxes. The public folder itself is not a maildir, but contains
the team mailboxes i.e.
./public/.sales/
./public/.service/
./public/.purchase/
The file passwd for those 3 samples looks like this:
sales@$DOMAIN::5000:5000::/var/mail/vhosts/$DOMAIN/public/.sales
service@$DOMAIN::5000:5000::/var/mail/vhosts/$DOMAIN/public/.service
purchase@$DOMAIN::5000:5000::/var/mail/vhosts/$DOMAIN/public/.purchase
Note: All other users have mail_location /var/mail/vhosts/%d/%n
Now a have the following problem: If I login in as user sales and create a folder foo and in there a folder bar.
The directory structure is:
./public/. sales /.foo and /public/. sales /.foo.bar
thats exactly what I´m expect.
Now I logon as normal user. I can see the namespace Public with the sales mailbox but no subfolder foo or foo.bar.
Now I create also the folders foo and in there bar, but the result is to me unexpected ;-):
./public/. sales
./public/. sales.foo
./public/. sales.foo.bar
Looking forward to your comment,
Daniel
On Wed, 2012-06-27 at 09:53 +0200, Daniel Fischer wrote:
The file passwd for those 3 samples looks like this:
sales@$DOMAIN::5000:5000::/var/mail/vhosts/$DOMAIN/public/.sales
service@$DOMAIN::5000:5000::/var/mail/vhosts/$DOMAIN/public/.service
purchase@$DOMAIN::5000:5000::/var/mail/vhosts/$DOMAIN/public/.purchase
Note: All other users have mail_location /var/mail/vhosts/%d/%n
Now a have the following problem: If I login in as user sales and create a folder foo and in there a folder bar.
It can't work like that. You need to have all of the these homes to be /var/mail/vhosts/$DOMAIN/public if you want them to be able to create any new folders. Then if needed add ACLs to the users. For delivering mails to these users you could set up a Sieve script to do it, or maybe something else..
Hello Timo,
Thanks for your reply. I have the dovewiki a little bit misunderstod.
"Public mailboxes are typically mailboxes that are visible to all users or to large user groups. They are created by defining a public namespace, under which all the shared mailboxes are"
Daniel
-----Ursprüngliche Nachricht----- Von: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] Im Auftrag von Timo Sirainen Gesendet: Donnerstag, 28. Juni 2012 08:58 An: Daniel Fischer Cc: dovecot@dovecot.org Betreff: Re: [Dovecot] last hope... public namespace and directory structure
On Wed, 2012-06-27 at 09:53 +0200, Daniel Fischer wrote:
The file passwd for those 3 samples looks like this:
sales@$DOMAIN::5000:5000::/var/mail/vhosts/$DOMAIN/public/.sales
service@$DOMAIN::5000:5000::/var/mail/vhosts/$DOMAIN/public/.service
purchase@$DOMAIN::5000:5000::/var/mail/vhosts/$DOMAIN/public/.purchase
Note: All other users have mail_location /var/mail/vhosts/%d/%n
Now a have the following problem: If I login in as user sales and create a folder foo and in there a folder bar.
It can't work like that. You need to have all of the these homes to be /var/mail/vhosts/$DOMAIN/public if you want them to be able to create any new folders. Then if needed add ACLs to the users. For delivering mails to these users you could set up a Sieve script to do it, or maybe something else..
participants (2)
-
Daniel Fischer
-
Timo Sirainen