[Dovecot] Static list of users with passdb pam

Koen Vermeer koen at vermeer.tv
Fri Jan 18 11:46:51 EET 2008


Thanks for the pointer. I guess I need to change the userdb entry as
well. I now have

userdb static {
  args = uid=xxx gid=xxx home=whatever allow_all_users=yes
}

which seems to do what I want. I'll test some more, but I guess this
works fine. Thanks again!

Best,
Koen


On Fri, 2008-01-18 at 09:25 +0000, Rob Coward wrote:
> If you are using pam already, why not add to /etc/pam.d/dovecot
> something like:
> 
> auth	required	pam_listfile.so	onerr=fail item=user sense=allow
> file=/etc/dovecot/allowed_users
> 
> The syntax may not be quite correct as this is off the top of my head
> and I havent tested it, but we do something very similar with other pam
> authentications, such as from vsftpd, to restrict user access.
> 
> Regards,
> Rob
> 
> On Fri, 2008-01-18 at 10:04 +0100, Koen Vermeer wrote:
> > Hi,
> > 
> > On my system, I want to provide imap access for some of the users listed
> > in /etc/passwd. The list of users should be provided by me, and should
> > just be a list in a text file. All the userdb options are static (uid,
> > gid, home directory). Unfortunately, I cannot think of a way to
> > configure Dovecot to do this. The closest I get is with:
> > 
> > passdb pam {}
> > userdb passwd-file {
> >   args = /path/to/passwd-file
> > }
> > 
> > However, the passwd-file is now more complex than it really needs to be,
> > as it includes fields for password, uid, gid and home directory as well.
> > 
> > Is there some way to handle this? Or am I trying to do something stupid?
> > 
> > Thanks!
> > 
> > Koen
> > 
> 
> 
> Please consider the environment before printing this email. 
> 
> 
> GAME Stores Group Ltd has been awarded Retailer of the Year at the 2006 Golden Joystick Awards and 
> 'Thames Valley Business Award' for Outstanding Employer of Choice 2006.
> 
> This e-mail and any files transmitted with it are confidential and intended solely for the use of the 
> individual or entity to whom they are addressed. If you have received this e-mail in error please 
> notify the system manager at:  
>  
>         mailto:postmaster at game.co.uk
>  
> The recipient acknowledges that the transmissions made via the Internet can be corrupted and therefore 
> THE GAME GROUP PLC and any of its subsidiaries do not give any warranty as to the quality or accuracy of 
> any information contained in the message or assume any liability for it or for its transmission, reception or storage.  
> 
> This footnote also confirms that this e-mail message has been swept by anti-virus software for the presence of computer viruses.
>  
> http://www.game.co.uk
> http://www.gamegroup.plc.uk 
> 
> Registered Number: 1937170
> Registered Office: Unity House, Telford Road, Basingstoke, Hampshire. RG21 6YJ Registered in England and Wales.



More information about the dovecot mailing list