This is a PAM module that authenticates a user login against a remote IMAP or IMAPS server. The module supports a server rollover, so a list of servers can be succesively queried if the previous server is down. With a bit of PAM configuration hacking, it will also work with other modules to allow logins to be authenticated locally and / or remotely with IMAP on the same system.