# Unable to configure SMTP using Amazon SES

**URL:** <https://forum.mattermost.com/t/unable-to-configure-smtp-using-amazon-ses/8056>\
**Category:** Troubleshooting\
**Created:** [September 8, 2019, 8:17pm UTC](https://forum.mattermost.com/t/unable-to-configure-smtp-using-amazon-ses/8056 "2019-09-08T20:17:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![greenertux](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@greenertux](https://forum.mattermost.com/u/greenertux)\
**Post date:** [September 8, 2019, 8:17pm UTC](https://forum.mattermost.com/t/unable-to-configure-smtp-using-amazon-ses/8056/1 "2019-09-08T20:17:05Z")

</div>

#### 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](http://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.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [September 9, 2019, 12:42pm UTC](https://forum.mattermost.com/t/unable-to-configure-smtp-using-amazon-ses/8056/2 "2019-09-09T12:42:50Z")

</div>

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

- [https://serverfault.com/questions/812916/how-to-fix-554-message-rejected-email-address-is-not-verified](https://serverfault.com/questions/812916/how-to-fix-554-message-rejected-email-address-is-not-verified)
- [https://forums.aws.amazon.com/message.jspa?messageID=573539](https://forums.aws.amazon.com/message.jspa?messageID=573539)

---

<div class="post-metadata">

**Author:** ![greenertux](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@greenertux](https://forum.mattermost.com/u/greenertux)\
**Post date:** [September 9, 2019, 3:45pm UTC](https://forum.mattermost.com/t/unable-to-configure-smtp-using-amazon-ses/8056/3 "2019-09-09T15:45:35Z")

</div>

@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](http://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.
