Re: Dovecot shared folders - examples of the "doveadm acl" command?

2023-08-05 Thread Graham Leggett via dovecot
On 30 Jul 2023, at 16:47, Benny Pedersen wrote: >> Does anyone have a concrete example of “doveadm acl” to grant someone >> access to a shared folder? > > https://doc.dovecot.org/search/?q=acl Unfortunately the search query above doesn’t return any examples of the doveadm acl command. For the

Re: Dovecot shared folders - examples of the "doveadm acl" command?

2023-07-30 Thread Benny Pedersen
Graham Leggett via dovecot skrev den 2023-07-30 17:29: Does anyone have a concrete example of “doveadm acl” to grant someone access to a shared folder? https://doc.dovecot.org/search/?q=acl ___ dovecot mailing list -- dovecot@dovecot.org To unsubscri

Re: [Dovecot] shared folders and "subscriptions = yes"

2013-03-20 Thread Timo Sirainen
On 15.3.2013, at 19.29, Lars Uhlmann wrote: > To have all IMAP-Users automatically updated their shared folder > structure I use "subscriptions = yes". > This works with the side effect, that all IMAP-Users can see _all_ > folders in every namespace even if they do not have "lookup" access. > Thi

Re: [Dovecot] Shared folders not shown if "INBOX.shared.%.%" is used with dovecot 2.1.10

2012-10-26 Thread Christoph Bußenius
Hello Timo, On 26.10.2012 12:07, Timo Sirainen wrote: but I did find another way to reproduce at least a similar bug. Maybe this fixes your problem too? http://hg.dovecot.org/dovecot-2.1/rev/22875bcaa952 That does fix the problem, thank you! Cheers, Christoph -- Christoph Bußenius Rechnerbe

Re: [Dovecot] Shared folders not shown if "INBOX.shared.%.%" is used with dovecot 2.1.10

2012-10-26 Thread Timo Sirainen
On 26.10.2012, at 12.17, Christoph Bußenius wrote: > On 22.10.2012 16:33, Christoph Bußenius wrote: >> . list "" INBOX.shared.%.% >> >> Dovecot 2.1.10 does not list any folders in response to this command. > > I hope this helps: I bisected this bug and found it was introduced with this > change

Re: [Dovecot] Shared folders not shown if "INBOX.shared.%.%" is used with dovecot 2.1.10

2012-10-26 Thread Christoph Bußenius
Hi, On 22.10.2012 16:33, Christoph Bußenius wrote: . list "" INBOX.shared.%.% Dovecot 2.1.10 does not list any folders in response to this command. I hope this helps: I bisected this bug and found it was introduced with this changeset: http://hg.dovecot.org/dovecot-2.1/rev/a41f64348d0d ch

Re: [Dovecot] shared folders "invisible" on new setup

2011-06-03 Thread Torsten Harenberg
Am 03.06.2011 um 14:45 schrieb Timo Sirainen: > Yeah, either rename this to /var/mail/public/.fb8/ or add :LAYOUT=fs to > namespace location. Ahh.. that worked :) Thanks a lot!!! I think I wouldn't have found it. Best regards, Torsten -- <><><><><><><><><><><><><><><><><><><><><><><><><><

Re: [Dovecot] shared folders "invisible" on new setup

2011-06-03 Thread Timo Sirainen
On Fri, 2011-06-03 at 14:37 +0200, Torsten Harenberg wrote: > mailserver# doveadm acl debug -u harenber public.fb8 > doveadm(harenber): Error: Can't open mailbox public.fb8: Mailbox doesn't > exist: fb8 > mailserver# > > Or do I miss here something: > > mailserver# cd /var/mail/public/fb8/

Re: [Dovecot] shared folders "invisible" on new setup

2011-06-03 Thread Torsten Harenberg
Thanks Timo... Am 03.06.2011 um 14:34 schrieb Timo Sirainen: > > doveadm acl debug -u harenber public.fb8 mailserver# doveadm acl debug -u harenber public.fb8 doveadm(harenber): Error: Can't open mailbox public.fb8: Mailbox doesn't exist: fb8 mailserver# Or do I miss here something: mailser

Re: [Dovecot] shared folders "invisible" on new setup

2011-06-03 Thread Timo Sirainen
On Tue, 2011-05-31 at 15:36 +0200, Torsten Harenberg wrote: > mailserver# doveadm mailbox subscribe -u harenber public.fb8 .. > namespace { > list = children > location = maildir:/var/mail/public:INDEX=~/public > prefix = public. > separator = . > subscriptions = no > type = public >

Re: [Dovecot] Shared Folders via Symlinking

2011-01-01 Thread Timo Sirainen
On Sat, 2011-01-01 at 16:35 +, Adrian Mardlin wrote: > > > Well, http://hg.dovecot.org/dovecot-2.0/rev/b78e772cf1d2 fixes this > > problem but I'm not sure what to do about the indexing problem.. > I'll > > either have to fix it some way or just disallow symlinks.. > > > > How about simply d

Re: [Dovecot] Shared Folders via Symlinking

2011-01-01 Thread Adrian Mardlin
On 30 Dec 2010, at 11:46, Timo Sirainen wrote: > On Wed, 2010-12-22 at 11:02 +, Adrian Mardlin wrote: >> I've managed to fix this initial problem by using INDEX=MEMORY. However, >> there's another side-effect. When deleting a symlinked folder, it leaves >> behind a file called ..DOVECOT-TR

Re: [Dovecot] Shared Folders via Symlinking

2010-12-30 Thread Timo Sirainen
On Wed, 2010-12-22 at 11:02 +, Adrian Mardlin wrote: > I've managed to fix this initial problem by using INDEX=MEMORY. However, > there's another side-effect. When deleting a symlinked folder, it leaves > behind a file called ..DOVECOT-TRASHED, which is still symlinked. This then > prevents

Re: [Dovecot] Shared Folders via Symlinking

2010-12-22 Thread Adrian Mardlin
I've managed to fix this initial problem by using INDEX=MEMORY. However, there's another side-effect. When deleting a symlinked folder, it leaves behind a file called ..DOVECOT-TRASHED, which is still symlinked. This then prevents that user from deleting any other folders. Adrian Mardlin in cha

Re: [Dovecot] Shared folders, please help.!

2010-10-25 Thread Timo Sirainen
On Wed, 2010-10-20 at 09:06 +0200, Johan Hendriks wrote: > > (or really, you should be using home directories to avoid that > > whole /usr/local/virtual/%u/%n everywhere) > > I have read the the wiki and tried to use the home folder. > I created a dir /usr/home/virtual/ gave it the right permissio

Re: [Dovecot] shared folders general question

2010-10-25 Thread Timo Sirainen
On Fri, 2010-10-22 at 15:42 +0200, Johan Hendriks wrote: > I have one more question. > Is it possible if you share the inbox, that all subfolders will be > visable to. > I can not see the subfolders of the shared inbox. > > This is not very useful if the user which shares his inbox, has sieve >

Re: [Dovecot] Shared folders, please help.!

2010-10-20 Thread Johan Hendriks
2010/10/18 Timo Sirainen : > On Mon, 2010-10-18 at 16:18 +0200, Johan Hendriks wrote: >> > location = maildir:/usr/local/virtual/%%d/%%n:INDEX=/shared/%%n >> > >> I knew i missed something, and i tried a lot of options, but always >> leave that shared behind %%n >> the INDEX=/shared/%%n   where doe

Re: [Dovecot] Shared folders, please help.!

2010-10-18 Thread Timo Sirainen
On Mon, 2010-10-18 at 16:18 +0200, Johan Hendriks wrote: > > location = maildir:/usr/local/virtual/%%d/%%n:INDEX=/shared/%%n > > > I knew i missed something, and i tried a lot of options, but always > leave that shared behind %%n > the INDEX=/shared/%%n where does this point to? To /shared/user

Re: [Dovecot] Shared folders, please help.!

2010-10-18 Thread Johan Hendriks
2010/10/18 Timo Sirainen : > On Mon, 2010-10-11 at 17:11 +0200, Johan Hendriks wrote: >> >> namespace { >>    inbox = no >>    list = children >>    location = maildir:/usr/local/virtual/%%d/%%n/shared/:INDEX=/shared/%%n > > Somehow I missed this first: There's an extra "shared/" in the mail > loca

Re: [Dovecot] Shared folders, please help.!

2010-10-18 Thread Timo Sirainen
On Mon, 2010-10-11 at 17:11 +0200, Johan Hendriks wrote: > > namespace { >inbox = no >list = children >location = maildir:/usr/local/virtual/%%d/%%n/shared/:INDEX=/shared/%%n Somehow I missed this first: There's an extra "shared/" in the mail location. You're now telling Dovecot to a

Re: [Dovecot] Shared folders, please help.!

2010-10-18 Thread Johan Hendriks
2010/10/15 Timo Sirainen : > On Fri, 2010-10-15 at 13:47 +0100, Timo Sirainen wrote: > >> But you should have seen in logs at login time stuff like: >> >> Debug: Namespace : type=shared, prefix=shared/%d/%n/, sep=/, inbox=no, >> hidden=no, list=children, subscriptions=no >> location=maildir:%h/Ma

Re: [Dovecot] Shared folders, please help.!

2010-10-15 Thread Timo Sirainen
On Fri, 2010-10-15 at 13:47 +0100, Timo Sirainen wrote: > But you should have seen in logs at login time stuff like: > > Debug: Namespace : type=shared, prefix=shared/%d/%n/, sep=/, inbox=no, > hidden=no, list=children, subscriptions=no > location=maildir:%h/Maildir:INDEX=~/shared-index I adde

Re: [Dovecot] Shared folders, please help.!

2010-10-15 Thread Timo Sirainen
On Thu, 2010-10-14 at 20:12 +0200, Johan Hendriks wrote: > > This looks as if it's not even seeing the shared namespace. What does it > > log with mail_debug=yes? .. > Oct 14 19:58:29 beasty dovecot: imap-login: Login: > user=, method=PLAIN, rip=192.168.50.200, > lip=192.168.50.200, mpid=6615, secu

Re: [Dovecot] Shared folders, please help.!

2010-10-14 Thread Johan Hendriks
2010/10/14 Timo Sirainen : > On Thu, 2010-10-14 at 19:40 +0200, Johan Hendriks wrote: >> e select shared/domain.com/johan/INBOX >> e NO Character not allowed in mailbox name: '.' > > This looks as if it's not even seeing the shared namespace. What does it > log with mail_debug=yes? > >> namespace {

Re: [Dovecot] Shared folders, please help.!

2010-10-14 Thread Timo Sirainen
On Thu, 2010-10-14 at 19:40 +0200, Johan Hendriks wrote: > e select shared/domain.com/johan/INBOX > e NO Character not allowed in mailbox name: '.' This looks as if it's not even seeing the shared namespace. What does it log with mail_debug=yes? > namespace { >inbox = no >list = children

Re: [Dovecot] Shared folders, please help.!

2010-10-14 Thread Johan Hendriks
2010/10/14 Timo Sirainen > > On Mon, 2010-10-11 at 17:11 +0200, Johan Hendriks wrote: > > a login jo...@domain.com mypass > > b SETACL INBOX h...@domain.com lr > .. > > c list "" /shared/* > > c list "" shared/* > > Also see what happens with: > > d list "" shared/domain.com/johan/* > e select sha

Re: [Dovecot] Shared folders, please help.!

2010-10-14 Thread Timo Sirainen
On Mon, 2010-10-11 at 17:11 +0200, Johan Hendriks wrote: > a login jo...@domain.com mypass > b SETACL INBOX h...@domain.com lr .. > c list "" /shared/* c list "" shared/* Also see what happens with: d list "" shared/domain.com/johan/* e select shared/domain.com/johan/INBOX

Re: [Dovecot] Shared folders issue

2010-07-23 Thread Timo Sirainen
On Fri, 2010-07-23 at 15:17 +0200, Emmanuel Gonzalez Carmona wrote: > Hello guys, > I have an issue with shared folders: > > 1) The USERA shares his INBOX with USERB > 2) USERB subscribes the USERA share without problems. > 3) USERA deletes all his / or some directories from his INBOX (Trash, > D

Re: [Dovecot] shared folders - dbox

2010-07-22 Thread Timo Sirainen
On Thu, 2010-07-22 at 17:17 +0200, Hajo Locke wrote: > iam interested in using dbox format with dovecot2. > Ist it possible to use shared folders with this storage format? > i only see references to Maildir. Yes, it works pretty much the same way, but currently you can't have per-user \Seen flags

Re: [Dovecot] shared folders in v1.2 with one uid per user

2009-06-15 Thread Timo Sirainen
On Sat, 2009-06-06 at 14:48 -0300, Ezequiel Alfíe wrote: > What are the steps for correctly setting up shared folders with acls > if I choose one uid per user? It's going to be annoyingly difficult. http://wiki.dovecot.org/SharedMailboxes/Permissions describes the issues, but doesn't really tell

Re: [Dovecot] Shared folders and subscriptions

2009-04-18 Thread Markus Werner
On Fri, Apr 17, 2009 at 07:07:49PM -0400, Timo Sirainen wrote: >> I tried this. The following is logged: >> >> Apr 18 00:12:01 asterix dovecot: IMAP(mar...@example.com): >> fchown(/var/spool/dovecot/users/example.com/markus/Maildir/control/ >> shared/subscriptions.lock, >> -1, 0) failed: Operation

Re: [Dovecot] Shared folders and subscriptions

2009-04-17 Thread Timo Sirainen
On Apr 17, 2009, at 6:28 PM, Markus Werner wrote: Or you could also see if you could create a private namespace with prefix="#User/" and subscriptions=yes, perhaps with location=maildir:/var/lib/dovecot/empty:CONTROL=~/Maildir/shared where the empty directory would be a world-readable non-wri

Re: [Dovecot] Shared folders and subscriptions

2009-04-17 Thread Markus Werner
On Fri, Apr 17, 2009 at 05:43:01PM -0400, Timo Sirainen wrote: > It would be possible to do both. The INBOX/ could be set up as a hidden > namespace and the "" namespace would be the default one. Or is there a > reason why you wouldn't want "" namespace to show up anything? Crying users, because s

Re: [Dovecot] Shared folders and subscriptions

2009-04-17 Thread Timo Sirainen
On Fri, 2009-04-17 at 23:38 +0200, Markus Werner wrote: > > Preferably you should also be using subscriptions=no so you wouldn't > > have to specify CONTROL at all, but for that you'd need to have a > > namespace with prefix="". > > Would an additional namespace, for subscriptions only, work? I wo

Re: [Dovecot] Shared folders and subscriptions

2009-04-17 Thread Markus Werner
On Fri, Apr 17, 2009 at 05:22:32PM -0400, Timo Sirainen wrote: > On Fri, 2009-04-17 at 22:48 +0200, Markus Werner wrote: > > namespace shared { > > separator = / > > prefix = "#User/%%u/" > > location = > > maildir:%%h/Maildir:INDEX=~/Maildir/index/shared/%%u:CONTROL=~/Maildir/control/

Re: [Dovecot] Shared folders and subscriptions

2009-04-17 Thread Timo Sirainen
On Fri, 2009-04-17 at 22:48 +0200, Markus Werner wrote: > namespace shared { > separator = / > prefix = "#User/%%u/" > location = > maildir:%%h/Maildir:INDEX=~/Maildir/index/shared/%%u:CONTROL=~/Maildir/control/shared > subscriptions = yes > list = yes > } The CONTROL must hav

Re: [Dovecot] Shared Folders

2009-03-11 Thread Stephen Carville
Looks like ACL's might work.

Re: [Dovecot] Shared Folders

2009-03-11 Thread Stephen Carville
I did some more testing and it looks like "public" really means "public" ! For example: $ id stephen uid=501(stephen) gid=100(users) groups=100(users),10(wheel),1000(cs) Normally stephen should have rwx access to the following directory: $ ls -ald /usr/mail/public/cs drwxrwx--- 4 cs cs 4096 Mar

Re: [Dovecot] Shared Folders

2009-03-11 Thread Stephen Carville
On Wed, Mar 11, 2009 at 4:02 AM, Charles Marcus wrote: >> So I do have permission to open the directory but dovecot doesn't >> agree  (Is this a sign I should just give up on 1.0.7? :-) > > Yes... 1.1 is much better, but 1.2 is getting very close and is even > better still... > > Personally, I'd j

Re: [Dovecot] Shared Folders

2009-03-11 Thread Charles Marcus
> So I do have permission to open the directory but dovecot doesn't > agree (Is this a sign I should just give up on 1.0.7? :-) Yes... 1.1 is much better, but 1.2 is getting very close and is even better still... Personally, I'd just move on to 1.2...

Re: [Dovecot] Shared Folders

2009-03-10 Thread Stephen Carville
On Tue, Mar 10, 2009 at 5:46 PM, Timo Sirainen wrote: > On Mar 10, 2009, at 8:21 PM, Stephen Carville wrote: > >> Mar 10 16:45:17 scacifs02-lnx dovecot: IMAP(stephen): >> mkdir(/var/mail/CS/cur) failed: Permission denied >> Mar 10 16:45:28 scacifs02-lnx dovecot: IMAP(stephen): Connection closed >>

Re: [Dovecot] Shared Folders

2009-03-10 Thread Timo Sirainen
On Mar 10, 2009, at 8:21 PM, Stephen Carville wrote: Mar 10 16:45:17 scacifs02-lnx dovecot: IMAP(stephen): mkdir(/var/mail/CS/cur) failed: Permission denied Mar 10 16:45:28 scacifs02-lnx dovecot: IMAP(stephen): Connection closed whats happening here? Why is dovecot even trying to create var

Re: [Dovecot] Shared folders and LDAP?

2007-07-19 Thread Gavin Henry
> On Thu, 2007-07-19 at 10:17 +0100, Gavin Henry wrote: >> >> > On Thu, 2007-07-19 at 07:56 +0100, Gavin Henry wrote: >> >> Dear All, >> >> >> >> Is it possible to store shared folder lists in an LDAP Directory >> along >> >> with your virtual users? >> > >> > You could have LDAP return namespace

Re: [Dovecot] Shared folders and LDAP?

2007-07-19 Thread Timo Sirainen
On Thu, 2007-07-19 at 10:17 +0100, Gavin Henry wrote: > > > On Thu, 2007-07-19 at 07:56 +0100, Gavin Henry wrote: > >> Dear All, > >> > >> Is it possible to store shared folder lists in an LDAP Directory along > >> with your virtual users? > > > > You could have LDAP return namespaces. First defin

Re: [Dovecot] Shared folders and LDAP?

2007-07-19 Thread Gavin Henry
> On Thu, 2007-07-19 at 07:56 +0100, Gavin Henry wrote: >> Dear All, >> >> Is it possible to store shared folder lists in an LDAP Directory along >> with your virtual users? > > You could have LDAP return namespaces. First define a private namespace > in dovecot.conf, and then return another from

Re: [Dovecot] Shared folders and LDAP?

2007-07-19 Thread Timo Sirainen
On Thu, 2007-07-19 at 07:56 +0100, Gavin Henry wrote: > Dear All, > > Is it possible to store shared folder lists in an LDAP Directory along > with your virtual users? You could have LDAP return namespaces. First define a private namespace in dovecot.conf, and then return another from LDAP. You'd

Re: [Dovecot] shared folders

2007-06-14 Thread Timo Sirainen
On Thu, 2007-06-14 at 17:34 +0100, T. Horsnell wrote: > A number of our users would greatly benefit from truly > shareable mail folders. I know we can bodge this with > symlinks, but mailbox corruptions seem to occur when > simultaneous updates are made, but this may be a client > issue I guess. >

Re: [Dovecot] shared folders

2007-05-23 Thread Timo Sirainen
On Tue, 2007-05-22 at 15:27 +0200, David Obando wrote: > Dear all, > > I would like to use shared folders but I'm not quite sure whether > Dovecot supports it the way I want it: > > -user A should be able to share a folder with users B, C, D > -B, C and D should have read-access to this folder >