Intermittent "Connection timed out" when sending mails using tSendMail

Talend Version (Required)       All versions

Summary

Issue with tSendMail when sending more than 2 mails in a loop.
Additional Versions  
Product (Required) DI
Component (Required) Component
Problem Description

Sometimes when tSendMail is executed for a third or fourth time, it fails with the following message:

"Exception in component tSendMail_1
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25;
nested exception is:
java.net.ConnectException: Connection timed out"

 

Then tSendMail would work again after few minutes.

Problem root cause

The server where the Job is running is an instance of Amazon AWS, which has some SMTP Sending Limits:

 

http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html

 

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/

Solution or Workaround

Fill in a form (as suggested by Amazon) to request that the SMTP limit be increased or disabled.

JIRA ticket number  
Version history
Revision #:
3 of 3
Last update:
‎10-18-2017 12:40 PM
Updated by:
 
Labels (2)
Contributors