pagaille
(Matthieu Gaillet)
#1
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 ?
Thanks
Matthieu
mrmarkuz
(Markus Neuberger)
#2
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
2 Likes
pagaille
(Matthieu Gaillet)
#3
Ha that was “Public/Junk”. Got it. Thanks !
1 Like
pagaille
(Matthieu Gaillet)
#4
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 ?
mrmarkuz
(Markus Neuberger)
#5
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
pagaille
(Matthieu Gaillet)
#6
The file has really vanished. Strange. Whatever, I asked our contact to send it again.