AWS SES - Connection time-out on port 25

0

Hello,

Our AWS account ID is 592296619356. We have a Java based web-application running on an EC2 instance in Mumbai which sends emails through SMTP server at Ireland - email-smtp.eu-west-1.amazonaws.com , port 25 (because SES was not available in Mumbai when this account/application was set up).

The emails were going out fine till recently but now we cannot connect to the SMTP server at all and are getting connection timed out errors.

Exception: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: email-smtp.eu-west-1.amazonaws.com, 25; timeout -1;

I tried all the troubleshooting tips at https://aws.amazon.com/premiumsupport/knowledge-center/smtp-connectivity-timeout-issues-ses/ and I am not able to telnet at all which suggested a network issue?

I tried by disabling firewall, adding outbound port 25 and inbound 1024-65535 in our security-group, network acl etc. but it is still unable to connect.
nmap shows that 25 is open on our ec2 and on the smtp server it shows as 25/tcp filtered smtp.

Could you please point me towards a solution to this issue? (Email is an integral part of our application registration/status etc. and without it a user cannot proceed).

Thanks a lot.

3개 답변
0

For anybody still looking into this thread - I found some helpful tips at https://docs.aws.amazon.com/ses/latest/DeveloperGuide/Welcome.html
Changing the port to 587 and using explicit tls seems to have resolved the issue.

raghdr
답변함 4년 전
0

We also started to experience similar behavior. We were using port 465 though. This was happening to about 10% of outcoming mails.

We implemented a retry mechanism. If sending fails it will be tried again in 1 minute. This solved this issue (for now).

I've also tried to switch to port 587 - but the outcome is the same as on 465.

qunerd
답변함 4년 전
0

Hello did you ever get to the bottom of this? I'm suffering through the same issue here

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠