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
/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 !
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/
The file has really vanished. Strange. Whatever, I asked our contact to send it again.