View previous topic :: View next topic |
Author |
Message |
voldemort n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Dec 2005 Posts: 2
|
Posted: Wed Dec 07, 2005 7:11 pm Post subject: [SOLVED] Courier-Imap - Courier-Authlib - PAM Problem |
|
|
It took me most of a day and half of the night, but I finally have it working.
The symptoms:
1) emerge update
2) etc-update config changes were minor
3) SMTPauth and courier-imap no longer work
The Investigation:
Logfiles report imap-ssl failed to authenticate: imapd: LOGIN FAILED, user=blahblahblah
I turned on full debugging in authdaemonrc. Full debugging is friggin' useless. It reports no useful information, only username and attempted password which I knew for a fact were good.
Trying to run authtest against courier-authlib gave the error: Authentication FAILED: Operation not permitted
Debugging reported error: undefined symbol: nscd_flush_cache
Attempted solutions:
I deep emerged older versions of saslauthd, courier-imap, courier-authlib which worked previously but no longer worked. I installed courier-imap and courier-authlib from current source and got the same error. I cursed and swore. I considered wiping Gentoo and installing Ubuntu. Despite exhaustive searches on this forum and lots of people with the same or similar problems, nothing I found worked.
The Holy Grail:
I finally found a site (http://squarism.com)that described a solution to the exact problem I was having and gave a credible explanation. Courier-authlib has a problem in that courier-libpam builds and links to undefined and weak symbols such as nscd_flush_cache. All version 0.57 builds may exhibit this problem. The solution is to mask 0.57 and emerge the older 0.55.
Try this:
# echo ">=net-libs/courier-authlib-0.57" >> /etc/portage/package.mask
# emerge courier-authlib
BINGO!! My IMAP, IMAP-SSL now work. In the past, I have found lots of valuable information to solve problems, so this is my attempt to contribute... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jguc n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Quake3/quake3_orbb.gif)
Joined: 09 Mar 2003 Posts: 33
|
Posted: Thu Dec 15, 2005 3:06 pm Post subject: Worked!!!!!! |
|
|
Wow.... I've tried everything I have found... nothing worked... but courier-pop3d worked for me, so courier-imapd must work too. That was the solution. Thanks.
Code: | Dec 15 16:02:50 raichu imapd: LOGIN, user=*****, ip=[::ffff:127.0.0.1], protocol=IMAP |
_________________ ###JENIUX### |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Robert S Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/373167949427dc8404d3a8.jpg)
Joined: 15 Aug 2004 Posts: 463 Location: Canberra Australia
|
Posted: Thu Dec 15, 2005 7:56 pm Post subject: |
|
|
Don't know if this is what you are after, but I changed the default authmodulelist in /etc/courier/authlib/authdaemonrc to Quote: | authmodulelist="authpam" | I initially had the same problem and this fixed it. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jguc n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Quake3/quake3_orbb.gif)
Joined: 09 Mar 2003 Posts: 33
|
Posted: Thu Dec 15, 2005 11:40 pm Post subject: |
|
|
Robert S wrote: | Don't know if this is what you are after, but I changed the default authmodulelist in /etc/courier/authlib/authdaemonrc to Quote: | authmodulelist="authpam" | I initially had the same problem and this fixed it. |
I have authdaemondrc like you say, but it doesn't work. With this config and courier-pop3d it works, I can login via "telnet localhost 110" and in /var/log/messages I see that the login is correct, but with courier-imap it always fails. Only the downgrade solved the problem. _________________ ###JENIUX### |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
korvus n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Dec 2005 Posts: 1
|
Posted: Sun Dec 18, 2005 2:54 pm Post subject: |
|
|
jguc wrote: | Robert S wrote: | Don't know if this is what you are after, but I changed the default authmodulelist in /etc/courier/authlib/authdaemonrc to Quote: | authmodulelist="authpam" | I initially had the same problem and this fixed it. |
I have authdaemondrc like you say, but it doesn't work. With this config and courier-pop3d it works, I can login via "telnet localhost 110" and in /var/log/messages I see that the login is correct, but with courier-imap it always fails. Only the downgrade solved the problem. |
I did what is perhaps an unwise approach where I did the downgrade (which didn't work) and then I changed the authdaemonrc file (which did). I can't say for sure if it was just the second step or the combination of both, but either way, I'm up and running again. Thanks to everyone who posts solutions here. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mattjgalloway l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Mon Jan 23, 2006 10:55 pm Post subject: |
|
|
Changing the authmodulelist setting to authpam only worked for me! Thanks! _________________ AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sleepyhead n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 Feb 2006 Posts: 3
|
Posted: Fri Feb 03, 2006 12:22 am Post subject: |
|
|
Thanks for the help.
I just like to add a few things. I emerged down authlib .55 and it still didn't work but when i edited authdaemonrc for the "authpam" and restarted courier-authlib it not only restarted that service but the other couriers such imap. Right away that told me everything was working and sure enough i was able to get my email. So i then emerged back to .58 and made sure "authpam" was not commented out and that worked as well. Basically it looked like all I needed to do was uncomment "authpam" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|