| From | Sent On | Attachments |
|---|---|---|
| Ebbe Hjorth | Feb 13, 2007 11:43 pm | |
| Andy Shellam (Mailing Lists) | Feb 14, 2007 2:54 am | |
| Andy Shellam (Mailing Lists) | Feb 14, 2007 8:19 am | |
| Ebbe Hjorth | Feb 14, 2007 11:22 am | |
| Ebbe Hjorth | Feb 16, 2007 1:34 am | |
| Andy Shellam (Mailing Lists) | Feb 16, 2007 3:14 am | |
| Brian Candler | Feb 17, 2007 12:10 am | |
| Ebbe Hjorth | Feb 18, 2007 4:55 am | |
| Andy Shellam (Mailing Lists) | Feb 18, 2007 5:00 am | |
| Brian Candler | Feb 18, 2007 6:01 am | |
| Ebbe Hjorth | Feb 18, 2007 11:53 pm | |
| Andy Shellam (Mailing Lists) | Feb 19, 2007 12:26 am | |
| Ebbe Hjorth | Feb 19, 2007 6:21 am | |
| Andy Shellam (Mailing Lists) | Feb 19, 2007 8:15 am | |
| Ebbe Hjorth | Feb 19, 2007 12:07 pm | |
| Miguel Gómez | Feb 22, 2007 5:24 am | |
| Sam Varshavchik | Feb 22, 2007 3:22 pm |
| Subject: | Re: [Courier-imap] imapd: authentication error: Input/output error | |
|---|---|---|
| From: | Ebbe Hjorth (in...@ebbehjorth.dk) | |
| Date: | Feb 18, 2007 4:55:43 am | |
| List: | net.sourceforge.lists.courier-imap | |
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 = "byte...@bytemind.dk" 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/, address=byte...@bytemind.dk, fullname=bytemind, maildir=byte...@bytemind.dk/, 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=<byte...@bytemind.dk>, 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





