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 bug for RemoteDelivery + suck it and see workaround
Date Tue, 05 Feb 2002 16:02:28 GMT
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>


Mime
View raw message