View previous topic :: View next topic |
Author |
Message |
ixion l33t
Joined: 16 Dec 2002 Posts: 708
|
Posted: Thu Dec 11, 2003 2:50 pm Post subject: Squirrelmail/courier-imap. Authentication. [SOLVED] |
|
|
I've read the many threads about Squirrelmail and Courier-imap and authentication, but haven't seen this problem yet.
When I try to login with Squirrelmail, I get this error page:
Code: |
SquirrelMail version 1.4.2
By the SquirrelMail Development Team
ERROR
You must be logged in to access this page.
Go to the login page
|
I can successfully login to Courier-Imap from the command line. I have tried authentication via pam and mysql with the same Squirrelmail results. I've re-emerged Courier-Imap twice.
History: This is a fresh webserver I just reinstalled Gentoo on. The Apache server runs chrooted. The chroot I use now and the chroot I used successfully before the format is the same one. It was copied to an empty partition before the reinstall and copied back to its original location afterwards. I've also emerged Squirrelmail and all of its dependencies outside the chroot but to no avail.
EDIT:
Logs report successful Courier-imap logins via Squirrelmail. There are no Courier-Imap errors in the logs. I can't find errors in the logs anywhere. Or perhaps I'm looking in all the wrong places? _________________ only the paranoid survive
Last edited by ixion on Sat Dec 13, 2003 2:44 am; edited 1 time in total |
|
Back to top |
|
|
ixion l33t
Joined: 16 Dec 2002 Posts: 708
|
Posted: Fri Dec 12, 2003 1:04 pm Post subject: |
|
|
Update:
emerged PHP on the outside (outside of the chroot) and played with register_globals and safe_mode with it and the PHP inside the chroot, nogo.
ran a fresh apache emerge along with squirrelmail all outside of the chroot with the same results.
On my way to work this morning I remembered one more inconsistency with my previous install. I now have '/tmp' mounted with 'noexec, nosuid' instead of the previous 'noexec' only. I may take off work early to address this, and will post back here my findings. What do you guys think is going on? _________________ only the paranoid survive |
|
Back to top |
|
|
ixion l33t
Joined: 16 Dec 2002 Posts: 708
|
Posted: Fri Dec 12, 2003 9:31 pm Post subject: |
|
|
Update:
mounting /tmp without any special options (even not mounting it at all) did not solve the problem. I don't understand what's going on.
I guess it's time for another reformat.. oh joy. _________________ only the paranoid survive |
|
Back to top |
|
|
ixion l33t
Joined: 16 Dec 2002 Posts: 708
|
Posted: Sat Dec 13, 2003 2:43 am Post subject: |
|
|
Problem solved.
I rebuilt the chroot. I think copying from one partition to another caused some permissions to be lost (perhaps I didn't use the correct cp flags?).
I hope this helps someone down the road. When in doubt and a chroot is involved, just rebuild the chroot. It'll save you time in the long run, believe me
Edit: A benefit of this is that now my chrooted apache is 1.3.29 with mod_ssl 2.8.16 _________________ only the paranoid survive |
|
Back to top |
|
|
dreamer Apprentice
Joined: 16 Aug 2003 Posts: 236
|
Posted: Sun Dec 14, 2003 12:28 am Post subject: |
|
|
so you run apache chrooted and are still able to access the maildir in the userhomes?
Didn't know this was possible, gonna try it now! |
|
Back to top |
|
|
ixion l33t
Joined: 16 Dec 2002 Posts: 708
|
Posted: Sun Dec 14, 2003 1:47 am Post subject: |
|
|
yeah, works like a champ with no issues. Apache is not using the homedirs, courier-imap is. Courier-imap is on the outside and Squirrelmail talks to it via localhost:143.. _________________ only the paranoid survive |
|
Back to top |
|
|
|