Mattermost, Inc.

Unable to configure SMTP using Amazon SES

Summary

Getting the following error using “test connection”: ‘554 Message rejected: Email address is not verified. The following identities failed the check in region EU-WEST-1: XXX@ XXX.org - undefined’

Steps to reproduce

Using Mattermost 5.14.0 I have created the SMTP configuration.

My configuration looks like this:
“EmailSettings”: {
“EnableSignUpWithEmail”: true,
“EnableSignInWithEmail”: true,
“EnableSignInWithUsername”: true,
“SendEmailNotifications”: true,
“UseChannelInEmailNotifications”: false,
“RequireEmailVerification”: false,
“FeedbackName”: “Mattermost”,
“FeedbackEmail”: "XXX@XXX.de",
“ReplyToAddress”: “XXX”,
“FeedbackOrganization”: “”,
“EnableSMTPAuth”: true,
“SMTPUsername”: “XXX”,
“SMTPPassword”: “XXX”,
“SMTPServer”: “XXX”,
“SMTPPort”: “465”,
“ConnectionSecurity”: “TLS”,
“SendPushNotifications”: true,
“PushNotificationServer”: “XXX”,
“PushNotificationContents”: “generic”,
“EnableEmailBatching”: true,
“EmailBatchingBufferSize”: 256,
“EmailBatchingInterval”: 30,
“EnablePreviewModeBanner”: false,
“SkipServerCertificateVerification”: false,
“EmailNotificationContentsType”: “full”,
“LoginButtonColor”: “#0000”,
“LoginButtonBorderColor”: “#2389D7”,
“LoginButtonTextColor”: “#2389D7
},

Expected behavior

Mattermost should always use the FeedbackEmail as sender for e-mails, since this is the one that can be verified with the mail provider.

Observed behavior

Strangely enough even though I set the FeedbackEmail address that should be used to send mails, apparently Mattermost tries to send mails using the mail address of the user I am logged in as as recipient, which obviously doesn’t work.

Hi @greenertux, I found these related articles that might help:

@amy.blais thanks for your suggestions!

Indeed the problem was not on the Mattermost side, even though it would be a good idea to mention this is the manual. Amazon SES by default runs in a sandbox mode that only allows sending e-mails to verified domains. So if you own domain xy.com and configure Amazon SES for it, you cannot send to anyone outside of that domain.
In my particular case I expected the sender address was the problem, but it was the receiver address.