Can't send email from Matomo. Connects fail (SMTP failure) AWS Lightsail FreeBSD

I have Matomo installed on AWS Lightsail on a FreeBSD instance. Everything works except the ability to mail out. I’ve tried using SES and my normal email server. When I try to send a report the connection fails. I’ve verified that I have the right port (465) and it’s open. I’ve telnet from the instance to both mail servers with no problem. The issue has to be in Matomo. Can you help?