LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-06-2007, 08:49 PM   #1
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
courier-imap server suddenly not authenticating


This is what I hate about this operating system. Change something, and it doesn't work. Change it back to how it used to work.... and it STILL doesn't fscking work.

I tried to change the listening address for courier-imapd. I edited /etc/courier/imapd. It didn't work for some reason, so I changed it back.

Now, suddenly, I can't authenticate. No reason. No error message. Just no service. THANKS A LOT IAMP@!!!?!??!

Jan 6 21:42:49 raskolnikov imapd: LOGIN FAILED, user=davek, ip=[::ffff:192.168.1.4]

that's it.

Anyone else know where THE HELL else to look? It worked with the EXACT same configuration 20 minutes ago, using regular linux authentication (PAM, I think is the term).

-dave
 
Old 01-06-2007, 09:04 PM   #2
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Original Poster
Rep: Reputation: 31
well, I found how to turn on debugging for courier-authdaemon in the config file. Here's what it now says for no reason:

Jan 6 21:59:39 raskolnikov authdaemond: authpam: trying this module
Jan 6 21:59:39 raskolnikov authdaemond: authpam: username 'davek@6thstreetradio.org' not found in password file
Jan 6 21:59:39 raskolnikov authdaemond: authpam: REJECT - try next module
Jan 6 21:59:39 raskolnikov authdaemond: FAIL, all modules rejected

???????????????????????????????????????????????????????????????????????????????????????????????????? ??????/

still have no idea what its doing or whats going wrong
 
Old 01-06-2007, 09:46 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
My guess is that it's trying to authenticate davek@6thstreetradio.org whereas before it was authenticating the user davek. Are you sure nothing else was changed that could have caused this? (or would you expect to find a user davek@6thstreetradio.org?)
 
Old 01-07-2007, 07:36 AM   #4
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Original Poster
Rep: Reputation: 31
lost another million hairs over this one. The annoying thing is it was my fault to begin with.

There's a line in /etc/courier/imapd:

#DEFDOMAIN="@6thstreetradio.org"

I had changed this to 6thstreetradio.org from the default, and uncommented it. I didn't really read the comments around it explaining what it was. I figured "default domain, that's my domain!" But no. Apparently, this part is appended to the username when users try to log in using imap.

Add to that the fact that I didn't restart the server when I made the change. Therefore, when I _did_ restart the server, that bug crept in and wasn't found for many many hours. Classic.

The moral of the story is don't touch DEFDOMAIN in /etc/courier/imapd unless you have a complex setup where you're serving mail for multiple domains.
 
Old 01-07-2007, 11:08 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Well, hopefully my comment helped. Another set of eyes and all that
 
  


Reply

Tags
fixed, imapd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
posfix with courier maildrop and courier-imap Anuragn Linux - Enterprise 4 01-17-2007 04:33 AM
Unable to connect to the mail server with Courier-IMAP mdnair Linux - Networking 0 09-19-2004 07:13 AM
Configuring courier-imap courier-pop redsky Debian 1 06-02-2004 03:09 PM
Configuring courier-imap courier-pop redsky Linux - Software 0 06-01-2004 12:06 PM
Courier IMAP Server latino Linux - Newbie 2 08-19-2003 09:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration