I looked on the dovecot website, but didn't find an answer. With dovecot 1.0, is there a way to keep users from deleting their email? So that when they click the delete button on their email client, nothing happens/dovecot refuses to delete email, etc?
On 4/14/2008 9:42 AM, Adam Williams wrote:> I looked on the dovecot website, but didn't find an answer. With > dovecot 1.0, is there a way to keep users from deleting their email? So > that when they click the delete button on their email client, nothing > happens/dovecot refuses to delete email, etc?I was thinking about a possible plugin - call it maybe 'fake-delete or something - that would move all messages that a user deletes to a hidden folder in their maildir, for admin purposes... you could also use the expire plugin to keep this from growing indefinitely. But to prevent them from deleting them altogether? Why? If you just want a read-only maildir, just do that - so only admins can delete messages from protected accounts... -- Best regards, Charles
At 8:42 AM -0500 4/14/08, Adam Williams imposed structure on a stream of electrons, yielding:>I looked on the dovecot website, but didn't find an answer. With >dovecot 1.0, is there a way to keep users from deleting their email? >So that when they click the delete button on their email client, >nothing happens/dovecot refuses to delete email, etc?Presumably you're users are all using IMAP, since the question doesn't really make sense for POP users, whose view of mail is entirely local to their machines, not the server. I'd argue that having the sort of in-your-face dysfunction you describe is probably not the best approach unless user antagonism is one of your goals. You would probably be better off making a user's deletion into a server-side hiding/archiving. The "Lazy Expunge" plugin can do that. http://wiki.dovecot.org/Plugins/Lazyexpunge -- Bill Cole bill at scconsult.com
On Mon, 2008-04-14 at 08:42 -0500, Adam Williams wrote:> I looked on the dovecot website, but didn't find an answer. With > dovecot 1.0, is there a way to keep users from deleting their email? So > that when they click the delete button on their email client, nothing > happens/dovecot refuses to delete email, etc?For specific mailboxes you can do this with ACL plugin. Or you'd probably also get quite far by creating a .DEFAULT global ACL. It would apply to all root-level mailboxes. I should add support for hierarchical ACL rules some day.. Anyway, http://wiki.dovecot.org/ACL describes how it currently works. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080417/8b63fc65/attachment-0002.bin>