Hi,

I used courier-imap for several yoears now, without any problem.

I read this to try to find a solution myown:
http://www.courier-mta.org/authlib/README.authdebug.html
http://www.courier-mta.org/imap/tutorial.setup.html


I have serious problem with one single user. Overnight imap stoped
working. Just for this single user. Others still work

Username is boerns.

I cannot login with imap. Mail is still received during qmail-mailserver
and I can connect to maildir with sqwebmail.

But login with courier-imap stopped.

Other users of the system are not affected. Login works.

I created a totally new user called courierimap.

With this, I can login:



holodeck authlib # telnet 127.0.0.1 143
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS XMAGICTRASH] Courier-IMAP ready. Copyright 1998-2010 Double
Precision, Inc.  See COPYING for distribution information.
0 login boernsimap pass
0 OK LOGIN Ok.
0 select inbox
* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1338913162] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
0 OK [READ-WRITE] Ok
0 logout
* BYE Courier-IMAP server shutting down
0 OK LOGOUT completed
Connection closed by foreign host.


In mail.log I get this (set debug=1 for authoudaemon):
Jun  5 18:14:10 holodeck authdaemond: modules="authpam", daemons=5
Jun  5 18:14:10 holodeck authdaemond: Installing libauthpam
Jun  5 18:14:10 holodeck authdaemond: Installation complete: authpam
Jun  5 18:16:38 holodeck imapd: Connection, ip=[::ffff:127.0.0.1]
Jun  5 18:16:54 holodeck authdaemond: received auth request,
service=imap, authtype=login
Jun  5 18:16:54 holodeck authdaemond: authpam: trying this module
Jun  5 18:16:54 holodeck authdaemond: authpam: sysusername=boernsimap,
sysuserid=<null>, sysgroupid=12404, homedir=/home/boernsimap,
address=boernsimap, fullname=, maildir=<null>, quota=<null>, options=<null>
Jun  5 18:16:54 holodeck authdaemond: pam_service=imap,
pam_username=boernsimap
Jun  5 18:16:54 holodeck authdaemond: dopam successful
Jun  5 18:16:54 holodeck authdaemond: Authenticated:
sysusername=boernsimap, sysuserid=<null>, sysgroupid=12404,
homedir=/home/boernsimap, address=boernsimap, fullname=, maildir=<null>,
quota=<null>, options=<null>
Jun  5 18:16:54 holodeck imapd: LOGIN, user=boernsimap,
ip=[::ffff:127.0.0.1], port=[35731], protocol=IMAP
Jun  5 18:19:35 holodeck imapd: LOGOUT, user=boernsimap,


When I do the same with user "boerns" I get this:
Jun  5 18:23:48 holodeck imapd: Connection, ip=[::ffff:127.0.0.1]
Jun  5 18:23:58 holodeck authdaemond: received auth request,
service=imap, authtype=login
Jun  5 18:23:58 holodeck authdaemond: authpam: trying this module
Jun  5 18:23:58 holodeck authdaemond: authpam: sysusername=boerns,
sysuserid=<null>, sysgroupid=507, homedir=/home/boerns, address=boerns,
fullname=, maildir=<null>, quota=<null>, options=<null>
Jun  5 18:23:58 holodeck authdaemond: pam_service=imap, pam_username=boerns
Jun  5 18:23:58 holodeck authdaemond: dopam successful
Jun  5 18:23:58 holodeck authdaemond: Authenticated: sysusername=boerns,
sysuserid=<null>, sysgroupid=507, homedir=/home/boerns, address=boerns,
fullname=, maildir=<null>, quota=<null>, options=<null>


But in interactive IMAP I get no further than:
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS XMAGICTRASH] Courier-IMAP ready. Copyright 1998-2010 Double
Precision, Inc.  See COPYING for distribution information.
0 user^H^H
0 NO Error in IMAP command received by server.
0 login boerns pass


STOP nothing further. When doing this with squirrelmail or thunderbird I
get a timeout. interactive telnet stays without timeout untill I kill
the process.


I think there must be something wrong with files in homedir of user
boerns, but I do not know which one.

Which files could be impacted used by courier-imap?

Any Idea?

Greetings

Alexander



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to