|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:||Andy Shellam (Mailing Lists) (andy...@mailnetwork.co.uk)|
|Date:||Feb 16, 2007 3:14:53 am|
Ebbe Hjorth wrote:
Ebbe Hjorth wrote:
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, user=xx...@yy.dk, 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: te...@test.com 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 = 'te...@test.com' Feb 16 11:14:48 cooma authdaemond: Authenticated: sysusername=<null>, sysuserid=1000, sysgroupid=1000, homedir=/somewhere, address=te...@test.com, 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.