You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by hb...@apache.org on 2001/04/21 08:48:18 UTC

cvs commit: jakarta-james/conf james-assembly.xml james-config.xml

hbedi       01/04/20 23:48:18

  Modified:    conf     james-assembly.xml james-config.xml
  Log:
  Split the code into blocks
  
  Revision  Changes    Path
  1.2       +79 -0     jakarta-james/conf/james-assembly.xml
  
  Index: james-assembly.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-james/conf/james-assembly.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- james-assembly.xml	2001/04/20 01:51:20	1.1
  +++ james-assembly.xml	2001/04/21 06:48:18	1.2
  @@ -18,6 +18,85 @@
                role="org.apache.cornerstone.services.scheduler.TimeScheduler"/>
     </block>
   
  +  <!-- The James Spool Manager block  -->
  +  <block class="org.apache.james.transport.JamesSpoolManager" 
  +	name="spoolmanager" >
  +    <provide name="James" role="org.apache.mailet.MailetContext"/>
  +    <provide name="mailstore" role="org.apache.james.services.MailStore"/>
  +  </block>
  +
  +
  +  <block class="org.apache.james.dnsserver.DNSServer" name="dnsserver" />
  +
  +  <block class="org.apache.james.remotemanager.RemoteManager" name="remotemanager" >
  +    <provide name="mailstore" role="org.apache.james.services.MailStore"/>
  +    <provide name="users-store" role="org.apache.james.services.UsersStore"/>
  +    <provide name="sockets"
  +        role="org.apache.cornerstone.services.sockets.SocketManager"/>
  +    <provide name="connections" 
  +        role="org.apache.cornerstone.services.connection.ConnectionManager"/>
  +    <provide name="scheduler"
  +        role="org.apache.cornerstone.services.scheduler.TimeScheduler"/>
  +    <provide name="James" role="org.apache.james.services.MailServer"/>
  +  </block>
  +
  +  <!-- WARNING - The IMAP server is only experimental, ie pre-alpha -->
  +  <block class="org.apache.james.imapserver.IMAPServer" name="imapserver" >
  +    <provide name="mailstore" role="org.apache.james.services.MailStore"/>
  +    <provide name="users-store" role="org.apache.james.services.UsersStore"/>
  +    <provide name="sockets"
  +        role="org.apache.cornerstone.services.sockets.SocketManager"/>
  +    <provide name="connections" 
  +        role="org.apache.cornerstone.services.connection.ConnectionManager"/>
  +    <provide name="scheduler"
  +        role="org.apache.cornerstone.services.scheduler.TimeScheduler"/>
  +    <provide name="James" role="org.apache.james.services.MailServer"/>
  +  </block>
  +
  +  <!-- POP3 Server -->
  +  <block class="org.apache.james.pop3server.POP3Server" name="pop3server" >
  +    <provide name="mailstore" role="org.apache.james.services.MailStore"/>
  +    <provide name="users-store" role="org.apache.james.services.UsersStore"/>
  +    <provide name="sockets"
  +        role="org.apache.cornerstone.services.sockets.SocketManager"/>
  +    <provide name="connections" 
  +        role="org.apache.cornerstone.services.connection.ConnectionManager"/>
  +    <provide name="scheduler"
  +        role="org.apache.cornerstone.services.scheduler.TimeScheduler"/>
  +    <provide name="James" role="org.apache.james.services.MailServer"/>
  +  </block>
  +
  +  <!-- SMTP Server -->
  +  <block class="org.apache.james.smtpserver.SMTPServer" name="smtpserver" >
  +    <provide name="mailstore" role="org.apache.james.services.MailStore"/>
  +    <provide name="users-store" role="org.apache.james.services.UsersStore"/>
  +    <provide name="sockets"
  +        role="org.apache.cornerstone.services.sockets.SocketManager"/>
  +    <provide name="connections" 
  +        role="org.apache.cornerstone.services.connection.ConnectionManager"/>
  +    <provide name="scheduler"
  +        role="org.apache.cornerstone.services.scheduler.TimeScheduler"/>
  +    <provide name="James" role="org.apache.james.services.MailServer"/>
  +  </block>
  +
  +  <!-- NNTP Server -->
  +  <block class="org.apache.james.nntpserver.NNTPServer" name="nntpserver" >
  +    <provide name="mailstore" role="org.apache.james.services.MailStore"/>
  +    <provide name="users-store" role="org.apache.james.services.UsersStore"/>
  +    <provide name="sockets"
  +        role="org.apache.cornerstone.services.sockets.SocketManager"/>
  +    <provide name="connections" 
  +        role="org.apache.cornerstone.services.connection.ConnectionManager"/>
  +    <provide name="scheduler"
  +        role="org.apache.cornerstone.services.scheduler.TimeScheduler"/>
  +    <provide name="nntp-repository"
  +        role="org.apache.james.nntpserver.repository.NNTPRepository"/>
  +  </block>
  +
  +  <!-- NNTP Repository -->
  +  <block class="org.apache.james.nntpserver.repository.NNTPRepositoryImpl" name="nntp-repository" >
  +  </block>
  +
     <!-- The High Level Storage block -->
     <block class="org.apache.james.core.AvalonMailStore" name="mailstore" >
       <provide name="objectstorage"
  
  
  
  1.2       +140 -118  jakarta-james/conf/james-config.xml
  
  Index: james-config.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-james/conf/james-config.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- james-config.xml	2001/04/20 01:51:20	1.1
  +++ james-config.xml	2001/04/21 06:48:18	1.2
  @@ -42,10 +42,6 @@
           <servername>localhost</servername>
         </servernames>
   
  -      <!-- Set the facilities offered by this instance of JAMES -->
  -      <!-- WARNING - The IMAP server is only experimental, ie pre-alpha -->
  -      <services SMTP="TRUE" POP3="TRUE" IMAP="FALSE"  NNTP="FALSE"/>
  -
         <!-- Set the type of permanent mailfolders to be used.
         If IMAP service is to be provided, storage must be 'IMAP'; if only POP3
         service is being provided then use must be 'basic' (default) . At some
  @@ -106,122 +102,36 @@
           </repository>
         </inboxRepository>
         -->
  -
  -      <smtpServer>
  -        <port>25</port>
  -        <!--<bind></bind> uncomment this if you want to bind to a specific
  -        inetaddress -->
  -        <!--<useTLS>TRUE</useTLS> uncomment this if you want to use TLS (SSL)
  -        on this port -->
  -        <smtphandler>
  -          <connectiontimeout>360000</connectiontimeout>
  -          <!-- This sets the maximum allowed message size for the smtphandler
  -          in KBytes.
  -          The value defaults to 0, which means no limit.
  -          <maxmessagesize>0</maxmessagesize>
  -           -->
  -        </smtphandler>
  -      </smtpServer>
  -
  -      <pop3Server>
  -        <port>110</port>
  -        <!-- <port>995</port> -->
  -        <!-- port 995 is the well-known/IANA registered port for POP3S
  -        ie over SSL/TLS -->
  -        <!-- <bind>  </bind>  uncomment this if you want to bind to a specific
  -        inetaddress-->
  -        <!-- <useTLS>TRUE</useTLS> uncomment this if you want to use TLS (SSL)
  -        on this port -->
  -        <pop3handler>
  -          <connectiontimeout>120000</connectiontimeout>
  -        </pop3handler>
  -      </pop3Server>
  -
  -      <imapServer>
  -        <port>143</port>
  -        <!-- <port>995</port> -->
  -        <!-- need to check what if any IMAP over SSL uses -->
  -        <!-- <bind>  </bind>  uncomment this if you want to bind to a specific
  -        inetaddress-->
  -        <!-- <useTLS>TRUE</useTLS> uncomment this if you want to use TLS (SSL)
  -        on this port -->
  -        <imaphandler>
  -          <connectiontimeout>1800000</connectiontimeout>
  -        </imaphandler>
  -      </imapServer>
  -
  -      <nntpServer>
  -        <port>119</port>
  -        <!-- <port>563</port> -->
  -        <!-- port 563 is the well-known/IANA registered port for NNTPS
  -        ie over SSL/TLS -->
  -        <!-- <bind>  </bind>  uncomment this if you want to bind to a specific
  -        inetaddress-->
  -        <!-- <useTLS>TRUE</useTLS> uncomment this if you want to use TLS (SSL)
  -        on this port -->
  -        <nntphandler>
  -          <connectiontimeout>120000</connectiontimeout>
  -	  <!-- make this true, if you want only authenticated users to access NNTP-->
  -          <authRequired>false</authRequired>
  -        </nntphandler>
  -	<!-- NNTP Repository -->
  -        <repository>
  -            <configuration>
  -	        <!-- make this true to disallow posting to all newsgroups-->
  -		<readOnly>false</readOnly>
  -	        <rootPath>file:///var/nntp/groups</rootPath>
  -	        <tempPath>file:///var/nntp/temp</tempPath>
  -	        <articleIDPath>file:///var/nntp/articleid</articleIDPath>
  -	        <articleIDDomainSuffix>news.james.apache.org</articleIDDomainSuffix>
  -		<!-- these additional news groups would be created and exposed-->
  -		<newsgroups>
  -		  <newsgroup>org.apache.james.dev</newsgroup>
  -		  <newsgroup>org.apache.james.user</newsgroup>
  -		  <newsgroup>org.apache.avalon.dev</newsgroup>
  -		  <newsgroup>org.apache.avalon.user</newsgroup>
  -		</newsgroups>
  -	        <spool>
  -            	  <configuration>
  -		    <spoolPath>file:///var/nntp/spool</spoolPath>
  -		    <!-- number of threads that process spooler related tasks -->
  -		    <threadCount>1</threadCount>
  -		    <!-- the spool thread(s) should idle for some time, 
  -	               if it has nothing to do  -->
  -		    <threadIdleTime>1000</threadIdleTime>
  -            	  </configuration>
  -	        </spool>
  -            </configuration>
  -	</repository>
  -      </nntpServer>
  -
  -<!-- CHECKME! Change the default password! -->
  -      <remoteManager>
  -        <port>4555</port>
  -        <!-- <bind>  </bind> uncomment this if you want to bind to a specific
  -        inetaddress -->
  -        <!-- <useTLS>TRUE</useTLS> uncomment this if you want to use TLS (SSL)
  -        on this port -->
  -        <administrator_accounts>
  +  </James>
   
  -          <!-- FILL ME!!!!!!  You must provide a password for your
  -          administrator accounts (cannot be blank) -->
  -          <account login="root" password="root"/>
  +  <!-- The James Spool Manager block  -->
  +  <spoolmanager>
  +      <!-- The spool repository is a singular location where incoming mails
  +      are temporarily stored before being processed.
  +     (ex. file://c:/james/spool/) 
  +	The Spoool Manager and James Block must point to the same repository
  +	to add and process same messages. -->
  +      <spoolRepository>
  +        <repository destinationURL="file://../../../store/mail/spool/"
  +                    type="SPOOL"
  +                    model="SYNCHRONOUS">
  +        </repository>
  +      </spoolRepository>
   
  -        </administrator_accounts>
  -        <connectiontimeout> 60000 </connectiontimeout>
  -      </remoteManager>
  +      <!-- Alternative spool repository definition for Town use
  +      <spoolRepository>
  +        <repository destinationURL="town://mainspool"
  +                    type="SPOOL"
  +                    model="SYNCHRONOUS">
  +          <conn>file:///dev/james/dist/../../store/maildatabase</conn>
  +          <table>Message</table>
  +        </repository>
  +      </spoolRepository>
  +      -->
   
  -<!-- CONFIRM? Enter ip address of your DNS server, one per element -->
  -      <dnsServer>
  -        <servers>
  -          <server>127.0.0.1</server>
  -          <!--<server> put extra dns server address here </server>-->
  -        </servers>
  -        <authoritative>false</authoritative>
  -      </dnsServer>
  +      <!-- number of spool threads -->
  +      <threads> 1 </threads>
   
  -      <!-- <spoolmanagerthreads> 1 </spoolmanagerthreads> -->
  -      <spoolmanager>
           <!-- Set the packages from which to load mailets and matches -->
           <mailetpackages>
             <mailetpackage>org.apache.james.transport.mailets.</mailetpackage>
  @@ -379,8 +289,120 @@
               <!-- <repositoryPath> town://spam </repositoryPath> -->
             </mailet>
           </processor>
  -      </spoolmanager>   
  -  </James>
  +  </spoolmanager>
  +
  +
  +<!-- CONFIRM? Enter ip address of your DNS server, one per element -->
  +  <dnsserver>
  +        <servers>
  +          <server>127.0.0.1</server>
  +          <!--<server> put extra dns server address here </server>-->
  +        </servers>
  +        <authoritative>false</authoritative>
  +  </dnsserver>
  +
  +<!-- CHECKME! Change the default password! -->
  +  <remotemanager>
  +        <port>4555</port>
  +        <!-- <bind>  </bind> uncomment this if you want to bind to a specific
  +        inetaddress -->
  +        <!-- <useTLS>TRUE</useTLS> uncomment this if you want to use TLS (SSL)
  +        on this port -->
  +        <administrator_accounts>
  +
  +          <!-- FILL ME!!!!!!  You must provide a password for your
  +          administrator accounts (cannot be blank) -->
  +          <account login="root" password="root"/>
  +
  +        </administrator_accounts>
  +        <connectiontimeout> 60000 </connectiontimeout>
  +  </remotemanager>
  +
  +  <!-- WARNING - The IMAP server is only experimental, ie pre-alpha -->
  +  <imapserver>
  +        <port>143</port>
  +        <!-- <port>995</port> -->
  +        <!-- need to check what if any IMAP over SSL uses -->
  +        <!-- <bind>  </bind>  uncomment this if you want to bind to a specific
  +        inetaddress-->
  +        <!-- <useTLS>TRUE</useTLS> uncomment this if you want to use TLS (SSL)
  +        on this port -->
  +        <imaphandler>
  +          <connectiontimeout>1800000</connectiontimeout>
  +	</imaphandler>
  +  </imapserver>
  +
  +  <pop3server>
  +        <port>110</port>
  +        <!-- <port>995</port> -->
  +        <!-- port 995 is the well-known/IANA registered port for POP3S
  +        ie over SSL/TLS -->
  +        <!-- <bind>  </bind>  uncomment this if you want to bind to a specific
  +        inetaddress-->
  +        <!-- <useTLS>TRUE</useTLS> uncomment this if you want to use TLS (SSL)
  +        on this port -->
  +        <pop3handler>
  +          <connectiontimeout>120000</connectiontimeout>
  +        </pop3handler>
  +  </pop3server>
  +
  +  <smtpserver>
  +        <port>25</port>
  +        <!--<bind></bind> uncomment this if you want to bind to a specific
  +        inetaddress -->
  +        <!--<useTLS>TRUE</useTLS> uncomment this if you want to use TLS (SSL)
  +        on this port -->
  +        <smtphandler>
  +          <connectiontimeout>360000</connectiontimeout>
  +          <!-- This sets the maximum allowed message size for the smtphandler
  +          in KBytes.
  +          The value defaults to 0, which means no limit.
  +          <maxmessagesize>0</maxmessagesize>
  +           -->
  +        </smtphandler>
  +  </smtpserver>
  +
  +  <nntpserver>
  +        <port>119</port>
  +        <!-- <port>563</port> -->
  +        <!-- port 563 is the well-known/IANA registered port for NNTPS
  +        ie over SSL/TLS -->
  +        <!-- <bind>  </bind>  uncomment this if you want to bind to a specific
  +        inetaddress-->
  +        <!-- <useTLS>TRUE</useTLS> uncomment this if you want to use TLS (SSL)
  +        on this port -->
  +        <nntphandler>
  +          <connectiontimeout>120000</connectiontimeout>
  +	  <!-- make this true, if you want only authenticated users to access NNTP-->
  +          <authRequired>false</authRequired>
  +        </nntphandler>
  +  </nntpserver>
  +
  +  <nntp-repository>
  +        <!-- make this true to disallow posting to all newsgroups-->
  +	<readOnly>false</readOnly>
  +	<rootPath>file:///var/nntp/groups</rootPath>
  +	<tempPath>file:///var/nntp/temp</tempPath>
  +	<articleIDPath>file:///var/nntp/articleid</articleIDPath>
  +	<articleIDDomainSuffix>news.james.apache.org</articleIDDomainSuffix>
  +	<!-- these additional news groups would be created and exposed-->
  +	<newsgroups>
  +	  <newsgroup>org.apache.james.dev</newsgroup>
  +	  <newsgroup>org.apache.james.user</newsgroup>
  +	  <newsgroup>org.apache.avalon.dev</newsgroup>
  +	  <newsgroup>org.apache.avalon.user</newsgroup>
  +	</newsgroups>
  +	<spool>
  +          <configuration>
  +	    <spoolPath>file:///var/nntp/spool</spoolPath>
  +	    <!-- number of threads that process spooler related tasks -->
  +	    <threadCount>1</threadCount>
  +	    <!-- the spool thread(s) should idle for some time, 
  +	        if it has nothing to do  -->
  +	    <threadIdleTime>1000</threadIdleTime>
  +          </configuration>
  +	</spool>
  +  </nntp-repository>
   
     <!-- The High Level Storage block -->
     <mailstore>
  
  
  

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