| View previous topic :: View next topic |
| Author |
Message |
gpeangel Tux's lil' helper


Joined: 02 Jan 2003 Posts: 132 Location: Colorado, USA
|
Posted: Mon Feb 07, 2005 5:28 pm Post subject: Continued courier-imap 4.0.1 upgrade problems [solved] |
|
|
Like others, I'm experiencing problems with the upgrade to courier-imap 4.0.1. I've read through the forums regarding this issue and have managed to get the imap server up and running. However, users still cannot log on to either imap or pop3. Logs have the following error:
| Code: |
Feb 7 10:01:03 carbon imapd: Connection, ip=[::ffff:127.0.0.1]
Feb 7 10:01:18 carbon imapd: LOGIN FAILED, user=user_name@domain.com, ip=[::ffff:127.0.0.1]
Feb 7 10:01:18 carbon imapd: authentication error: Input/output error
|
Previously, authentication was done against MySQL. Modifying /etc/courier/authlib/authdaemonrc to limit authentication for shadow or pam also fails with the same errror. I have not been able to find any additional information on just what is causing this error. Where would there be any I/O? Have I missed a config file change that isn't mentioned in the upgrade notes? Is anybody else seeing this problem? _________________ Gregory Engel
Web Master
www.javazen.com
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
My other computer is spongy gray matter.
Last edited by gpeangel on Mon Feb 07, 2005 8:14 pm; edited 1 time in total |
|
| Back to top |
|
 |
Ateo Advocate

Joined: 02 Jun 2003 Posts: 2019 Location: Earth
|
Posted: Mon Feb 07, 2005 7:01 pm Post subject: |
|
|
First and foremost: Backup /etc/courier-imap in case anything goes awry.
Then -->
1. Move the following: | Code: | # mv /etc/courier-imap/authdaemonrc /etc/courier
# mv /etc/courier-imap/authmysqlrc /etc/courier |
2. Stop the current auth daemon (this step stops your currently running imap/pop3 daemons): | Code: | | # /etc/init.d/authdaemond stop |
3. Delete the old auth daemon: | Code: | | # rm /etc/init.d/authdaemond |
4. Start the new auth daemon: | Code: | | # /etc/init.d/courier-authlib start |
5. Start your imap/pop3 daemons: | Code: | # /etc/init.d/courier-imapd start
# /etc/init.d/courier-imapd-ssl start (if applicable)
# /etc/init.d/courier-pop3d start
# /etc/init.d/courier-pop3d-ssl start (if applicable) |
All of the threads that exist regarding this upgrade did not work for me. My mail system is the virtual mailsystem found here: Gentoo Virt-Howto. My solution was so simple I could puke. It seems users are missing one crucial point. The files themselves have not changed, only their location has..
Note: I did not edit one single file. I just moved 2.
HTH |
|
| Back to top |
|
 |
gpeangel Tux's lil' helper


Joined: 02 Jan 2003 Posts: 132 Location: Colorado, USA
|
Posted: Mon Feb 07, 2005 7:37 pm Post subject: |
|
|
I used the same HOW-TO to set up my mail server, which had been working flawlessly for quite some time. I did get one insight from your post. The /etc/courier/authlib/authmysqlrc file probably needs to be set up to function like the old /etc/courier-imap/authmysqlrc file. Doing this, and restarting courier-authlib, had no effect. I still get the same error. I've confirmed by telnet that the imap and pop3 servers are up running.
I've set logging to be as verbose as possible, but I'm still not getting a better idea on what is causing the "Input/output error".
BTW, it looks like restarting courier-authlib automatically restarts the imap and pop3 servers:
| Code: | # /etc/init.d/courier-authlib restart
* Stopping courier-imapd...
* Stopping courier-imapd over SSL...
* Stopping courier-pop3d...
* Stopping courier-pop3d over SSL...
* Stopping courier-authlib: authdaemond...
* Starting courier-authlib: authdaemond...
* Starting courier-imapd...
* Starting courier-imapd over SSL...
* Starting courier-pop3d...
* Starting courier-pop3d over SSL... |
_________________ Gregory Engel
Web Master
www.javazen.com
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
My other computer is spongy gray matter. |
|
| Back to top |
|
 |
gpeangel Tux's lil' helper


Joined: 02 Jan 2003 Posts: 132 Location: Colorado, USA
|
Posted: Mon Feb 07, 2005 8:13 pm Post subject: |
|
|
I've restored email capabilites. Resorted to rebooting the box. _________________ Gregory Engel
Web Master
www.javazen.com
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
My other computer is spongy gray matter. |
|
| Back to top |
|
 |
Ateo Advocate

Joined: 02 Jun 2003 Posts: 2019 Location: Earth
|
Posted: Mon Feb 07, 2005 8:38 pm Post subject: |
|
|
So you got it up and running with courier-imap 4 by rebooting? Or did you revert back to courier-imap 3?
The init script courier-authlib does the same thing authdaemond did. So yea, it restarts your imap/pop3 server *if* they are already up and running.... |
|
| Back to top |
|
 |
gpeangel Tux's lil' helper


Joined: 02 Jan 2003 Posts: 132 Location: Colorado, USA
|
Posted: Tue Feb 08, 2005 12:37 am Post subject: |
|
|
| Ateo wrote: | So you got it up and running with courier-imap 4 by rebooting? Or did you revert back to courier-imap 3?
|
courier-imap 4
Perhaps I had something hung up in memory (ps didn't show anything suspicious) or didn't restart something that needed restarting or...
Makes me nervous. We'll see what the next few days bring in terms of reliability. _________________ Gregory Engel
Web Master
www.javazen.com
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
My other computer is spongy gray matter. |
|
| Back to top |
|
 |
ww9rivers n00b


Joined: 26 Oct 2003 Posts: 48
|
Posted: Sat Feb 26, 2005 9:26 am Post subject: zap authdaemond instead of reboot |
|
|
It seems that the new courier-authlib ebuild forgot to stop and remove the old "authdaemond".
I hit the same problem using authpam, although I got a slightly different error message: "imapd-ssl: authentication error: No such file or directory". Also, I noticed that I got a failure with "/etc/init.d/courier-authlib stop". After reading this thread I realized that might have something to do with my authentication errors. So I did a "/etc/init.d/courier-authlib zap" and then "/etc/init.d/courier-authlib start". That made things all happy. |
|
| Back to top |
|
 |
AlbinoJap n00b

Joined: 17 Sep 2004 Posts: 1
|
Posted: Mon Feb 28, 2005 5:19 pm Post subject: Fix for my Courier-imapd problem. |
|
|
I recently updated Courier Imap and found that it was no longer starting. It was not starting and stopping the authdaemond service properly. Whenever I would try to stop authdaemond, it would say that could not kill the correct process. When I would try to start authdaemond, it would say that it had already been started. After reading through these threads I figured out that it should not be using the "authdaemond" init script, but it should be using the "courier-authlib" init script. To use the correct script, you just need to edit the courier-imapd script. To do this, use the following procedure.
Find this section in the '/etc/init.d/courier-imapd' file.
| Code: | depend() {
need net authdaemond
use famd
} |
Change it to this.
| Code: | depend() {
need net courier-authlib
use famd
} |
After that, all was well. Hope this helps someone!  |
|
| Back to top |
|
 |
j-m Retired Dev

Joined: 31 Oct 2004 Posts: 975
|
Posted: Mon Feb 28, 2005 5:26 pm Post subject: Re: Fix for my Courier-imapd problem. |
|
|
| AlbinoJap wrote: |
| Code: | depend() {
need net courier-authlib
use famd
} |
|
Uhm, this is the default. You could save yourself the troubles if you ran etc-update or dispatch-conf and did not continue to use outdated init scripts from the old version...  |
|
| Back to top |
|
 |
yottabit Guru


Joined: 11 Nov 2002 Posts: 313 Location: Columbus, Ohio, US
|
Posted: Tue Mar 01, 2005 2:36 pm Post subject: |
|
|
| Ateo wrote: |
1. Move the following: | Code: | # mv /etc/courier-imap/authdaemonrc /etc/courier
# mv /etc/courier-imap/authmysqlrc /etc/courier |
|
I had to move the files to the authlib subdir:
| Code: | # mv /etc/courier-imap/authdaemonrc /etc/courier/authlib
# mv /etc/courier-imap/authmysqlrc /etc/courier/authlib |
HTH someone else... Great post! Saved me from being lynched.  _________________ Play The Hitchhiker's Guide to the Galaxy! |
|
| Back to top |
|
 |
SilverOne Apprentice

Joined: 10 Nov 2003 Posts: 161
|
Posted: Sun Jun 05, 2005 8:21 am Post subject: |
|
|
Great thread!
This gave me the courage to do it, and it worked nearly flawlessly.
Thanx! |
|
| Back to top |
|
 |
muffy n00b


Joined: 15 Sep 2003 Posts: 28 Location: :noitacoL
|
Posted: Wed Jul 20, 2005 10:28 pm Post subject: |
|
|
| This saved my backside. Thanks. |
|
| Back to top |
|
 |
GoofyHMG Tux's lil' helper


Joined: 24 Dec 2004 Posts: 77
|
Posted: Fri Sep 30, 2005 9:37 pm Post subject: |
|
|
Great worked for me also thanks!!!  |
|
| Back to top |
|
 |
d_logan n00b

Joined: 09 May 2006 Posts: 73
|
Posted: Mon May 15, 2006 4:12 am Post subject: |
|
|
My files are in the correct authlib directory, but I'm still getting
authentication error: Input/ouput error.
What else could the problem be?
I followed this guide: http://www.gentoo.org/doc/en/virt-mail-howto.xml |
|
| Back to top |
|
 |
sirber n00b


Joined: 07 Apr 2004 Posts: 37
|
Posted: Thu Jun 29, 2006 5:05 pm Post subject: |
|
|
I have that error on a fresh installation.
Jun 29 12:35:12 [imapd] LOGIN FAILED, user=sirber, ip=[::ffff:127.0.0.1]
Jun 29 12:35:12 [imapd] authentication error: Input/output error
all files are in the right place. |
|
| Back to top |
|
 |
funkyshu n00b

Joined: 21 Aug 2005 Posts: 5
|
Posted: Sat Sep 09, 2006 1:23 am Post subject: |
|
|
ok...i kept running into the same i/o problem...looked at posts all over but finally realized I had missed something small(BIG) in authmysqlrc
the virt-mail-howto says under section 10:
| Quote: |
(Make sure the following line is commented out since we're storing plaintext.)
#MYSQL_CRYPT_PWFIELD crypt
MYSQL_CLEAR_PWFIELD clear
|
so I commented MYSQL_CRYPT_PWFIELD and also, by default, MYSQL_CLEAR_PWFIELD is commented, so I uncommented it and voila!!! it works!!
I felt like a real 'tard after working on this for several hours.
Lesson: read the directions very carefully!!
Hope this helps someone else. |
|
| Back to top |
|
 |
|