Alright, after searching my butt off, I found a couple of things for the particular issues here:
Cpanel patch:
For auto login:
Edit the Index.php
// error steps
if ($_action=='error' && !empty($_GET['_code']))
raise_error(array('code' => hexdec($_GET['_code'])), FALSE, TRUE);
// ADD THIS WHOLE BLOCK OF 16 LINES - START
if ( empty($_action) && empty($_SESSION['user_id']) && !empty($_SERVER['REMOTE_PASSWORD'])) {
if (empty($_COOKIE)) {
$OUTPUT->show_message("cookiesdisabled", 'warning');
} else if (rcmail_login($_SERVER['REMOTE_USER'], $_SERVER['REMOTE_PASSWORD'], $host)) {
// create new session ID
unset($_SESSION['temp']);
sess_regenerate_id();
// send auth cookie if necessary
rcmail_authenticate_session();
// send redirect
header("Location: $COMM_PATH");
exit;
}
}
// ADD THIS WHOLE BLOCK OF 16 LINES - END
// try to log in
if ($_action=='login' && $_task=='mail')
None Cpanel, but cpanel needs this too, as when they go to check their mail, they will get a blank page.
For e-mails not displaying:
Find and comment out:
// check client X-header to verify request origin
if ($OUTPUT->ajax_call)
{
if (empty($CONFIG['devel_mode']) && !rc_request_header('X-RoundCube-Referer'))
{
header('HTTP/1.1 404 Not Found');
die("Invalid Request");
}
}
Cpanel patch:
For auto logout:
// end session
else if (($_task=='logout' || $_action=='logout') && isset($_SESSION['user_id']))
{
$OUTPUT->show_message('loggedout');
rcmail_kill_session();
header('Location: /webmaillogout.cgi'); <--- ADD THIS LINE
exit; <--- ADD THIS LINE
}
Hope this helps you all, It finally fixed my issue.