Disallowing the deletion of email by a client using dovecot IMAP

Can I remove the ability for remote users to delete emails from there IMAP box using dovecot? I only want them to be able to sync there emails and read them.
dgreenjr26IT DirectorAsked:
Who is Participating?
 
Christopher Raymond MendozaCommented:
Hello dgreenjr26,

Apologies for not getting back to you sooner.

Were you able to make it work? I am posting the configuration I use below. This one works for individual mailboxes. I am using postfix version 2.3.3 and dovecot version 1.0.7 running on CentOS 5.x. Mailboxes are stored in ~/Maildir (mail_location=maildir:~/Maildir).

The sample file dovecot-acl is found in /home/myname/Maildir/.SampleFolder. In effect, myname can log in and view the contents of SampleFolder, but can not delete any mails found in that folder. A more detailed explanation can be found in the link I have sent you before.

dovecot.conf:
protocol imap {
  mail_plugins = acl
}
protocol lda {
  mail_plugins = acl
}
plugin {
  acl = vfile
}

Open in new window


dovecot-acl:
user=myname ilr

Open in new window


I hope this solves your problem.

Regards.
0
 
Christopher Raymond MendozaCommented:
Maybe this could help:

    http://wiki.dovecot.org/ACL
0
 
dgreenjr26IT DirectorAuthor Commented:
Im having trouble understanding how the ACL list is supposed to be configured. I put "group=groupname rw" in a file and in the ACL part of the dovecot file I have "ACL = vfile:/etc/dovecot/dovecot-acl" but when I reboot dovecot it does not start back up?
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
dgreenjr26IT DirectorAuthor Commented:
It seems like the dovecot ACL's are for shared mailboxes, can I use this to force an individual mailbox user to readonly. Not allowing them to delete any emails out of there box.
0
 
Christopher Raymond MendozaCommented:
Hello dgreenjr26,

Based on what I read it should also apply to individual mailboxes. I will test it in our server and get back to you tomorrow.
0
 
Christopher Raymond MendozaCommented:
By the way, during my tests, I was able to delete emails, or at least that's what I thought. But when I refresh the folder (SampleFolder) the "deleted" mail is still there.
0
 
dgreenjr26IT DirectorAuthor Commented:
Thanks a lot for the code. The problem I was having is that I tried to apply the permissions using a group. Once I applied it using the individual users in my global vfile it worked. Its not ideal but I can get over it.
0
 
dgreenjr26IT DirectorAuthor Commented:
Excellent resource for Unix
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.