IMAPS with extra authorization.

Syren Baran sb at
Wed Jul 21 05:12:05 EDT 2010

Am Mittwoch, den 21.07.2010, 09:47 +0200 schrieb Josef Karliak:
> Hi everybody,
> we need to use another acounts (from extra file) for authorization for
> IMAPS (from outside of company). IMAP stays authorized over saslauthd
> (pam). How to solve this ? I'm out of the ideas :-/.

Try libpam-pwdfile. Using this here on a debian box.
Does exactly what you want ;)

Just add a line like
auth    sufficient pwdfile /path/to/file
to /etc/pam.d/imap

The file can be created simply enough (e.g. htpasswd).

Nearly forgot one thing, took me a while to figure this out.
You will also need to add following line to /etc/pam.d/imap:
account required
You will need this since the remote users dont have a local account, so
ignore that check and only check for a valid username/password.

Syren Baran


Niederlassung Deutschland:
internet professionals
Erthalstr. 17
63739 Aschaffenburg

Amtsgericht:    Aschaffenburg
HRB-Nr.:        9136
St/Nr.:         204/104/60603
USt-Id-Nr.:     DE814408164
Gechäftsführer: Thomas Witzel


Telefon:        +49.6021.8622-680
VoIP:           +49.6021.8622-680
Fax:            +49.6021.8622-676
E-Mail:         mail at


69 Great Hampton Street
West Midlands
United Kingdom

Registergericht: Companies House of Cardiff
Registernummer:  05325636
Registereintrag: United Kingdom
Director: Thomas Witzel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3652 bytes
Desc: not available
Url : 

More information about the Info-cyrus mailing list