I’ve added Amazon SES as a Relayhost, since I don’t have outbound port 25.
Here’s the output I get when trying to run a test of it:
No MX records for email-smtp.us-east-2.amazonaws.com:2587 were found in DNS, skipping and using hostname as next-hop.
Connection: opening to email-smtp.us-east-2.amazonaws.com:2587, timeout=15, options=array (
↪ 'ssl' =>
↪ array (
↪ 'verify_peer' => false,
↪ 'verify_peer_name' => false,
↪ 'allow_self_signed' => true,
↪ ),
)
Connection: opened
SERVER -> CLIENT: 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-d-3V4O45NOE Il4xAh4q5kNSXrwmM2bc
CLIENT -> SERVER: EHLO mail.octofriends.garden
SERVER -> CLIENT: 250-email-smtp.amazonaws.com
↪ 250-8BITMIME
↪ 250-STARTTLS
↪ 250-AUTH PLAIN LOGIN
↪ 250 Ok
CLIENT -> SERVER: STARTTLS
SERVER -> CLIENT: 220 Ready to start TLS
↪ Connection failed. Error #2: stream_socket_enable_crypto(): SSL: Handshake timed out [/web/inc/lib/vendor/phpmailer/phpmailer/src/SMTP.php line 467]
↪ SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): SSL: Handshake timed out
CLIENT -> SERVER: QUIT
SERVER -> CLIENT:
↪ SMTP ERROR: QUIT command failed:
Connection: closed
↪ SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
The “SSL: Handshake timed out” seems to give some indication of what went wrong, but I can’t quite figure out what.