Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

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.
0
dgreenjr26
Asked:
dgreenjr26
  • 4
  • 4
1 Solution
 
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
 
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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:
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:
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now