Wajahat Adil
Wajahat Adil

Reputation: 3

AWS Port 25 issue for sending emails though app hosted on EC2

I have a Java Application hosted on AWS where I have an EC2 Instance. My application generates and sends email to users whenever a new user is registered. This process of sending emails is on halt due to port 25 blocking issue with AWS.

Please help me resolving the issue. I found some articles stating that if I create new security group and add ports 465 and 587 but I am not sure it should be inbound or outbound.

Any help would be highly appreciated.

Upvotes: 0

Views: 1736

Answers (2)

John Hanley
John Hanley

Reputation: 81336

Ports 465 and 587 are common ports used for SMTP services. It depends on what service you are using. Follow their configuration guide to know which port to use.

If you are providing SMTP service, then you would need to configure your software to listen on port 465 or port 587. Then enable that port in your Security Group Inbound Rule.

If your issue is port 25 being throttled, contact AWS support to have this removed.

This articled will help you:

How do I remove the throttle on port 25 from my EC2 instance?

Upvotes: 2

SuicideSheep
SuicideSheep

Reputation: 5550

AWS Security Group is stateful and hence once you create an inbound rules, outbound rules will automatically being created. For more information please refer to this link

Security groups are stateful — if you send a request from your instance, the response traffic for that request is allowed to flow in regardless of inbound security group rules. Responses to allowed inbound traffic are allowed to flow out, regardless of outbound rules.

Upvotes: 0

Related Questions