Yup.  A slow response, or other exception after the initial socket
connection would do it.  There is a lot of code inside Sun's service
providers that eats useful exceptions and doesn't expose them to the client.
A bit too much insulating the driver from the road.

If the socket connection times out, you get the nested exception, but if the
server response is slow, disconnects in mid-stream, or returns something
like 554, you get zilch for explanation.

Serge, according to his logs, James did move to the next MX record.  And
then received the same result.

        --- Noel

-----Original Message-----
From: Serge Sozonoff [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 5:47
To: 'James Users List'
Subject: RE: James don't deliver to yahoo.com...


Hi,

For example, I have seen several cases where the 220 response can take well
over 30 seconds to be sent by the remote SMTP server. Sometimes this can be
to fight spam and sometimes the remote server can simply be very very busy.
In theory James should move on to the next MX record and try again, I would
expect it to go through eventually.

Serge

-----Original Message-----
From: Danny Angus [mailto:[EMAIL PROTECTED]
Sent: 13 March 2003 09:23
To: James Users List

this means that James is able to resolve the host, but cant connect to it
when it tries, the connection times out.


> -----Original Message-----
> From: Noel J. Bergman [mailto:[EMAIL PROTECTED]
> Sent: 12 March 2003 23:28
> To: James Users List
> Subject: RE: James don't deliver to yahoo.com...
>
>
> Reviewing your message, again, I am a bit more concerned about the
> exception than I had been before I saw it in context.  The presence of
> the message:
>
>    Could not connect to SMTP host: mx2.mail.yahoo.com., port: 25
>
> without a nested exception means that JavaMail was able to connect
> with the remote SMTP server, but did not get back the expected
> response.
>
> See if you can do "telnet mx4.mail.yahoo.com smtp" from the machine
> running James.  When I telnet into any of the yahoo mail servers, I
> get something
> like:
>
>    220 YSmtp XXXXXX.mail.yahoo.com ESMTP service ready
>
> Without that 220 response, JavaMail will throw the exception you are
> getting, without any further details.
>
>       --- Noel
>
> -----Original Message-----
> From: Aristeo Sanchez [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 12, 2003 17:38
> To: James Users List
> Subject: Re: James don't deliver to yahoo.com...
>
>
> Well, the messages sent to yahoo.com returned with this text:
> Hi. This is the James mail server at win2000.
> I'm afraid I wasn't able to deliver your message to the following
> addresses.
> This is a permanent error; I've given up. Sorry it didn't work out.
> Below I include the list of recipients and the reason why I was unable
> to deliver your message.
>
> [EMAIL PROTECTED]
> Could not connect to SMTP host: mx4.mail.yahoo.com., port: 25
>
> The original message is attached.
> ------------------------------------------------------------------
> ----------
> ---
> The logfile mailet-2003-03-12-16.log shows:
>
> 12/03/03 16:14:29 INFO  James.Mailet: RemoteDelivery: Attempting
> delivery of Mail1047507267140-1-to-yahoo.com to host
> mx2.mail.yahoo.com. to addresses [EMAIL PROTECTED]
> 12/03/03 16:14:29 INFO  James.Mailet: RemoteDelivery: Temporary
> exception delivering mail (Mail1047507267140-1-to-yahoo.com:
> javax.mail.MessagingException: Could not connect to SMTP host:
> mx2.mail.yahoo.com., port: 25
>  at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:899)
>  at
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:158
> )  at javax.mail.Service.connect(Service.java:233)
>  at javax.mail.Service.connect(Service.java:134)
>  at javax.mail.Service.connect(Service.java:86)
>  at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:95)
>  at
> org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDe
> livery.jav
> a:242)
>  at
> org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelive
> ry.java:68
> 5)
>  at java.lang.Thread.run(Unknown Source)
>
> 12/03/03 16:14:29 INFO  James.Mailet: RemoteDelivery: Storing message
> Mail1047507267140-1-to-yahoo.com into outgoing after 0 retries
> 12/03/03 16:14:29 INFO  James.Mailet: RemoteDelivery: Attempting
> delivery of Mail1047507267140-1-to-yahoo.com to host
> mx1.mail.yahoo.com. to addresses [EMAIL PROTECTED]
> ------------------------------------------------------------------
> ----------
> ----------------------------
>
> Thank's for the help Noel.
> ----- Original Message -----
> From: "Noel J. Bergman" <[EMAIL PROTECTED]>
> To: "James Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, March 12, 2003 1:33 PM
> Subject: RE: James don't deliver to yahoo.com...
>
>
> > "Could not connect to SMTP host: mx4.mail.yahoo.com., port: 25" is
> > not very descriptive.  There is additional content in the log that
> > says WHY James could not connect.
> >
> > Was this a transient network error?  James will try all of the
> smtp hosts
> > provided by yahoo before scheduling the message for another try later.
> > Checking my logs for today, I see plenty of deliveries to
> yahoo, such as:
> >
> > 11/03/03 02:14:13 INFO  James.Mailet: RemoteDelivery: Mail
> > (Mail1047366851436-5-!382593-to-yahoo.com) sent successfully to
> > mx1.mail.yahoo.com.
> >
> > --- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



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


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

Reply via email to