LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting permissions to imap users in centos/dovecot (https://www.linuxquestions.org/questions/linux-newbie-8/setting-permissions-to-imap-users-in-centos-dovecot-4175631984/)

Amaterasu 06-15-2018 01:41 AM

Setting permissions to imap users in centos/dovecot
 
Hi, i am a newbie linux user and have task on improving a given imap server. I have an imap server set up with dovecot, with roundcube webinterface and i need to create 2 different Mail Users with read only and one with read write delete options. I've tried it with creating different System Users using sticky bit but it didn't work. I'd need to give permissions to Imap Users and not system Users and i am not sure how to do it. I tried using ACLs but i don't really find anything related to imap users or better said how to access and set permission to imap users. Any suggestions?

Thanks in advance.

scasey 06-16-2018 11:06 AM

I have always only used dovecot with system users, but a search for "dovecot users" yields many pages, including this link to the Dovecot wiki.

Amaterasu 06-19-2018 04:29 AM

I've tried assigning different Uids in the /etc/dovecot/passwd file. Currently there is only one user(vmail) which has all the dovecot Mailboxes and dovecot users attached to it. So basicly i tried to assign different System users to these dovecot virtual users using passwd file (example of how i've done it: Username::password:UID:GID::/home/user:). My dovecot.conf settings are:

mail_location = maildir:~/Maildir

passdb {
driver = passwd-file
args = /etc/dovecot/passwd
}

userdb {
driver = static
args = uid=vmail gid=vmail home=/var/vmail/%u
}

Would need help with this, if it is even possible to change things like that?


All times are GMT -5. The time now is 04:29 AM.