8 Replies Latest reply: Jul 25, 2013 12:31 PM by robertlforsyth99 RSS

    Pulling  my hair out with new CF10 install

    robertlforsyth99

      Trying to send mail with CF10 and I am getting connect errors from Java.  I have tried to get the mail function to work with 2 internal SMTP (MSFT and Smartermail) and one external.  I can successfully verify connections to any of these servers, but when I try to send mail to them, I get this in the error log:

       

      "Error","scheduler-1","07/19/13","07:40:32",,"javax.mail.MessagingException: IOException while sending message;   nested exception is:java.net.ConnectException: Connection timed out: connect"

       

      the full exception is:

       

      "Error","scheduler-1","07/19/13","07:41:35",,"javax.mail.MessagingException: IOException while sending message;   nested exception is:java.net.ConnectException: Connection timed out: connect"

      javax.mail.MessagingException: IOException while sending message;

        nested exception is:


      java.net.ConnectException: Connection timed out: connect

      at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1141)

      at coldfusion.mail.MailSpooler.deliver(MailSpooler.java:1300)

      at coldfusion.mail.MailSpooler.sendMail(MailSpooler.java:1197)

      at coldfusion.mail.MailSpooler.deliverStandard(MailSpooler.java:1613)

      at coldfusion.mail.MailSpooler.run(MailSpooler.java:1578)

      at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:211)

      at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71)

      Caused by: java.net.ConnectException: Connection timed out: connect


      at java.net.DualStackPlainSocketImpl.connect0(Native Method)

      at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69)

      at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)

      at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)

      at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)

      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)

      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)

      at java.net.Socket.connect(Socket.java:579)

      at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)

      at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)

      at sun.net.NetworkClient.doConnect(NetworkClient.java:180)

      at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)

      at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)

      at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:270)

      at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:327)

      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDe legateHttpsURLConnection.java:191)

      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)

      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHtt psURLConnection.java:177)

      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)

      at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getInputStream(Http sURLConnectionOldImpl.java:224)

      at java.net.URL.openStream(URL.java:1037)

      at javax.activation.URLDataSource.getInputStream(URLDataSource.java:107)

      at javax.activation.DataHandler.writeTo(DataHandler.java:305)

      at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)

      at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:865)

      at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:462)

      at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:103)

      at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:884)

      at javax.activation.DataHandler.writeTo(DataHandler.java:317)

      at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)

      at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1772)

      at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)

      ... 6 more

       

       

      Again, I can verify the server with the admin tool, and I can manually connect to the SMTP server with telnet and send messages.  My port setting is correct and username and password are correct.  I even setup MSFT SMTP server with no username and I was able to send mail through telnet to it, but not CF.

       

      Any help would be greatly appreciated. 

       

      - Robert