Michael Starks
2006-Jul-17 17:14 UTC
[Dovecot] Postfix Virtual Users and Directory Permissions
I have followed the instruction here: http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox There are five virtual domains configured and each directory containing each domain is owned by one UID/UID with permissions of 700. I can send mail to each domain and it is stored in the appropriate Maildir under the correct directory. The system is OpenBSD 3.8 STABLE. So far, so good. Now comes Dovecot. What I would like to do is to have one set of credentials for 4 of the domains, and another for the remaining. I would also like to *not* use a database backend for authentication at this time and would prefer to stick with standard UNIX /etc/passwd and /etc/shadow. Considering the directories are all owned by one user, does Dovecot need to be configured to use the same user as auth_userdb = static? That would make sense. What I'm not clear on is how Dovecot would know which domains are associated with which user, and does the user need permissions to those directories or is that handled by impersonation? Thanks in advance.
Timothy White
2006-Jul-18 04:07 UTC
[Dovecot] Postfix Virtual Users and Directory Permissions
> > Now comes Dovecot. What I would like to do is to have one set of > credentials for 4 of the domains, and another for the remaining. I > would also like to *not* use a database backend for authentication at > this time and would prefer to stick with standard UNIX /etc/passwd and > /etc/shadow. > > Considering the directories are all owned by one user, does Dovecot need > to be configured to use the same user as auth_userdb = static? That > would make sense. > > What I'm not clear on is how Dovecot would know which domains are > associated with which user, and does the user need permissions to those > directories or is that handled by impersonation?I think your going to find, that for virtual domains, you'll need virtual users... So ether you have 5 passwd files, or you use a database backend. Using the Unix /etc/passwd is not virtual users, and you have no way of telling it, which user is which domain. Do yourself a favour, and use a database backend, otherwise, use a separate passwd file (hash file?) for each domain. Seeing as I don't use the flat file's, I can't offer any more help, but I'm sure the wiki has more info. Tim -- Linux Counter user #273956 Don't email joeblogs at scouts.org.au