Failing to connect to Amazon SES SMTP server
by OtagoHarbour from LinuxQuestions.org on (#5120M)
I am running a website on two AWS EC2 instances running Ubuntu 16.04.4 LTS.
The followed command
Code: openssl s_client -crlf -quiet -starttls smtp -connect email-smtp.us-east-1.amazonaws.com:25results in
Code:connect: Connection timed out
connect:errno=110Same when I use port 587 instead of port 25.
The AWS/EC2 instance has the following output rules
Code:Ports Protocol Destination
25 tcp 0.0.0.0/0, ::/0I am doing the trouble shooting outlined here.
The SSL test passed.
Code: openssl s_client -connect mydomain.com:443 gave the following message.
Code:HTTP/1.1 400 Bad Request
Date: Sat, 21 Mar 2020 13:48:32 GMT
Server: Apache/2.4.18 (Ubuntu)
Content-Length: 306
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at 34.196.116.21 Port 443</address>
</body></html>
closedCode: openssl s_client -connect mydomain.com:993returns
Code:connect: Connection timed out
connect:errno=110


The followed command
Code: openssl s_client -crlf -quiet -starttls smtp -connect email-smtp.us-east-1.amazonaws.com:25results in
Code:connect: Connection timed out
connect:errno=110Same when I use port 587 instead of port 25.
The AWS/EC2 instance has the following output rules
Code:Ports Protocol Destination
25 tcp 0.0.0.0/0, ::/0I am doing the trouble shooting outlined here.
The SSL test passed.
Code: openssl s_client -connect mydomain.com:443 gave the following message.
Code:HTTP/1.1 400 Bad Request
Date: Sat, 21 Mar 2020 13:48:32 GMT
Server: Apache/2.4.18 (Ubuntu)
Content-Length: 306
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at 34.196.116.21 Port 443</address>
</body></html>
closedCode: openssl s_client -connect mydomain.com:993returns
Code:connect: Connection timed out
connect:errno=110