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(RemoteDelivery.jav
a:242)
 at
org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.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]

Reply via email to