5 Replies Latest reply on Nov 12, 2014 11:33 AM by Himansu Sekhar Khuntia

    Could not connect to SMTP host

    José Antonio Chao

      Hello,

      We configured with Coldfusion 10 Tasks that send mail using SES (Amazon) with username and password and validated. We launched the task and will manage coldfusion sending emails every x time processing them. In Coldfusion log we are seeing this error is repeated, albeit that finalment eventually send all emails pending queue, "Error", "scheduler-1", "10/23/14", "15 : 05: 19 ",," javax.mail.MessagingException: Could not connect to SMTP host: email-smtp.us-east-1.amazonaws.com, port: 465, response: -1 " A which may be due to this error? because users have reported to us that do not receive emails.


      Regards and thanks for yours answers

        • 1. Re: Could not connect to SMTP host
          Himansu Sekhar Khuntia

          Hello José Antonio Chao,

          Can you Please confirm the "" has been Enabled in the mail server setting or not ? If it is not Enabled, please click the check box corresponding to "" to enable it. And also before submitting your changes, click the "" to check whether your mail server setting verified successfully or not.

          mailServer.png

           

          After submitting your changes if you will get a message "Connection Verification Successful" , then the mail server will work perfectly.

           

          If this fails Please mention all the setting in your mail server setting, so that we can get into the exact issue.

           

          Regards

          Himansu

          • 2. Re: Could not connect to SMTP host
            José Antonio Chao Level 1

            Hello Himansu,

             

            we have enable in mail server setting SSL socket connections to mail server, here you can see our setup after check verify mail  server connections, but issue carry on.

             

            Captura de pantalla 2014-11-04 a la(s) 11.37.36.png

            Regads,

             

            José Antonio Chao.

            • 3. Re: Could not connect to SMTP host
              Himansu Sekhar Khuntia Level 1

              Thanks for the clarification José Antonio Chao,

              The setting seems fine for mail sending process.


              However, Have you ever tried sending a mail from a cfm page with cfmail tag? Does it work perfectly?


              Regards,

              Himansu

              • 4. Re: Could not connect to SMTP host
                José Antonio Chao Level 1

                Hello Himansu,

                 

                yes it works fine send email from cfm page, and will also send emails pending in Spool folder, but we have this message mail.log exactly every minute.

                 

                Regards,

                 

                José Antonio Chao.

                • 5. Re: Could not connect to SMTP host
                  Himansu Sekhar Khuntia Level 1

                  Hello José Antonio Chao,

                   

                  Though I am not sure about the cause,it seems like the default mail server setting is overwritten in some way. What I an get from here is, there is some scheduled task running in every minute, that tries to send mail. So there might be some code in the page called by the scheduler, which is overwriting the default mail server setting (that is working perfectly). So you are getting "Error", "scheduler-1", "10/23/14", "15 : 05: 19 ",," javax.mail.MessagingException: Could not connect to SMTP host: email-smtp.us-east-1.amazonaws.com, port: 465, response: -1 " in the mail.log file exactly every minute.

                   

                  Regards,

                  Himansu