You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by mi...@sunlife.com on 2006/01/05 14:57:40 UTC

Getting James to respond to errors

Hi Guys,

I have a production issue where James puts messages which don't match any
filters into the "/var/mail/errors" folder.

This usually happens when a user mis-spells the pre "@" side of the email
address.

I need James to respond to the user, and include the message in the reply.

Has anyone tried this or have any examples?

Thanks

Michael

Processor Section of my config.xml

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

            <processor name="root">
                  <mailet match="RelayLimit=30" class="Null"/>
                  <mailet match="SenderIs=test@dreelinglink.com,
test2@dreelinglink.com" class="ToProcessor">
                        <processor>fromArms</processor>
                  </mailet>
                  <mailet match="
com.dreeling.us.ebt.ihub.general.custommatchers.WEICustomRecipientMatcher"
class="ToProcessor">
                        <processor>fromWewImportUser</processor>
                  </mailet>
                  <mailet match="All" class="ToProcessor">
                        <processor> transport </processor>
                  </mailet>
            </processor>
            <processor name="fromArms">
                  <mailet match="SubjectStartsWith=Workorder" class="
ARMSMessageProcessor">
                  </mailet>
            </processor>
            <processor name="fromWewImportUser">
                  <mailet match="All" class="WewMessageProcessor">
                  </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=11.25.90.*,10.11.44.*, 10.11.10.*, 12.18.*,
15.28.23.*" class="ToProcessor">
                        <processor> error </processor>
                  </mailet>
                  <!-- Attempt remote delivery using the specified
repository for the spool, -->
                  <mailet match="All" class="RemoteDelivery">
                        <outgoing> file://var/mail/outgoing/ </outgoing>
                        <delayTime>3600000</delayTime>
                        <maxRetries> 5 </maxRetries>
                        <deliveryThreads> 1 </deliveryThreads>
                        <gateway>SMTP.IE.DREELING</gateway>
                        <gatewayPort>25</gatewayPort>
                  </mailet>
            </processor>

---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------



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


Re: Getting James to respond to errors

Posted by Stefano Bagnara <ap...@bago.org>.
michael.dreeling@sunlife.com wrote:
> Hi Guys,
> 
> I have a production issue where James puts messages which don't match any
> filters into the "/var/mail/errors" folder.

>             <processor name="error">
>                   <mailet match="All" class="ToRepository">
>                         <repositoryPath> file://var/mail/error/</
> repositoryPath>
>                         <passThrough> true </passThrough>
>                   </mailet>
>             </processor>

You should add a DSNBounce mailet or replace the ToRepository mailet
with the DSNBounce in the error processor.

Stefano

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