Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Squirrelmail/courier-imap. Authentication. [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Thu Dec 11, 2003 2:50 pm    Post subject: Squirrelmail/courier-imap. Authentication. [SOLVED] Reply with quote

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
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Fri Dec 12, 2003 1:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Fri Dec 12, 2003 9:31 pm    Post subject: Reply with quote

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. :roll:
_________________
only the paranoid survive
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Sat Dec 13, 2003 2:43 am    Post subject: Reply with quote

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
View user's profile Send private message
dreamer
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 236

PostPosted: Sun Dec 14, 2003 12:28 am    Post subject: Reply with quote

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! :D
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Sun Dec 14, 2003 1:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum