p dont think said:

> I apologize for what probably seems like a somewhat
> confusing/overwhelming config file, and I am thinking that I will
> include a more realistic sample config file in the next release.  For
> you, something like this might work:

Unfortunately, it didn't. Go to <http://www.andiephilo.com/squirrelmail>
and see that it still says "mike-leone.com".

Here's the config.php I'm using:

<?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'
        ),
  );


  // 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 = '';

?>

Domain defined as:

<VirtualHost 192.168.100.20>
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /var/www/andiephilo
  ServerName www.andiephilo.com
  ErrorLog /var/log/apache/andiephilo.log
  TransferLog /var/log/apache/andiephilo-access.log
</VirtualHost>


-- 
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: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
--
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

Reply via email to