[Dovecot] Dovecot - AllowGroups option

Jacob Neergaard Pedersen neergaard at kananga.dk
Tue Jan 11 20:52:59 EET 2011


Hi,
Found It :)

Here it is - very simple.

Add the group you wanna use to /etc/group
maigroup:x:1007:user1,user2,user3

Make a file listing the groups you wanna allow access from
echo "maigroup" > /etc/dovecot/group.allow

Add group authentication to dovecot pam setting in /etc/pam.d/dovecot
Add this line on the top of the file
auth required pam_listfile.so onerr=fail item=group sense=allow file=/etc/dovecot/group.allow

I hope I can safe other people the trouble.

/Neergaard

Den 30/12/2010 kl. 11.09 skrev Timo Sirainen:

> On Tue, 2010-12-28 at 00:15 +0100, Jacob Neergaard Pedersen wrote:
>> I'm trying to control access to different services on an Debian server using /etc/group. So that a user I create for FTP usage doesn't fill up my server with IMAP folders or samba garbage.
> 
> Assuming you use passdb pam, I think pam_listfile can do this:
> http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/sag-pam_listfile.html
> 



More information about the dovecot mailing list