Problem:
I have created an auto response mailet that simply sends an e-mail back 
indicating the server is active.
The mailet was successfully deployed and is able to receive e-mail 
messages. Sending outgoing e-mail via
the Java mail API is not working. A local copy of James on my Win98 
machine works fine though.
I think the problem is because the linux server has 2 ip addresses . 
This is because we host 2 web sites on the
same box. I edited the config.xml file to bind the smtp server to the 
correct IP address. I also changed
the host name. In the method that sends e-mail out though I use a 
different mail server however i still get an
exception stating that it couldn't connect to localhost. Because I am 
sending the message using a static method in the
Transport Object does James force the Transport to use localhost? The 
Code that sends the e-mail is basic
JAVA Mail API calls and I copied that code and tried to run it as a 
stand alone application and works fine.

Thank you and I appreciate any help on this.

Hattan

Server:
James 2.0a3

OS:
Red Hat Linux

Exception:
  nested exception is:
        javax.mail.MessagingException: Could not connect to SMTP host: 
localhost, port: 25;
  nested exception is:
        java.net.ConnectException: Connection refused
javax.mail.SendFailedException: Sending failed;
  nested exception is:
        javax.mail.MessagingException: Could not connect to SMTP host: 
localhost, port: 25;
  nested exception is:
        java.net.ConnectException: Connection refused
        at javax.mail.Transport.send0(Transport.java:219)



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

Reply via email to