Skip to main content
Participating Frequently
July 19, 2013
Question

Pulling my hair out with new CF10 install

  • July 19, 2013
  • 2 replies
  • 3156 views

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(AbstractDelegateHttpsURLConnection.java:191)

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

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

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

at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getInputStream(HttpsURLConnectionOldImpl.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

This topic has been closed for replies.

2 replies

Participating Frequently
July 25, 2013

Just to close this out.  It was not CF at all.  Some base tcp ACKS from java to the mail server were blocked by the firewall.  it seems the java engine wants to use ports above 52000 to ACK back and forth to the mail server.

Thanks for all the suggestions and offers for help.

Participating Frequently
July 22, 2013

bump....  anybody have any ideas?

Thanks!

Inspiring
July 22, 2013

Can you post the code of your test <cfmail> call...

--

Adam

Participating Frequently
July 22, 2013

sure... simple cfmail call that worked on the old server:






<cfmail to="#getuser.email#" from="Inabox SiteAdmin <notify@inaboxtech.com>" subject="Inabox SiteAdmin Password Reset Instructions"  type="html" priority="3">#t1#










</cfmail>

the setting for the mail server in the admin are correct and the mail server gets verified.  I can see the initial connection to the mail server in the smtp logs, but the mail does not get sent.  Looking at the raw cfmail file show no errors or red flags.

Thanks.