OK my spoolmanager block is as below;  presumably the "ToRepository" 
mailet puts it back on to the spool at the root again if it goes to the 
error processor?  Basically what happens is the message throws a wobbly 
then is processed again and throws another wobbly with a new tacked on 
message ID, this iteration goes on until it complains that the message ID 
is too long.
How can I stop the "All" matcher in the root from matching error messages?
Pete

   <!-- The James Spool Manager block  -->
   <!-- This block is responsible for processing messages on the spool. 
-->
   <spoolmanager>
      <!-- Number of spool threads -->
      <threads> 10 </threads>

      <!-- Set the Java packages from which to load mailets and matchers 
-->
      <mailetpackages>
         <mailetpackage>org.apache.james.transport.mailets</mailetpackage>
         <mailetpackage>com.xmailer.mailets</mailetpackage>
      </mailetpackages>
 
      <matcherpackages>
 <matcherpackage>org.apache.james.transport.matchers</matcherpackage>
      </matcherpackages>

      <processor name="root">

         <!-- Important check to avoid looping -->
         <mailet match="RelayLimit=2" class="Null"/>
 
                 <!-- Actually do the logging whic xMailer is trying to 
acheive -->
                 <mailet match="All" class="LogEmailDetailsMailet">
 <URL>jdbc:inetdae7:kisssqldev1:1433?database=xmailer</URL>
                        <USERNAME></USERNAME>
                        <PASSWORD></PASSWORD>
                        <DRIVER>com.inet.tds.TdsDriver</DRIVER>
                 </mailet>

         <!-- And then relay them -->
         <mailet match="All" class="ToProcessor">
            <processor>transport</processor>
         </mailet>

      </processor>

      <processor name="error">

         <!-- If you want to notify the postmaster that a message 
generated an error, uncomment this  -->
         <mailet match="All" class="NotifyPostmaster"/>

         <!-- Logs any messages to the repository specified -->
         <mailet match="All" class="ToRepository">
            <repositoryPath> file://var/mail/error/</repositoryPath>
         </mailet>

      </processor>

      <processor name="transport">

         <!-- Attempt remote delivery using the specified repository for 
the spool, -->
         <!-- using delay time to retry delivery and the maximum number of 
retries -->
         <mailet match="All" class="RemoteDelivery">
            <outgoing> file://var/mail/outgoing/ </outgoing>
            <!-- alternative database repository example below -->

            <!-- Number of milliseconds between delivery attempts -->
            <delayTime> 21600000 </delayTime>

            <!-- Number of failed attempts before returning to the sender 
-->
            <maxRetries> 5 </maxRetries>

            <!-- The number of threads that should be trying to deliver 
outgoing messages -->
            <deliveryThreads> 50 </deliveryThreads>

            <!-- If false the message will not be sent to given server if 
any recipients fail -->
            <sendpartial>false</sendpartial>
         </mailet>

      </processor>

   </spoolmanager>

Kiss Technologies

http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923

Reply via email to