Squirrelmail config script..

I have the below squirrelmail config script which needs to be adjusted to accept mail server login from mail.domain.com AND mail3.domain.com

As you can see, by default, the script already accepts mail.domain.com config.

==============CONFIG START================

if (strstr($login_username, '@')){
$login_username = trim($login_username);
$login_username = strtolower($login_username);
$user_arr=explode("@",$login_username);
$ses_domain=$user_arr[1];
session_register ($ses_domain, 'ses_domain');
}
$my_domain = $_SESSION[ses_domain];
// *** MAILSERVER VARIABLES
$my_smtpServerAddress = "mail." . $my_domain;
$my_imapServerAddress = "mail." . $my_domain;
$my_theme_default = 1;
$my_theme_css = "../themes/css/mystyle.css";
?>

==============CONFIG END================

Any ideas?
 
Back
Top