Hmmm... I've seen this problem and forget what was the exact cause that
messed up the message body.  It had something to do with saving the message
to the same spot in the repository that it was trying to read from.  That
said, I really thought I had fixed it.  I'll take a look to see if I had
forgotten to commit some code and otherwise look into it.

Serge Knystautas
Loki Technologies - Unstoppable Websites
http://www.lokitech.com/
----- Original Message -----
From: "Iwasa Kazmi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 8:14 AM
Subject: Problem in outgoing folder


>
> James-2.0a2-20020128 (nightly) + JRE1.3.1 on Windows2000
>
>    The mail failed to transfer will be stored into the outgoing
> directory for retrying.   But the contents of the message
> appears to be lost.  Why ?
>
> What I did:
>
>   1. Unzipped the distributed file, then executed run.bat.
>
>   2. Stop James.
>
>   3. Modified apps/james/conf/config.xml
>      (please refer to config.diff below)
>
>   4. Executed run.bat again, then added user by telnet.
>
>   5. Send a email to James with SMTP.
>      The recipient was "[EMAIL PROTECTED]".
>      192.168.30.1 is an unreachable/unresolvable address.
>
> Results:
>
>   1. Java exception occured by SMTP timeout.
>      (It was logged in James.Mailet.log)
>
>   2. The following message was logged in James.Mailet.log.
>      "RemoteDelivery: Storing message ... into outgoing after 0 retries"
>
>   3. cd to outgoing directory, then check file entries.
>
>      2002/01/30  19:00       <DIR>          .
>      2002/01/30  19:00       <DIR>          ..
>      2002/01/30  18:57                    0
4D61696C313031323338343538393637382D302D2139323138383131392D746F2D3139322E31
36382E33302E31.Repository8.FileStreamStore
>      2002/01/30  18:57                  728
4D61696C313031323338343538393637382D302D2139323138383131392D746F2D3139322E31
36382E33302E31.Repository9.FileObjectStore
>
>      The size of a data file is zero.
>
> --
> Iwasa Kazmi
>
>
> ====== config.diff
>
> --- config.xml.orig Wed Jan 30 19:05:53 2002
> +++ config.xml Wed Jan 30 18:53:20 2002
> @@ -21,7 +21,7 @@
>    <!-- The James block  -->
>    <James>
>  <!-- CHECKME! Set this to the right email address for error reports -->
> -      <postmaster> Postmaster@localhost </postmaster>
> +      <postmaster> iwasa@localhost </postmaster>
>
>  <!-- CONFIRM? -->
>        <!-- servernames identifies the DNS namespace served by this
instance
> @@ -186,8 +186,8 @@
>            <mailet match="All" class="RemoteDelivery">
>              <outgoing> file://var/mail/outgoing/ </outgoing>
>              <!-- <outgoing> db://conf/mail-outgoing.properties
</outgoing> -->
> -            <delayTime> 21600000 </delayTime>
> -            <maxRetries> 5 </maxRetries>
> +            <delayTime> 120000 </delayTime>
> +            <maxRetries> 1 </maxRetries>
>            </mailet>
>          </processor>
>
> @@ -224,7 +224,7 @@
>  <!-- CONFIRM? Enter ip address of your DNS server, one per element -->
>    <dnsserver>
>          <servers>
> -          <server>127.0.0.1</server>
> +          <server>192.168.0.1</server>
>            <!--<server> put extra dns server address here </server>-->
>          </servers>
>          <authoritative>false</authoritative>
> @@ -256,7 +256,7 @@
>    </remotemanager>
>
>    <pop3server>
> -        <port>110</port>
> +        <port>9110</port>
>          <!-- <port>995</port> -->
>          <!-- port 995 is the well-known/IANA registered port for POP3S
>          ie over SSL/TLS -->
>
>
> ====== James.Mailet.log
>
> Wed Jan 30 18:56:41 JST 2002 [INFO   ] (James.Mailet): ToProcessor:
Sending mail org.apache.james.core.MailImpl@65b28 to transport
> Wed Jan 30 18:56:41 JST 2002 [INFO   ] (James.Mailet): RemoteDelivery:
Remotely delivering mail Mail1012384589678-0-!92188119
> Wed Jan 30 18:56:41 JST 2002 [INFO   ] (James.Mailet): RemoteDelivery:
sending mail to [[EMAIL PROTECTED]] on 192.168.30.1
> Wed Jan 30 18:56:41 JST 2002 [INFO   ] (James.Mailet): RemoteDelivery:
Remote delivery thread (0) will process mail
Mail1012384589678-0-!92188119-to-192.168.30.1
> Wed Jan 30 18:56:41 JST 2002 [INFO   ] (James.Mailet): RemoteDelivery:
attempting to deliver Mail1012384589678-0-!92188119-to-192.168.30.1
> Wed Jan 30 18:56:41 JST 2002 [INFO   ] (James.Mailet): RemoteDelivery:
attempting delivery of Mail1012384589678-0-!92188119-to-192.168.30.1 to host
192.168.30.1 to [[EMAIL PROTECTED]]
> Wed Jan 30 18:57:02 JST 2002 [INFO   ] (James.Mailet): RemoteDelivery:
Exception delivering message
(Mail1012384589678-0-!92188119-to-192.168.30.1) - Could not connect to SMTP
host: 192.168.30.1, port: 25;
>   nested exception is:
> java.net.ConnectException: Operation timed out: connect
> Wed Jan 30 18:57:02 JST 2002 [INFO   ] (James.Mailet): RemoteDelivery:
Temporary exception delivering mail
(Mail1012384589678-0-!92188119-to-192.168.30.1:
javax.mail.MessagingException: Could not connect to SMTP host: 192.168.30.1,
port: 25;
>   nested exception is:
> java.net.ConnectException: Operation timed out: connect
> at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:867)
> at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:156)
> at javax.mail.Service.connect(Service.java:234)
> at javax.mail.Service.connect(Service.java:135)
> at javax.mail.Service.connect(Service.java:87)
> at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:93)
> at
org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.jav
a:190)
> at
org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:39
4)
> at java.lang.Thread.run(Unknown Source)
>
> Wed Jan 30 18:57:02 JST 2002 [INFO   ] (James.Mailet): RemoteDelivery:
Storing message Mail1012384589678-0-!92188119-to-192.168.30.1 into outgoing
after 0 retries
> Wed Jan 30 18:59:02 JST 2002 [INFO   ] (James.Mailet): RemoteDelivery:
Remote delivery thread (0) will process mail
Mail1012384589678-0-!92188119-to-192.168.30.1
> Wed Jan 30 18:59:02 JST 2002 [INFO   ] (James.Mailet): RemoteDelivery:
attempting to deliver Mail1012384589678-0-!92188119-to-192.168.30.1
> Wed Jan 30 18:59:03 JST 2002 [INFO   ] (James.Mailet): RemoteDelivery:
attempting delivery of Mail1012384589678-0-!92188119-to-192.168.30.1 to host
192.168.30.1 to [[EMAIL PROTECTED]]
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to