For those of you who already have PHP and squirrelmail running but get the "You must be logged in to access this page." error after the login page, there is a description of redirect fix at http://sourceforge.net/tracker/index.php?func=detail&aid=542724&group_id=311&atid=100311 The actual fix is below. To verify this is the problem, check and look in the IMAP4 Server monitoring screen in Mercury and if you see that you logged in there, but have an error in squirrelmail after the login, then it's probably the redirect fix you need to do. There is only one line that needs to be changed. You can cut-and-paste from here: in the file src/redirect.php Replace: header("Location: $redirect_url"); with: echo "Enter";