<?php


   // Global Variables, don't touch these unless you want to break the plugin
   //
   global $domain,
          $removeDomainIfGiven, $at, $dot, $virtualDomains,
          $vlogin_debug, $useDomainFromVirtDomainsArray;



   // If users log in with a full email address, you can strip
   // off the domain information, leaving just the username.
   // The domain name parsed out of the URL by this plugin
   // will be added back to the username unless you use the
   // $dontUseHostName functionality
   //
   $removeDomainIfGiven = 1;


   // List of domain-specific attributes (note that each domain is
   // specified in this array by any string that is unique to the
   // virtual host name (not necessarily the whole host name --
   // "mydomain" is probably enough to represent "mydomain.com")
   //
   $virtualDomains = array(
       '*' => array(
           'domain'  => $domain,
       ),
   );


   // When turned on, this setting attempts to use the "domain"
   // setting from the $virtualDomains array for the hostname
   // portion of the username instead of using the parsed domain
   // from the URL (which is only used if "domain" is not given
   // in the relevant $virtualDomains section).  This makes most
   // settings below obsolete as long as you always specify a
   // "domain" in all of your $virtualDomain entries.
   //
   $useDomainFromVirtDomainsArray = 1;


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


   // Turn this on to test your configuration settings - the final
   // IMAP login value will be presented after all processing has
   // been completed
   //
   $vlogin_debug = 0;


