I created an SES IAM for SMTP in AWS so MatterMost can use for Email. It has the correct permissions for SES and etc.
When i go to the Admin Matter Most Console and Test the credentials i get Connection Unsuccessful SendMail Failed to Open TLS connection tls first record does not like a TLS handshake.
I am using Port 587
Enabled SMTP Auth is set to true
SMTP username email@example.com
SMTP Password (the SES secret)
Connection is TLS
SMTP server is email-smtp.us.east-1.amazonaws.com
What is Wrong here ?
I resolved it - what i did, was my
AWS SES IAM (smpt) code was written in
Terraform. The issue was, it was the wrong credentials because terraform had another set of credentials but i manually deleted the
Access Key in AWS and manually added it and kept testing with wrong credentials.
Solved it by removing the Access Key manually from the IAM user i created for mattermost, re-ran
Terraform Plan and Apply (gave me a new Access Key and Secret). Then ran
terraform output to get the new access key and secret - used those creds and placed it in the
mattermost config, kept port 587 by the way and changed it from
STARTTLS - and tested the connection and all came through and worked ( emails were sent).