Moodle is 2.4.1. Server is Ubuntu 10.04.4 LTS with Dovecot 1.2.9. I'm trying to use plain IMAP on localhost because I know it to work (with other software even with telnet).
Imap accounts exists. /var/log says
Feb 10 20:30:11 eduwww2 dovecot-auth: pam_winbind(dovecot:auth): getting password (0x00000000)
Feb 10 20:30:11 eduwww2 dovecot-auth: pam_winbind(dovecot:auth): user 'username' granted access
Feb 10 20:30:11 eduwww2 dovecot-auth: pam_winbind(dovecot:account): user 'username' granted access
But Moodle won't let user in. All user filds are unlocked.