Serge,

Thanks for your invaluable comments. Indeed, you were right. I have 
forgotten to include the following line to James.java:

attributes.put(Constants.SERVER_NAMES, this.serverNames);

Which obviously failed to pick the attributes.

I have however a further question I posted earlier in this thread which was 
the second out of two posing questions. I keep getting the following error 
whenever I attempt to send an email to my remote mail account at 
Hotmail.com:


1019159703593 [INFO   ] (James.Mailet): ToProcessor: Sending mail 
org.apache.james.core.MailImpl@53c6a3 to transport
1019159704828 [INFO   ] (James.Mailet): RemoteDelivery: Remotely delivering 
mail Mail1019159703390-0-!194855347
1019159704843 [INFO   ] (James.Mailet): RemoteDelivery: sending mail to 
[[EMAIL PROTECTED]] on host hotmail.com
1019159704875 [INFO   ] (James.Mailet): RemoteDelivery: Remote delivery 
thread (0) will process mail Mail1019159703390-0-!194855347-to-hotmail.com
1019159704890 [INFO   ] (James.Mailet): RemoteDelivery: attempting to 
deliver Mail1019159703390-0-!194855347-to-hotmail.com
1019159765375 [INFO   ] (James.Mailet): RemoteDelivery: attempting delivery 
of Mail1019159703390-0-!194855347-to-hotmail.com to host Hotmail.com to 
[[EMAIL PROTECTED]]
1019159786515 [INFO   ] (James.Mailet): RemoteDelivery: Exception delivering 
message (Mail1019159703390-0-!194855347-to-hotmail.com) - Could not connect 
to SMTP host: Hotmail.com, port: 25;
  nested exception is:
        java.net.ConnectException: Operation timed out: connect
1019159786515 [INFO   ] (James.Mailet): RemoteDelivery: Temporary exception 
delivering mail (Mail1019159703390-0-!194855347-to-hotmail.com: 
javax.mail.MessagingException: Could not connect to SMTP host: Hotmail.com, 
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.java:191)
        at 
org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:449)
        at java.lang.Thread.run(Thread.java:484)

1019159786515 [INFO   ] (James.Mailet): RemoteDelivery: Storing message 
Mail1019159703390-0-!194855347-to-hotmail.com into outgoing after 0 retries

I have tried to send a further email to my Yahoo.com mail account and have 
got the same problem just to ensure it wasn't a matter of coincidence. I 
have even downloaded the latest patch of RemoteDelivery mailet from CVS 
repository (although I think it has no relation with this particular 
problem) and have retried on both mail accounts and still the problem 
persisted.

Can you please shed any light into this annoying problem.

As always, every feedback from any contributor in this mailing list as well 
as yourself is most welcome.

Thanks in advance.

Sam.

>From: Serge Knystautas <[EMAIL PROTECTED]>
>Reply-To: "James Users List" <[EMAIL PROTECTED]>
>To: James Users List <[EMAIL PROTECTED]>
>Subject: Re: Problem with sending a mail message to a remote mail server
>Date: Thu, 18 Apr 2002 14:32:29 -0400
>
>Well, James.java is now storing the serverNames in the Avalon context
>AND the attributes.  You should see 2 lines back to back that look
>something like (minus the comments)...
>
>//Was here
>context.put(Constants.SERVER_NAMES, this.serverNames);
>//Also this now
>attributes.put(Constants.SERVER_NAMES, this.serverNames);
>
>Again, I don't quite get how you could be getting a null pointer because
>the serverNames variable is always created, and if you do have this
>patch, it should be set in attributes, which is how RemoteDelivery is
>grabbing it (via getMailetContext().getAttribute(Constants.SERVER_NAMES).
>
>Maybe look for those 2 lines in James.java to confirm you've got what's
>in CVS?
>--
>Serge Knystautas
>Loki Technologies - Unstoppable Websites
>http://www.lokitech.com/
>
>Samuel Sadek wrote:
>>Serge,
>>
>>I have updated James.java with your suggested patch, but it still seems
>>to be causing the same issue. Might I have missed anything? Was their a
>>recent change to Avalon Context? If so, that might explain why I'm
>>unable to retrieve the servernames from it. Which source files are
>>related to Avalon Context?
>>
>>Sam.
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>


_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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

Reply via email to