You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2002/08/16 10:36:12 UTC

cvs commit: jakarta-avalon-excalibur/assembly/demo/lib cornerstone.jar excalibur-io-1.1.jar excalibur-pool-1.0.jar excalibur-thread-1.0.jar

mcconnell    2002/08/16 01:36:12

  Added:       assembly/demo/james README.TXT james.xml
               assembly/demo/lib cornerstone.jar excalibur-io-1.1.jar
                        excalibur-pool-1.0.jar excalibur-thread-1.0.jar
  Log:
  Added James demo resources.
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-excalibur/assembly/demo/james/README.TXT
  
  Index: README.TXT
  ===================================================================
  
  This project is dealing with execution of the James mail server within Merlin.
  This demonstration is incomplete at this stage (i.e. if you a committer on James - go for it).
  
  
  1.1                  jakarta-avalon-excalibur/assembly/demo/james/james.xml
  
  Index: james.xml
  ===================================================================
  
  <!--
  Assemble a ORB containing a time service.
  -->
  
  <kernel>
  
     <logging priority="INFO" target="default">
        <category priority="ERROR"  name="logging" />
        <target name="time">
          <file location="time.log" />
        </target>
     </logging>
  
     <extensions>
       <dirset dir=".">
         <include name="extensions"/>
       </dirset>
     </extensions>
  
     <container name="root">
  
       <categories priority="WARN">
         <category priority="ERROR"  name="kernel" />
         <category priority="ERROR"  name="loader" />
       </categories>
  
       <classpath>
         <fileset dir="dist">
           <include name="tools.jar"/>
         </fileset>
         <fileset dir="lib">
           <include name="phoenix-client.jar"/>
         </fileset>
         <fileset dir="demo/lib">
           <include name="cornerstone.jar"/>
           <include name="excalibur-thread-1.0.jar"/>
           <include name="excalibur-pool-1.0.jar"/>
           <include name="excalibur-io-1.1.jar"/>
         </fileset>
       </classpath>
  
       <!-- DefaultDataSourceSelector will be managed implicitly -->
  
       <!-- RepositoryManager will be managed as a packaged profile -->
  
       <!-- DefaultTimeScheduler will be managed implicitly -->
  
       <component name="sockets" 
           class="org.apache.avalon.cornerstone.blocks.sockets.DefaultSocketManager" activation="false">
         <context class="org.apache.excalibur.merlin.toolkit.GenericBlockContext">
           <import key="app.home" name="avalon:home"/>
           <entry key="block.name" value="store"/>
         </context>
         <configuration>
           <server-sockets>
             <factory name="plain" 
               class="org.apache.avalon.cornerstone.blocks.sockets.DefaultServerSocketFactory"/>
           </server-sockets>
           <client-sockets>
             <factory name="plain" 
               class="org.apache.avalon.cornerstone.blocks.sockets.DefaultSocketFactory"/>
           </client-sockets>
         </configuration>
       </component>
  
       <container name="james">
  
         <categories priority="INFO">
           <category priority="ERROR"  name="loader" />
         </categories>
  
         <classpath>
           <fileset dir="../../jakarta-james/build/lib">
             <include name="james.jar"/>
             <include name="mailet.jar"/>
           </fileset>
           <fileset dir="../../jakarta-james/lib">
             <include name="dnsjava-1.2.3.jar"/>
             <include name="mail_1_2.jar"/>
             <include name="jakarta-oro-2.0.1.jar"/>
             <include name="activation.jar"/>
           </fileset>
         </classpath>
  
         <component name="dns" 
            class="org.apache.james.dnsserver.DNSServer" 
            activation="true">
           <configuration>
             <servers>
               <server>127.0.0.1</server>
               <!--<server> put extra dns server address here </server>-->
               <server>212.198.0.66</server>
               <server>212.198.0.67</server>
               <server>194.51.32.65</server>
             </servers>
             <authoritative>false</authoritative>
           </configuration>
         </component>
  
         <component name="nntp" 
            class="org.apache.james.nntpserver.repository.NNTPRepositoryImpl" 
            activation="false">
           <configuration>
             <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>
             <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>
                 <threadCount>1</threadCount>
                 <threadIdleTime>1000</threadIdleTime>
               </configuration>
             </spool>
           </configuration>
         </component>
  
         <component name="nntp-auth" 
            class="org.apache.james.nntpserver.AuthServiceImpl" 
            activation="false">
           <configuration>
             <authRequired>false</authRequired>
           </configuration>
         </component>
  
         <component name="nntp-server" 
            class="org.apache.james.nntpserver.NNTPServer" 
            activation="false">
           <configuration>
             <port>119</port>
             <handler>
               <helloName autodetect="TRUE">myMailServer</helloName>
               <connectiontimeout>120000</connectiontimeout>
             </handler>
           </configuration>
         </component>
  
         <!-- this component appears to be calling the cornerstone masterstore select 
           operation before registering the handler -->
  
         <component name="users" 
            class="org.apache.james.core.AvalonUsersStore" 
            activation="false">
           <configuration>
             <repository name="LocalUsers" 
                 class="org.apache.james.userrepository.UsersFileRepository">
              <destination URL="file://var/users/"/>
             </repository>
             <repository name="list-james" class="org.apache.james.userrepository.UsersFileRepository">
              <destination URL="file://var/lists/list-james/"/>
             </repository>
           </configuration>
         </component>
  
         <component name="mailstore" 
            class="org.apache.james.core.AvalonMailStore" 
            activation="false">
           <categories priority="DEBUG"/>
           <configuration>
             <repositories>
               <repository class="org.apache.james.mailrepository.AvalonMailRepository">
                 <protocols>
                   <protocol>file</protocol>
                 </protocols>
                 <types>
                   <type>MAIL</type>
                 </types>
               </repository>
               <repository class="org.apache.james.mailrepository.AvalonSpoolRepository">
                 <protocols>
                   <protocol>file</protocol>
                 </protocols>
                 <types>
                   <type>SPOOL</type>
                 </types>
               </repository>
  
               <!-- These repositories store the entire message in the database -->
               <repository class="org.apache.james.mailrepository.JDBCMailRepository">
                 <protocols>
                   <protocol>db</protocol>
                 </protocols>
                 <types>
                   <type>MAIL</type>
                 </types>
                 <config>
                   <sqlFile>file://conf/sqlResources.xml</sqlFile>
                 </config>
               </repository>
               <repository class="org.apache.james.mailrepository.JDBCSpoolRepository">
                 <protocols>
                   <protocol>db</protocol>
                 </protocols>
                 <types>
                    <type>SPOOL</type>
                 </types>
                 <config>
                    <sqlFile>file://conf/sqlResources.xml</sqlFile>
                 </config>
               </repository>
  
               <!-- These repositories store message delivery and headers in the DB, and 
                    the body to the filesystem -->
               <repository class="org.apache.james.mailrepository.JDBCMailRepository">
                 <protocols>
                   <protocol>dbfile</protocol>
                 </protocols>
                 <types>
                   <type>MAIL</type>
                 </types>
                 <config>
                   <sqlFile>file://conf/sqlResources.xml</sqlFile>
                   <filestore>file://var/dbmail</filestore>
                 </config>
               </repository>
               <repository class="org.apache.james.mailrepository.JDBCSpoolRepository">
                 <protocols>
                   <protocol>dbfile</protocol>
                 </protocols>
                 <types>
                   <type>SPOOL</type>
                 </types>
                 <config>
                   <sqlFile>file://conf/sqlResources.xml</sqlFile>
                   <filestore>file://var/dbmail</filestore>
                 </config>
               </repository>
             </repositories>
             <spoolRepository>
               <repository destinationURL="file://var/mail/spool/" type="SPOOL"/>
             </spoolRepository>
           </configuration>
         </component>
  
         <component name="james" 
            class="org.apache.james.James" 
            activation="true">
           <categories priority="DEBUG"/>
           <configuration>
             <postmaster> postmaster@localhost </postmaster>
             <servernames autodetect="TRUE">
               <servername>localhost</servername>
               <servername>home.osm.net</servername>
             </servernames>
             <usernames ignoreCase="TRUE" enableAliases="TRUE" enableForwarding="TRUE"/>
             <inboxRepository>
              <repository destinationURL="file://var/mail/inboxes/" type="MAIL"/>
             </inboxRepository>
           </configuration>
         </component>
  
         <component name="spool" 
            class="org.apache.james.transport.JamesSpoolManager" 
            activation="true">
           <categories priority="DEBUG"/>
           <configuration>
             <threads> 10 </threads>
               <mailetpackages>
                 <mailetpackage>org.apache.james.transport.mailets</mailetpackage>
               </mailetpackages>
               <matcherpackages>
                 <matcherpackage>org.apache.james.transport.matchers</matcherpackage>
               </matcherpackages>
  
               <processor name="root">
                 <mailet match="SenderInFakeDomain" class="ToProcessor">
                   <processor> spam </processor>
                 </mailet>
  
                 <mailet match="RelayLimit=30" class="Null"/>
  
                 <mailet match="InSpammerBlacklist=blackholes.mail-abuse.org" class="ToProcessor">
                   <processor> spam </processor>
                   <notice> Rejected - see  http://www.mail-abuse.org/rbl/ </notice>
                 </mailet>
                 <mailet match="InSpammerBlacklist=dialups.mail-abuse.org" class="ToProcessor">
                   <processor> spam </processor>
                   <notice> Dialup - see http://www.mail-abuse.org/dul/ </notice>
                 </mailet>
                 <mailet match="InSpammerBlacklist=relays.mail-abuse.org" class="ToProcessor">
                   <processor> spam </processor>
                   <notice> Open spam relay - see http://www.mail-abuse.org/rss/ </notice>
                 </mailet>
                 <mailet match="RecipientIs=badboy@badhost" class="Null"/>
                 <mailet match="All" class="ToProcessor">
                   <processor> transport </processor>
                 </mailet>
               </processor>
  
               <processor name="error">
                 <mailet match="All" class="ToRepository">
                   <repositoryPath> file://var/mail/error/</repositoryPath>
                   <passThrough> true </passThrough>
                 </mailet>
               </processor>
  
               <processor name="transport">
                 <mailet match="RecipientIsLocal" class="LocalDelivery"/>
                 <mailet match="HostIsLocal" class="ToProcessor">
                   <processor>error</processor>
                 </mailet>
                 <mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
                   <processor> spam </processor>
                 </mailet>
                 <mailet match="All" class="RemoteDelivery">
                   <outgoing> file://var/mail/outgoing/ </outgoing>
                   <delayTime> 21600000 </delayTime>
                   <maxRetries> 5 </maxRetries>
                   <deliveryThreads> 1 </deliveryThreads>
                   <!--<gateway> otherserver.mydomain.com </gateway>-->
                   <!--<gatewayPort> 25 </gatewayPort>-->
                 </mailet>
               </processor>
  
               <processor name="spam">
                 <!--<mailet match="All" class="Null"/>-->
                 <!--<mailet match="All" class="NotifySender"/>-->
                 <!--<mailet match="All" class="NotifyPostmaster"/>-->
                 <mailet match="All" class="ToRepository">
                   <repositoryPath>file://var/mail/spam/</repositoryPath>
                 </mailet>
               </processor>
           </configuration>
         </component>
  
         <component name="smtp-server" 
            class="org.apache.james.smtpserver.SMTPServer" 
            activation="true">
           <categories priority="DEBUG"/>
           <configuration>
             <port>25</port>
             <handler>
               <helloName autodetect="TRUE">myMailServer</helloName>
               <connectiontimeout>360000</connectiontimeout>
               <maxmessagesize>0</maxmessagesize>
             </handler>
           </configuration>
         </component>
  
         <component name="remote" 
            class="org.apache.james.remotemanager.RemoteManager" 
            activation="true">
           <configuration>
             <port>4555</port>
             <handler>
               <helloName autodetect="TRUE">myMailServer</helloName>
               <administrator_accounts>
                 <!-- CHECKME! Change the default password! -->
                 <account login="root" password="root"/>
               </administrator_accounts>
               <connectiontimeout> 60000 </connectiontimeout>
             </handler>
           </configuration>
         </component>
  
         <!-- POP3 server not included -->
  
      </container>
  
    </container>
  
  </kernel>
  
  
  
  1.1                  jakarta-avalon-excalibur/assembly/demo/lib/cornerstone.jar
  
  	<<Binary file>>
  
  
  1.1                  jakarta-avalon-excalibur/assembly/demo/lib/excalibur-io-1.1.jar
  
  	<<Binary file>>
  
  
  1.1                  jakarta-avalon-excalibur/assembly/demo/lib/excalibur-pool-1.0.jar
  
  	<<Binary file>>
  
  
  1.1                  jakarta-avalon-excalibur/assembly/demo/lib/excalibur-thread-1.0.jar
  
  	<<Binary file>>
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>