> On Fri, Feb 16, 2007 at 11:15:16AM +0000, Andy Shellam (Mailing Lists) > wrote: >> 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. > > For more details on how to do this: > http://www.courier-mta.org/authlib/README.authdebug.html > >> 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 > > It looks like some debugging has been turned on. However, > > 1. you also need to be running with a fairly recent version of > courier-authlib > > 2. you need to have the authmysql module installed and working in the > first > place > > To check (2), after you have turned on debug logging, stop and restart > authdaemond, then look in the debug logs before you send any queries. > > If you see something like > > Oct 17 11:25:37 commodore authdaemond: Installing libauthmysql > Oct 17 11:25:37 commodore authdaemond: libauthmysql.so: cannot open shared > object file: No such file or directory >
I stopped and started the deamon, and here is the result: Feb 18 13:46:21 odin authdaemond: stopping authdaemond children Feb 18 13:46:30 odin authdaemond: modules="authmysql", daemons=5 Feb 18 13:46:30 odin authdaemond: Installing libauthmysql Feb 18 13:46:30 odin authdaemond: Installation complete: authmysql > > then either libauthmysql.so is not loaded, or the libraries it depends on > are not in the run-time linker path. > > Post the whole debug log from restarting authdaemond, and the whole debug > log from when a request comes in. > Feb 18 13:11:32 odin authdaemond: authmysql: trying this module Feb 18 13:11:32 odin authdaemond: SQL query: SELECT username, "", password, '5001', '5001', '/usr/local/mail/', maildir, qu ota, name, "" FROM mailbox WHERE username = "[EMAIL PROTECTED]" AND (active='1') Even with maildrop installed i get an error, no longer the I/O error but, /var/log/maillog Feb 18 13:50:22 odin authdaemond: Authenticated: sysusername=<null>, sysuserid=5001, sysgroupid=5001, homedir=/usr/local/ma il/, [EMAIL PROTECTED], fullname=bytemind, [EMAIL PROTECTED]/, quota=0, options=<null> Feb 18 13:50:22 odin authdaemond: Authenticated: clearpasswd=xxx, passwd=<null> Feb 18 13:50:22 odin maildrop[963]: Unable to open mailbox. Feb 18 13:50:22 odin postfix/pipe[962]: 5A72F28471: to=<[EMAIL PROTECTED]>, relay=maildrop, delay=0.38, delays=0.11/0.07 /0/0.2, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/local/bin/maildrop: Unable to open mailbox. ) PS: I am using this guide : http://freebsd.ntut.idv.tw/document/postfix_postfixadmin_mysql.html ------------------------------------------------------------------------- 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
