james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From charl...@apache.org
Subject cvs commit: jakarta-james/src/org/apache/james/userrepository UsersFileRepository.java
Date Sat, 17 Mar 2001 18:06:29 GMT
charlesb    01/03/17 10:06:29

  Modified:    conf     james.conf.xml
               src/org/apache/james/remotemanager RemoteManagerHandler.java
               src/org/apache/james/userrepository UsersFileRepository.java
  Log:
  UsersFileRepository obtained from UsersStore.getRepository(name) which initializes it, also
gave conf file full defaults.
  
  Revision  Changes    Path
  1.10      +19 -52    jakarta-james/conf/james.conf.xml
  
  Index: james.conf.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-james/conf/james.conf.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- james.conf.xml	2001/03/13 06:08:34	1.9
  +++ james.conf.xml	2001/03/17 18:06:28	1.10
  @@ -2,58 +2,15 @@
   <!--
                                   README!
   
  -    REQUIRED
  +    This configuration file is designed to run without alteration, for simple tests.
  +    It assumes you have a DNS server on localhost and assigns a root pasword of root.
   
  -    Please fill the DNSservers.server tag with the value of your DNS.
  +    For production use, or in case the defaults do not suit you, the items you are most
  +    likely to need to change are preceeded by a CHECKME! or CONFIRM? comment in the left
  +    margin.
   
  -    <dnsServer>
  -        <servers>
  -            <server> [hear goes your dns] </server>
  -        </servers>
  -    </dnsServer>
  -
  -    You can set as many dns as you want.
  -
  -    OPTIONAL, but very important
  -
  -    You should probably fill in the following settings:
  -
  -    <postmaster> [the email address to use as your postmaster] </postmaster>
  -
  -    <servernames>
  -        <servername> [a domain name for this server to handle] </servername>
  -        <servername> [another domain name to handle] </servername>
  -    </servernames>
  -
  -    <account login="root" password="[my password]"/>
  -    Note that you cannot leave a blank password.  If the password is blank, 
  -    the admin account is disabled.
  -
  -    Anti-relay mailet: Add your network address here, 
  -    e.g. "RemoteAddrNotInNetwork=127.0.0.1, abc.de.*"
  -
  -    <processor name="transport"> 
  -        <mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
  -                      
  -
  -    OPTIONAL, and interesting
  -
  -    For TLS support on POP3 or RemoteManager, enable the TLS Listener in 
  -    AVALON.conf.xml, then uncomment the <useTLS>TRUE</useTLS> elements for
the 
  -    appropriate protocol/ service. Please check docs/usingTLS.html for requirements.
  -
  -
  -    For LDAP support for users, change the  <userRepository> element from:
  -    <userRepository>file://var/users/ </userRepository> to: 
  -    <userRepository>ldap </userRepository>
  -    
  -    then set the parameteers for your LDAP server.  Please check docs/usingLDAP.html 
  -    for requirements.
  -
  -    !!TODO!
  -   
  -    - Quickly mention where to look to configure for database storage
   -->
  +
   <avalon>
   
   
  @@ -73,6 +30,8 @@
       <!-- Configuration section begins here -->
       <!-- Note trailing file searator in destinationURL for repositories -->
       <configuration>
  +
  +<!-- CHECKME! Set this to the right email address for error reports -->
         <postmaster> Postmaster@localhost </postmaster>
   
         <!-- helloName is the single host name this instance of James will use to
  @@ -82,6 +41,7 @@
         OR 'localhost' -->
         <helloName autodetect="TRUE">myMailServer</helloName>
   
  +<!-- CONFIRM? -->
         <!-- servernames identifies the DNS namespace served by this instance of James.
         If autodetect is TRUE, James wil attempt to discover its own name AND use
         any specified servernames.  If autodetect is FALSE, James will use only
  @@ -191,6 +151,7 @@
           </imaphandler>
         </imapServer>
   
  +<!-- CHECKME! Change the default password! -->
         <remoteManager>
           <port>4555</port>
           <!-- <bind>  </bind> uncomment this if you want to bind to a specific
inetaddress -->
  @@ -198,15 +159,16 @@
           <administrator_accounts>
             <!-- FILL ME!!!!!!  You must provide a password for youradministrator 
             accounts (cannot be blank) -->
  -          <account login="root" password="@@PASSWD@@"/>
  +          <account login="root" password="root"/>
           </administrator_accounts>
           <connectiontimeout> 60000 </connectiontimeout>
         </remoteManager>
   
  +<!-- CONFIRM? Enter ip address of your DNS server, one per element -->
         <dnsServer>
           <servers>
  -          <server>@@DNS@@</server>
  -          <!--<server> FILL ME!!!! </server>-->
  +          <server>127.0.0.1</server>
  +          <!--<server> put extra dns server address here </server>-->
           </servers>
           <authoritative>false</authoritative>
         </dnsServer>
  @@ -307,6 +269,11 @@
             <mailet match="HostIsLocal" class="ToProcessor">
               <processor>error</processor>
             </mailet>
  +
  +<!-- CHECKME! 
  +    Anti-relay mailet: Add your network address here, 
  +    e.g. "RemoteAddrNotInNetwork=127.0.0.1, abc.de.*"
  +-->
   
             <!-- This matcher-mailet pair can prevent relaying... if you change this,

             you risk making your mail server an open relay point for spammers .
  
  
  
  1.3       +6 -2      jakarta-james/src/org/apache/james/remotemanager/RemoteManagerHandler.java
  
  Index: RemoteManagerHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/org/apache/james/remotemanager/RemoteManagerHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RemoteManagerHandler.java	2001/03/13 22:09:00	1.2
  +++ RemoteManagerHandler.java	2001/03/17 18:06:29	1.3
  @@ -24,6 +24,7 @@
   import org.apache.cornerstone.services.scheduler.PeriodicTimeTrigger;
   import org.apache.cornerstone.services.scheduler.Target;
   import org.apache.james.services.MailServer;
  +import org.apache.james.services.UsersStore;
   import org.apache.james.services.UsersRepository;
   
   /**
  @@ -35,11 +36,13 @@
    * @version 1.0.0, 24/04/1999
    * @author  Federico Barbieri <scoobie@pop.systemy.it>
    * @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
  + *
    */
   public class RemoteManagerHandler 
       extends AbstractLoggable
       implements ConnectionHandler, Composer, Configurable, Target {
   
  +    private UsersStore usersStore;
       private UsersRepository users;
       private TimeScheduler scheduler;
       private MailServer mailServer;
  @@ -71,8 +74,9 @@
               lookup( "org.apache.cornerstone.services.scheduler.TimeScheduler" );
           mailServer = (MailServer)componentManager.
               lookup( "org.apache.james.services.MailServer" );
  -        users = (UsersRepository)componentManager.
  -            lookup( "org.apache.james.services.UsersRepository" );
  +	usersStore = (UsersStore)componentManager.
  +	    lookup( "org.apache.james.services.UsersStore" );
  +        users = usersStore.getRepository("LocalUsers");;
       }
   
       /**
  
  
  
  1.9       +3 -1      jakarta-james/src/org/apache/james/userrepository/UsersFileRepository.java
  
  Index: UsersFileRepository.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/org/apache/james/userrepository/UsersFileRepository.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- UsersFileRepository.java	2001/03/13 22:09:15	1.8
  +++ UsersFileRepository.java	2001/03/17 18:06:29	1.9
  @@ -14,6 +14,7 @@
   import org.apache.avalon.ComponentManager;
   import org.apache.avalon.ComponentManagerException;
   import org.apache.avalon.Composer;
  +import org.apache.avalon.Initializable;
   import org.apache.avalon.configuration.Configurable;
   import org.apache.avalon.configuration.Configuration;
   import org.apache.avalon.configuration.ConfigurationException;
  @@ -38,7 +39,8 @@
    */
   public class UsersFileRepository 
       extends AbstractLoggable
  -    implements UsersRepository, Component, Configurable, Composer {
  +    implements UsersRepository, Component, Configurable, Composer, 
  +               Initializable {
   
       private static final String TYPE = "USERS";
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message