Dovecot Public/Junk folder ACL

Hi all,

We accidentally moved a mail into the Public/Junk folder but can’t find a way to access it. Even an administrator can’t display its contents.

Ik know there is the nethserver-mail-shrmbx-modify but don’t know how to use it.

Can anyone help ?



To set admin permissions for <group> on <PublicFolder>:

/etc/e-smith/events/actions/nethserver-mail-shrmbx-modify ev '<PublicFolder>' '<PublicFolder>' group=<group>@$(hostname -d) ADMIN

To set admin permissions for domain admins on Public/Junk folder:

/etc/e-smith/events/actions/nethserver-mail-shrmbx-modify ev 'Public/Junk' 'Public/Junk' group='domain admins'@$(hostname -d) ADMIN

To check the permissions for Public/Junk:

dovecot acl get -A Public/Junk

See also nethserver-mail — NethServer 7 documentation


Ha that was “Public/Junk”. Got it. Thanks !

1 Like

Got access to the folder. It was empty. Is there some script that empties it ? Any way to recover the mail other that restoring a backup ?

You could search for the lost mail:

grep -iR "Some text from the lost mail" /var/lib/nethserver/vmail/

Or search for more words:

grep -iRE "word1.*word2" /var/lib/nethserver/vmail/

1 Like

The file has really vanished. Strange. Whatever, I asked our contact to send it again.

I confirm that

  • the mails dropped in this mailbox are not visible even with ACLs set like you showed me.
  • the files stays some minutes on the server (folder /var/lib/nethserver/vmail/vmail/Maildir/.Junk/cur/) then gets erased.

I deleted it :blush:

1 Like