Public Mailboxes - Hide for Unassigned Users?

NethServer Version: 7.2009
Module: Email (Public Mailboxes)

So I’m testing the public mailboxes feature and I think our organization can greatly benefit from it, but is there a way to only show the folders the user is actually assigned to in the email client?

For example on SoGo, it lists every single mailbox that exists, but in testing I can only access the ones I actually give my self access to (the rest fail to load), but at the time of testing this, there are like 15 test mailboxes that I don’t have access to. Which is counter productive because I have to scroll through all of the IMAP folders to find the correct one.

Is there a way to just hide the folders that a user is not actively assigned to?

In the mail preferences, you need to enable “Show subscribed mailboxes only”:

Then it should be possible to only subscribe to the folders you want to see via the mailbox menu (3 points next to the mail address):

So there is no way for us to hide all folders under “Shared Folders”, except the ones that user is assigned? I mean that’s the main goal here. We don’t want them to be able to subscribe to them themselves.

I tried to set permissions for public mailboxes on server side with doveadm but without success, sogo still shows the folders.

Users are able to subscribe but if they have no permissions they can’t use shared folder anyway.

I suppose they are called “public” for a reason. Don’t know if there an option to hide some of them…

1 Like

Just giving an idea. Have you tried with doveadm acl remove ... to remove the lookup right of the mailbox for a specific mail user?
Do not know if doveadm acl recalc -u... is required afterwards.

1 Like

Hm, I didn’t try with acl recalc but other apps like nextcloud or roundcube didn’t need it.
It seems subscribed public folders are shown in SoGO even if they have no ACLs set.

Noob question: and permissions at filesystem level (chmod, setfacl)? old info

1 Like

I don’t think that’s possible, all files/folders are owned by vmail.

I’m going to play with the dovecot ACLs when I find time…