Article 5120M Failing to connect to Amazon SES SMTP server

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=110latest?d=yIl2AUoC8zA latest?i=co5gflVL1KA:Z2Z6hiqbdMc:F7zBnMy latest?i=co5gflVL1KA:Z2Z6hiqbdMc:V_sGLiP latest?d=qj6IDK7rITs latest?i=co5gflVL1KA:Z2Z6hiqbdMc:gIN9vFwco5gflVL1KA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments