p dont think said: > I think it should work for you. > Let's see.... the most important setting you need is: > > $dontUseHostName = 1; > > and maybe (but not necessarily): > > $smHostIsDomainThatUserLoggedInWith = 1; > > Then in the $virtualDomains array, just make sure that 'org_name' is set > correctly and it should display the virtual domain on the login page > whilst the login to the IMAP server is not changed by the plugin. > > Send a sample of your config file if you still have troubles.
OK; well, I am able to login properly using just username, but the login page is not showing the domain name properly. Here's the vlogin config.php. I'm testing it with just 2 domains - mike-leone.com (me), and andiephilo.com (my girlfriend's, that I host). Going to <http://www.andiephilo.com/squirrelmail> still shows "mike-leone.com" on the login page, instead of "andiephilo.com". It's probably my fault somewhere. :-) Eventually, I'll have 2 or 3 other domains I'd like to use. <?php // Global Variables, don't touch these unless you want to break the plugin // global $notPartOfDomainName, $numberOfDotSections, $checkByExcludeList, $at, $dot, $dontUseHostName, $smHostIsDomainThatUserLoggedInWith, $virtualDomains, $virtualDomainDataDir; // list of domain-specific attributes // $virtualDomains = array( // 'domain1' => array( // 'org_name' => 'mike-leone.com',, // ), // 'domain2' => array( // 'org_name' => 'andiephilo.com', // 'org_logo' => '../images/andiephilo.gif', // 'org_title' => $_SESSION['username'] . ' - Mail' // // NOTE: The above line is an example of // // how you can place the user's // // email address in the SquirrelMail // // title bar. // ), // NOTE: What follows are all of the available settings for // this plugin. They need not all be specified. // // 'domain3' => array( // 'numberOfDotSections' => 0, // 'checkByExcludeList' => true, // 'at' => '@', // 'dot' => '.', // 'dontUseHostName' => 0, // 'smHostIsDomainThatUserLoggedInWith' => 0, // 'org_name' => 'My Domain 3', // 'org_logo' => '../images/domain3_image.gif', // 'org_logo_width' => '400', // 'org_logo_height' => '200', // 'org_title' => 'Mail for ' . $_SESSION['username'], // 'signout_page' => 'special_signout_page.php', // 'frame_top' => '_top', // 'squirrelmail_default_language' => 'jp_JP', // NOTE: You may set data_dir as you like, but below is an // example of how you may include the virtual host name // in the path: // // 'data_dir' => '/home/sites/###VIRTUAL_DOMAIN###/data/', // 'domain' => 'mike-leone.com.com', // 'imapServerAddress' => 'localhost', // 'imapPort' => '143', // 'useSendmail' => false, // 'smtpServerAddress' => 'localhost', // 'smtpPort' => '25', // 'sendmail_path' => '/usr/sbin/sendmail', // 'use_authenticated_smtp' => true, // 'pop_before_smtp' => false, // 'imap_server_type' => 'courier', // 'invert_time' => false, // 'optional_delimiter' => '.', // 'default_folder_prefix' => 'INBOX.', // 'trash_folder' => 'Trash', // 'sent_folder' => 'Sent', // 'draft_folder' => 'Drafts', // 'default_move_to_trash' => true, // 'default_move_to_sent' => true, // 'default_save_as_draft' => true, // 'show_prefix_option' => false, // 'list_special_folders_first' => true, // 'use_special_folder_color' => true, // 'auto_expunge' => true, // 'default_sub_of_inbox' => false, // 'show_contain_subfolders_option' => false, // 'default_unseen_notify' => 2, // 'default_unseen_type' => 1, // 'auto_create_special' => true, // 'delete_folder' => false, // 'noselect_fix_enable' => false // ) ); // flags to turn on/off check for irrelevant parts of the hostname // and/or number of dot sections in hostname (zero sections turns off // that check) // $numberOfDotSections = 0; $checkByExcludeList = true; // our "exclude list" of strings that are not usually part of the domain // name if given as the first part of the hostname // $notPartOfDomainName = array('www' ,'mail' ,'email' ,'webmail'); // some mail systems won't take the '@' symbol in the login name for virtual // host setups. Change that here: // $at = '@'; // also change the '.' symbol if necessary. // $dot = '.'; // you can choose not to append the host name to users' login // names no matter what by setting this to 1. This is a very // rare use of this plugin, and should usually be left at 0. // $dontUseHostName = 1; // Additionally, you can make sure your users' outgoing emails // come from the domain they used to log in if you set this // $smHostIsDomainThatUserLoggedInWith to 1. // NOTE that you'll typically only need to do this if you are // using $dontUseHostName = 1 // $smHostIsDomainThatUserLoggedInWith = 1; // Override the SquirrelMail $data_dir here, and optionally // include the virtual domain name as part of the path (indicated // by the constant "###VIRTUAL_DOMAIN###") (you may also do this // on a per-host basis in the array above) // //$virtualDomainDataDir = '/home/squirrelmail/data/'; //$virtualDomainDataDir = '/home/sites/###VIRTUAL_DOMAIN###/data/'; $virtualDomainDataDir = ''; ?> -- PGP Fingerprint: 0AA8 DC47 CB63 AE3F C739 6BF9 9AB4 1EF6 5AA5 BCDF Member, LEAF Project <http://leaf.sourceforge.net> AIM: MikeLeone Public Key - <http://www.mike-leone.com/~turgon/turgon-public-key.asc> Registered Linux user# 201348 ------------------------------------------------------- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
