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 "Clark, William R." <WR...@seic.com> on 2006/03/24 17:44:37 UTC

Cannot send replies from James

I have a mail-enabled application driven by a mailet. If an error occurs
within the mailet, I want to put the message into an error state with an
appropriate error message, and then let James return the message to the
sender:  

 

Messages are received and processed just fine, but the error
messages/replies do not get delivered back to the sender. Instead, I see
the following messages in the log: 

 

 

22/03/06 08:06:18 INFO  James.Mailet: RemoteAddrNotInNetwork: Cannot
resolve address: unknown host
22/03/06 08:06:18 INFO  James.Mailet: RemoteAddrNotInNetwork: Cannot
resolve address: unknown host
22/03/06 08:06:18 INFO  James.Mailet: RemoteAddrNotInNetwork: Cannot
resolve address: unknown host
22/03/06 08:06:18 INFO  James.Mailet: RemoteAddrNotInNetwork: Authorized
addresses: [127.0.0.1/255.255.255.255]
22/03/06 08:06:18 INFO  James.Mailet: RemoteDelivery: maxRetries is
larger than total number of attempts specified. Increasing last
delayTime with 19 attempts 
22/03/06 08:06:18 INFO  James.Mailet: RemoteDelivery: Delay of 21600000
msecs is now attempted: 20 times
22/03/06 08:06:28 INFO  James.Mailet: ToRepository: Storing mail
Mail1143032787218-0 in file://var/mail/error/
<file:///\\var\mail\error\> 
22/03/06 08:06:28 INFO  James.Mailet: ToRepository: Storing mail
Mail1143032787218-0-!428958 in file://var/mail/relay-denied/
<file:///\\var\mail\relay-denied\> 
22/03/06 08:06:28 INFO  James.Mailet: ToRepository: Storing mail
Mail1143032787218-0-!855436 in file://var/mail/address-error/
<file:///\\var\mail\address-error\> 

 

 

The email server I am returning messages to is on the same internal
network (10.*.*.*) as the server running james. 

 

Here are the relevant portions of the config.xml file: 

1)   Ensuring I can relay outbound messages: 
         <mailet
match="RemoteAddrNotInNetwork=10.*.*.*,127.0.0.1,0:0:0:0:0:0:0:1,172.18.
*.*" class="ToProcessor">

            <processor> relay-denied </processor>

            <notice>550 - Requested action not taken by MTA: relaying
denied</notice>

         </mailet>

 

2)  Ensuring Messages placed into error are bounced back to the sender
and postmaster 
     <processor name="error">

         <!-- If you want to notify the sender their message generated
an error, uncomment this       -->

         <mailet match="All" class="Bounce"/>

         <!-- If you want to notify the postmaster that a message
generated an error, uncomment this  -->

         

         <mailet match="All" class="NotifyPostmaster"/>

         

3) Configuring the email server to which I want all outbound messages
forwarded: (tried this with a host name well) 

            <gateway>10.40.40.37</gateway>

            <gatewayPort>25</gatewayPort>

 

4) DNS Servers 

<dnsserver>

      <servers>

         <!--Enter ip address of your DNS server, one IP address per
server -->

         <!-- element. -->

          <server>10.40.30.1</server>

          <server>10.50.30.1</server>

      </servers>

      <!-- Change autodiscover to false if you would like to turn off
autodiscovery -->

      <!-- and set the DNS servers manually in the <servers> section -->

      <autodiscover>false</autodiscover>

      <authoritative>false</authoritative>

   </dnsserver>

 

 

 

 

Grateful for any guidance on how to further troubleshoot this.  

 

Regards - 

Bill