Skip to content

Connection Timeout - while sending email from ec2 linux sendmail

0

We have out ec2 linux instance at AWS, in which our website is configured.

Our website has contact us forms through which the emails can be send to our network for various queries from the customers for training, careers and other service requests.

We have configured the sendmail , but the same is not getting connected and gives error as "Connection Timedout"

I have even sent an email request to AWS for opening the port 25, but i am not sure what exactly is the issue for which AWS could not able to support this request and asking us to us AWS SES.

Can anyone guide me on this?

2 Answers
0

There are a few things that could be causing this issue. One possibility is that port 25, which is the default port for sendmail, is blocked by your network or the network of the server that you are trying to connect to. This could be because of a security measure or because of a network configuration issue.

Another possibility is that there is an issue with the sendmail configuration on your EC2 instance. It's worth checking the sendmail configuration files to make sure that everything is set up correctly and that there are no errors or issues.

AWS recommends using their Simple Email Service (SES) to send email from EC2 instances. SES is a managed service that makes it easy to send email from your applications. It includes features like email sending and receiving, email address verification, and feedback loops for handling bounces and complaints. If you are able to use SES, it may be a simpler and more reliable solution for sending email from your website's contact form.

answered 4 years ago

0

AWS blocks outbound traffic on port 25 of all EC2 instances by default. If you want to send outbound traffic on port 25, you can request for this restriction to be removed by following these instructions: https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/

However, using SES is the recommended best practice.

AWS

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.