Charan
Charan

Reputation: 1

EC2 instances are not able to send emails

We have EC2 instances in private subnet and the traffic is routed via the NAT Gateway to reach Internet. EC2 instances are not able to send emails to relaycloud.xyz.com

All the inbound and outbound traffic is allowed in NSG and NACLs.

Error Message says

"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed connected host has failed to respond."

Security Group and NACL have all the traffic allowed both inbound and outbound.

Upvotes: 0

Views: 151

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269274

From Remove port 25 restriction from your EC2 instance:

AWS blocks outbound traffic on port 25 (SMTP) of all EC2 instances and Lambda functions by default. If you want to send outbound traffic on port 25, you can request for this restriction to be removed.

It should work fine if you contact your SMTP server on a different port. Otherwise, you'll need to request for the restriction to be removed.

Upvotes: 1

Related Questions