Ebbe Hjorth wrote:
Ebbe Hjorth wrote:
Hi,

I have setup freebsd 6.2 with postfix, courier-imap with mysql backend,
but everytime i try to login via squirrelmail or roundcube, i get the
following error in my maillog file

Feb 13 22:39:30 zz imapd: LOGIN FAILED, [EMAIL PROTECTED], ip=[127.0.0.1]
Feb
13 22:39:30 zz imapd: authentication error: Input/output error

I need some help, please ;)

Whenever I've seen this, it's been a problem with the authentication
daemon talking to the database (in your case, MySQL.)
Turn up the debugging options in the authentication daemon config file,
restart the daemon, and use the "authtest" program to check before you
try and login to Courier IMAP.

That will log any MySQL-related errors.


I turned on the debug option, and got the following in the debug.log

Feb 15 18:02:30 odin imapd: Connection, ip=[127.0.0.1]
Feb 15 18:02:30 odin authdaemond: received auth request, service=imap,
authtype=login
Feb 15 18:02:30 odin authdaemond: authmysql: trying this module
Feb 15 18:02:30 odin authdaemond: authmysql: TEMPFAIL - no more modules
will be tried

Another thread on this mailing list, about the same error but with ldap -
I dont have the /var/spool/authdaemon directory, should i have that?

You don't have debugging turned on or you'd see the SQL queries that are sent to MySQL (including, if you set it high enough, the login password you used.) Did you remember to restart the authdaemon? Note: you have to "stop" and then "start" the daemon to pick up the debugging change:

Feb 16 11:14:47 cooma authdaemond: received userid lookup request: [EMAIL PROTECTED]
Feb 16 11:14:47 cooma authdaemond: authpgsql: trying this module
Feb 16 11:14:48 cooma authdaemond: SQL query: SELECT <fields> FROM <table> WHERE email_address = '[EMAIL PROTECTED]' Feb 16 11:14:48 cooma authdaemond: Authenticated: sysusername=<null>, sysuserid=1000, sysgroupid=1000, homedir=/somewhere, [EMAIL PROTECTED], fullname=Test Account, maildir=maildir, quota=<null>, options=mailhost=some.server.com

As to the /var/spool/authdaemon directory, it depends where you installed the authentication library - on my system it's in /usr/local/cauth, so my runtime files are in /usr/local/cauth/var/spool/authdaemon.

Andy.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to