Sending Email via using AWS SES - Timeout issues

1,010 views
Skip to first unread message

JP

unread,
Aug 25, 2016, 12:32:31 PM8/25/16
to Lucee
Using Lucee 4.5, I have a some processes that send batch emails out to a set of users. Sometimes a few hundred emails will be sent. When this happens, the first 10 or so will be sent fine and then the rest timeout, and are added to Tasks that will be re-executed at a later time.

1. The first question is why do you think I'm getting a connection timeout when sending emails via SES?

2. The next question is there a way to detect this situation so I can notify an admin, or possibly run some code to re-execute the threads?


Looking at an email task in the Tasks page, here's the error I'm getting:

email-smtp.us-east-1.amazonaws.com Could not connect to SMTP host: email-smtp.us-east-1.amazonaws.com, port: 25; nested exception is: java.net.ConnectException: connection to email-smtp.us-east-1.amazonaws.com timed out at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227):1227 at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322):322 at javax.mail.Service.connect(Service.java:236):236 at lucee.runtime.net.smtp.SMTPSender.run(SMTPSender.java:58):58 :0
email-smtp.us-east-1.amazonaws.com Could not connect to SMTP host: email-smtp.us-east-1.amazonaws.com, port: 25;
  nested exception is:
	java.net.ConnectException: connection to email-smtp.us-east-1.amazonaws.com timed out
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227):1227
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322):322
	at javax.mail.Service.connect(Service.java:236):236
	at lucee.runtime.net.smtp.SMTPSender.run(SMTPSender.java:58):58
:0
	at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227):1227
	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322):322
	at javax.mail.Service.connect(Service.java:236):236
	at lucee.runtime.net.smtp.SMTPSender.run(SMTPSender.java:58):58

Andrew Dixon

unread,
Aug 26, 2016, 5:05:36 AM8/26/16
to lu...@googlegroups.com
Hi JP,

I use SES with Lucee no problem, but I have it configured to use port 587 with TLS enabled and this has never caused me any issues and I regularly (more than once a day) send 1000s of emails at a time without issue. I never had any luck using port 25 with SES, so maybe try the secure port instead.

Kind regards,

Andrew

--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/2705c06c-68a3-40f7-b3fc-0753a49680bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nando Breiter

unread,
Aug 26, 2016, 5:37:00 AM8/26/16
to lu...@googlegroups.com
I also use SES to send out 1000's of emails a day without issue for a number of years now, but not via port 25. Ditto on try the secure port ... 



Aria Media Sagl
+41 (0)76 303 4477 cell
skype: ariamedia

JP

unread,
Aug 26, 2016, 10:11:18 AM8/26/16
to Lucee
Thanks guys... I tried port 587 and it worked this time.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.

To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/2705c06c-68a3-40f7-b3fc-0753a49680bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.

To post to this group, send email to lu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages