There is a bug in mod_auth_imap2 which makes it impossible to authenticate against Dovecot versions 2.0.11 and 2.0.13, possibly even the whole dovecot-2 branch.
Output of mod_auth_imap2
[warn] [client XX.XX.XX.XX] mod_auth_imap: Premature server disconnect for user YYYYYYY@YYYYYYYY.YYY
[warn] [client XX.XX.XX.XX] mod_auth_imap: Server said: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS\r\n
The problem in mod_auth_imap2 can be fixed by applying Nick Gieczewskis patch from
Since upstream does not seem to be interested in adding this patch (or changing anything at all since 2006), I think this should be added to portage.
Steps to Reproduce:
1. Install >=dovecot-2.0.11
2. Install mod_auth_imap2
3. Try to log in
Created attachment 276335 [details]
Created attachment 276337 [details, diff]
This is actually not a new package request. Re-assigning it to maintainers.
Looks like this module is completely dead, it probably won't neither work for apache-2.4. I can neither find it package on any other distribution, doesn't it have any replacement for its functionality?
Hm. Maybe www-apache/mod_authnz_external or other pam authorizator and, for example, pam_imap will be better replacement? Unfortunately pam_imap is not in tree yet :-/
Well, if you agree this patch is good enough to commit, we can go ahead and keep this alive a bit more, but I cannot decide that as I don't know much about programming