james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Holmes" <ke...@open-iq.com>
Subject Re: bug for RemoteDelivery + suck it and see workaround
Date Tue, 05 Feb 2002 17:43:24 GMT
hmm, I dont think making the timeout longer will make a difference, isnt it
set at 10 minutes ? the problem smtp host takes less than 30 seconds to
throw an Unknown SMTP Host exception. Perhaps trawling through the JavaMail
source is the best option ?

Kevin
----- Original Message -----
From: "Serge Knystautas" <sergek@lokitech.com>
To: "James Developers List" <james-dev@jakarta.apache.org>; "Kevin Holmes"
<kevin@open-iq.com>
Sent: Tuesday, February 05, 2002 4:23 PM
Subject: Re: bug for RemoteDelivery + suck it and see workaround


> Kevin,
>
> That does rather suck.  I've been seriously considering writing my own
SMTP
> delivery part and removing the use of JavaMail for the remote delivery.  I
> had added the timeout because what was happening was sometimes you would
not
> get a disconnect recognized, so the delivery thread would basically never
> recover.  After a while, all of the remote delivery threads get stuck like
> this, and you have no more delivery.
>
> Thanks for the report.  Maybe we can make the timeout significantly long,
or
> perhaps look into the JavaMail code to see why it's doing this.
>
> Serge Knystautas
> Loki Technologies - Unstoppable Websites
> http://www.lokitech.com/
> ----- Original Message -----
> From: "Kevin Holmes" <kevin@open-iq.com>
> To: "JAMES" <james-dev@jakarta.apache.org>
> Sent: Tuesday, February 05, 2002 11:02 AM
> Subject: bug for RemoteDelivery + suck it and see workaround
>
>
> > Hi All
> >
> >  I noticed a few problems recently with outgoing mail on James 2.0a2,
one
> of
> > which was repeatable :-\  Every time I tried to send an email to an
> address
> > at a specific host James threw an Unknown SMTP host exception, which it
> > reported in James.Mailet.log, see below...
> >
> > I couldnt see any logical reason why, so almost on a whim  I commented
out
> > the line in the transport mailet RemoteDelivery.java which sets the mail
> > session property "mail.smtp.timeout", on line 382.  I figured it couldnt
> do
> > any harm as the default is apparently an infinite timeout.
> >
> > with the timout property commented out the mail goes through just fine.
> >
> > It wouldnt suprise me if this was due to a bug in Sun's Java mail api.
> >
> > Kevin.
> >
> > P.S. the smtp host happens to be an M$ exchange server if thats
relevant.
> > Microsoft ESMTP MAIL Service, Version: 5.0.2195.2966.
> >
> >     note that the james tries to deliver this message forever, always
> > getting the same exception
> > Tue Feb 05 12:35:40 GMT 2002 [INFO   ] (James.Mailet): RemoteDelivery:
> > attempting to deliver Mail1012912540803-126-!299624099-to-<FOO>com
> > Tue Feb 05 12:36:41 GMT 2002 [INFO   ] (James.Mailet): RemoteDelivery:
> > attempting delivery of Mail1012912540803-126-!299624099-to-<FOO>.com to
> host
> > mail.<FOO>.com. to [kevin@<FOO>.com]
> > Tue Feb 05 12:36:41 GMT 2002 [INFO   ] (James.Mailet): RemoteDelivery:
> > Exception delivering message
> > (Mail1012912540803-126-!299624099-to-<FOO>.com) - Unknown SMTP host:
> > mail.<FOO>.com.;
> >   nested exception is:
> >         java.net.UnknownHostException: mail.<FOO>.com.
> > Tue Feb 05 12:36:41 GMT 2002 [INFO   ] (James.Mailet): RemoteDelivery:
> > Temporary exception delivering mail
> > (Mail1012912540803-126-!299624099-to-<FOO>.com:
> > javax.mail.MessagingException: Unknown SMTP host: mail.<FOO>.com.;
> >   nested exception is:
> >         java.net.UnknownHostException: mail.<FOO>.com.
> >         at
> > com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:865)
> >         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:220)
> >         at
> >
>
org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:45
> > 9)
> >         at java.lang.Thread.run(Thread.java:484)
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:james-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:james-dev-help@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:james-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:james-dev-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message