is it possible to make specific mailboxes (Maildir) read-only? so users can only read, forward and search mails, but don't delete them?
thanks in advance
is it possible to make specific mailboxes (Maildir) read-only? so users can only read, forward and search mails, but don't delete them?
thanks in advance
You can easily do that with
ACLs
, specifically with the command maildiracl .It's not trivial to figure out the right ACL to put, and not trivial to figure out on what folders you need ACLs to be changed. Not putting the right ACLs will show weired behaviour on some mail clients like roundcube, for exampe you might delete a message, the message seems to have disappeared, but if you browse to another folder (say, Sent) and get back to the Inbox the message reappears. So the inbox is still in read-only but we don't want this disappearing/reappearing confusion.
I eventually figured that the right thing to do is :
lrasiw
on the INBOXlrasiw
on the Sent folderI've put that in a script, you might find it useful :