LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2004, 08:20 PM   #1
lhoff
Member
 
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181

Rep: Reputation: 30
Courier-imap login woes


I just finished installing Courier-IMAP from courier-imap-2.1.2-1mdk.i586.rpm. (I'm on a Mandrake 9.2 distro.) I can't use it.

When I telnet localhost 143:
o login user password
o OK LOGIN Ok
o select INBOX
* BYE [ALERT] Fatal error: Permission denied

I have setup the /home/user/INBOX maildirs with maildirmake++

/home/user/INBOX is a maildir with cur/, new/, and tmp/ directories. All are user/user owned with 0755 permissions.

I'm using courier-imap with Postfix; I'm not using it with MySQL (yet). I *think* user authentication is done with PAM (there are no files for ldap on my system).

Please help! I'm completely stumped (after 2 days of trying). I don't even know where to find courier logs. (Nothing's being added to messages or syslog, and there's not unique directory in /var/log...)

Thanks!
----------------------- ADDITION --------------------
Below is the output of strace:

24930 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
24930 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
24930 open("/etc/ld.so.cache", O_RDONLY) = 3
24930 open("/lib/libc.so.6", O_RDONLY) = 3
24930 open("/dev/null", O_RDWR) = 3
24936 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
24930 --- SIGCHLD (Child exited) @ 0 (0) ---
24930 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
24930 open("/etc/ld.so.cache", O_RDONLY) = 4
24930 open("/lib/libc.so.6", O_RDONLY) = 4
24930 open("/etc/nsswitch.conf", O_RDONLY) = 3
24930 open("/etc/ld.so.cache", O_RDONLY) = 3
24930 open("/lib/libnss_files.so.2", O_RDONLY) = 3
24930 open("/etc/passwd", O_RDONLY) = 3
24930 open("/etc/group", O_RDONLY) = 3
24930 open("/etc/ld.so.cache", O_RDONLY) = 3
24930 open("/lib/libnss_nisplus.so.2", O_RDONLY) = 3
24930 open("/lib/libnsl.so.1", O_RDONLY) = 3
24930 open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or directory)
24930 open("/etc/ld.so.cache", O_RDONLY) = 3
24930 open("/lib/libnss_nis.so.2", O_RDONLY) = 3
24930 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
24930 open("/etc/ld.so.cache", O_RDONLY) = 3
24930 open("/usr/lib/libfam.so.0", O_RDONLY) = 3
24930 open("/usr/lib/libgdbm.so.2", O_RDONLY) = 3
24930 open("/lib/libc.so.6", O_RDONLY) = 3
24930 open("/usr/lib/libstdc++.so.5", O_RDONLY) = 3
24930 open("/lib/libm.so.6", O_RDONLY) = 3
24930 open("/lib/libgcc_s.so.1", O_RDONLY) = 3
24930 open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
24930 open(".Trash/new", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)
24930 open(".Trash/cur", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory)
24930 open("./tmp", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 EACCES (Permission denied)

I don't understnad this one:
- I have ~/INBOX/.Trash/* Is .Trash supposed to be outside of INBOX?
- I have ~/INBOX/tmp, with 0777 permissions. Is that the same directory quoted in strace (which is called "./tmp" and is where the permissions error is given...)

Thanks!

Last edited by lhoff; 03-03-2004 at 10:56 PM.
 
Old 03-08-2004, 12:27 AM   #2
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
dude

oh man, this is almosy exactly simular to my whole weekend. Courier LOGS stink, they stink. They can be found in maillog.


I am however using mysql authentication. I was getting permission denied until i just tried to chmod 777 and it all worked. Right now im trying to get down to the problem and cant seem to figure it out. Postfix is delivering mail to my Maildir with a 600 permission and my pop3 cant execute that cause it needs to take it out of the folder.

Totally insaine i tell you, my eyes are glazing over because of this.
 
Old 03-08-2004, 06:04 AM   #3
lhoff
Member
 
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181

Original Poster
Rep: Reputation: 30
I actually finally got help from the Mandrake newsgroup. I had made all my maildirs by invoking maildirmake++. One guy said the STRACE errors were because all my maildirs were fubar and that I shouldn't have made them that way. So, I deleted them all and let Postfix create them when it needed to make a delivery. Now, all works.

The courier-imap mailing list archives were empty and the respondants were completely unhelpful. I hope you have good luck!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
qmail-ldap + courier-imap woes (imap capability) syahid Linux - General 1 10-12-2005 12:03 AM
courier-imap login problem kubicon Linux - Networking 2 11-13-2004 09:09 PM
qmail + courier imap + squirrelmail...can't login using squirremail..user invalid rnj Linux - Newbie 6 10-11-2004 11:14 PM
Courier-IMAP on Debian wont login vladimir-dk Linux - Software 0 07-03-2004 06:25 AM
Postfix+Courier-IMAP Login Problems kasb Linux - Software 1 11-02-2003 07:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:46 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