Summary
Unable to connect to the SMTP server through TLS
Steps to reproduce
SMTP Settings:
"EmailSettings": {
"EnableSignUpWithEmail": true,
"EnableSignInWithEmail": true,
"EnableSignInWithUsername": true,
"SendEmailNotifications": false,
"UseChannelInEmailNotifications": false,
"RequireEmailVerification": false,
"FeedbackName": "",
"FeedbackEmail": "",
"ReplyToAddress": "",
"FeedbackOrganization": "",
"EnableSMTPAuth": true,
"SMTPUsername": "emailapikey",
"SMTPPassword": "************",
"SMTPServer": "smtp.zeptomail.eu",
"SMTPPort": "587",
"SMTPServerTimeout": 10,
"ConnectionSecurity": "TLS",
"SendPushNotifications": true,
"PushNotificationServer": "https://push-test.mattermost.com",
"PushNotificationContents": "full",
"PushNotificationBuffer": 1000,
"EnableEmailBatching": false,
"EmailBatchingBufferSize": 256,
"EmailBatchingInterval": 30,
"EnablePreviewModeBanner": true,
"SkipServerCertificateVerification": false,
"EmailNotificationContentsType": "full",
"LoginButtonColor": "#0000",
"LoginButtonBorderColor": "#2389D7",
"LoginButtonTextColor": "#2389D7"
}
Test connection.
Observed behavior
2025-07-23T19:03:47.429471655Z {"timestamp":"2025-07-23 19:03:47.428 Z","level":"error","msg":"Connection unsuccessful: unable to connect to the SMTP server through TLS: tls: first record does not look like a TLS handshake","caller":"web/context.go:123","path":"/api/v4/email/test","request_id":"eq74tc4dsj83mqt4gxmgaxj88r","ip_addr":"10.0.1.2","user_id":"h3i6go5refbd5m4stwi571jiwh","method":"POST","err_where":"testEmail","http_code":500,"error":"testEmail: Connection unsuccessful: unable to connect to the SMTP server through TLS: tls: first record does not look like a TLS handshake"}
I’m 100% sure that SMTP credentials are correct and it worked on other apps.
Is there anyway to get more details from logs? something like high level verbosity?