As per various instructions on the net, I use db3_load (and db4_load) as follows: db3_load -T -f cram-passwords.txt -t hash cram-passwords.db Then I add the line: auth required pam_userdb.so db=/etc/courier-imap/cram-passwords.db But when trying to use that file, I get: [pam_userdb] user_lookup: could not open database `/etc/courier-imap/cram-passwords.db' The .db file is: /etc/courier-imap/cram-passwords.db: Berkeley DB (Hash, version 7, native byte-order) And db4_dump tells me cram-passwords.db contains what it's supposed to. Does our pam_userdb.so even support version 7 Berkeley DB files?
It builds against db-4.1, without backwards compat if that will help ...
Is this still a problem, while using the right db4.1_load command?
This isn't going anywhere. If you can reproduce this w/ sys-auth/pam_userdb (yes it's a separate package now) and current ~arch PAM, reopen this bug.