LOGIN <username> <password>
This is not a valid IMAP command.
I am not too sure what is wrong but I can tell you that my AUTHMODULES="authdaemon authpwd" .
This is wrong, too. You need to review the description of the authdaemon authentication module.
pgp00000.pgp
Description: PGP signature