# SMTP configuration with SES

**URL:** <https://forum.mattermost.com/t/smtp-configuration-with-ses/7686>\
**Category:** Troubleshooting\
**Created:** [July 16, 2019, 12:47am UTC](https://forum.mattermost.com/t/smtp-configuration-with-ses/7686 "2019-07-16T00:47:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![acepsaepudin](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@acepsaepudin](https://forum.mattermost.com/u/acepsaepudin)\
**Post date:** [July 16, 2019, 12:47am UTC](https://forum.mattermost.com/t/smtp-configuration-with-ses/7686/1 "2019-07-16T00:47:28Z")

</div>

Hi All,

I have installed mattermost and I want to configure my email notification with SES.

this is my config.json for email:

```
 "EmailSettings": {
        "EnableSignUpWithEmail": true,
        "EnableSignInWithEmail": true,
        "EnableSignInWithUsername": true,
        "SendEmailNotifications": true,
        "UseChannelInEmailNotifications": false,
        "RequireEmailVerification": false,
        "FeedbackName": "mattermost",
        "FeedbackEmail": "mattermost@example.com",
        "ReplyToAddress": "",
        "FeedbackOrganization": "My Company",
        "EnableSMTPAuth": true,
        "SMTPUsername": "XXXXX",
        "SMTPPassword": "YYYYYYYYY",
        "SMTPServer": "email-smtp.us-east-1.amazonaws.com",
        "SMTPPort": "587",
        "ConnectionSecurity": "STARTTLS",
        "SendPushNotifications": true,
        "PushNotificationServer": "https://push-test.mattermost.com",
        "PushNotificationContents": "generic",
        "EnableEmailBatching": false,
        "EmailBatchingBufferSize": 256,
        "EmailBatchingInterval": 30,
        "EnablePreviewModeBanner": false,
        "SkipServerCertificateVerification": true,
        "EmailNotificationContentsType": "full",
        "LoginButtonColor": "#0000",
        "LoginButtonBorderColor": "#2389D7",
        "LoginButtonTextColor": "#2389D7"
    },

```

when I try to test it shown like this:

> Connection unsuccessful: Connection unsuccessful: SendMail: Failed to close connection to SMTP server, 554 Transaction failed: Missing local name - undefined

Version: 5.12.0  
Build Number: 5.12.3

---

<div class="post-metadata">

**Author:** ![UHLHosting](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/uhlhosting/32/2264_2.png) [@UHLHosting](https://forum.mattermost.com/u/UHLHosting)\
**Post date:** [July 17, 2019, 10:09pm UTC](https://forum.mattermost.com/t/smtp-configuration-with-ses/7686/2 "2019-07-17T22:09:54Z")

</div>

I would start here [https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-response-codes.html](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-response-codes.html)  
FYI 554 is a error usually presented from the server side you try to communicate, that error now is to be solved between your IP/Server provider and SES.

> **5.5.4** Transaction failed.  
> Nowadays SMTP status 554 is in most cases returned when the recipient server believes your email is spam or your IP address or ISP server has been blacklisted on one or more Internet blacklists. With Yahoo, on the other hand, this usually means the email address does not exist or has been disabled.
> 
> ( OR )  
> With IBM’s Lotus Domino this is either a Domino bug or a Disk Full error

---

<div class="post-metadata">

**Author:** ![acepsaepudin](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@acepsaepudin](https://forum.mattermost.com/u/acepsaepudin)\
**Post date:** [July 18, 2019, 3:47am UTC](https://forum.mattermost.com/t/smtp-configuration-with-ses/7686/3 "2019-07-18T03:47:30Z")

</div>

HI @UHLHosting,

thanks for your reply, I have been try to send a message with my SES credential with this tutorial: [https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp-client-command-line.html](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp-client-command-line.html) and it works! but when I put in my mattermost config, still got above error.

---

<div class="post-metadata">

**Author:** ![UHLHosting](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/uhlhosting/32/2264_2.png) [@UHLHosting](https://forum.mattermost.com/u/UHLHosting)\
**Post date:** [July 18, 2019, 3:53am UTC](https://forum.mattermost.com/t/smtp-configuration-with-ses/7686/4 "2019-07-18T03:53:43Z")

</div>

Are you using same ip for test and mattermost? If this is not the case make sure your email settings works with other mail provider first.

Try to check if your ip is not blacklisted like the error mentioned.

The error does not have to do with login issues you did logged in, it gives you a reply.

One that you wont receive via bash or cli in most cases.

This does not seem to be at first a mattermost issue. Would had been addressed by now. Or maybe you hit a bug that small chance from reading your error.

Also would look into this line:

```
    "FeedbackEmail": "mattermost@example.com

```

Make sure it reflects the right email address you are trying to use with SES.

Check domain to point to DNS/SES correctly.

---

<div class="post-metadata">

**Author:** ![acepsaepudin](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@acepsaepudin](https://forum.mattermost.com/u/acepsaepudin)\
**Post date:** [July 18, 2019, 4:39am UTC](https://forum.mattermost.com/t/smtp-configuration-with-ses/7686/5 "2019-07-18T04:39:07Z")

</div>

> Are you using same ip for test and mattermost? If this is not the case make sure your email settings works with other mail provider first.

yes, and I was trying with mandrill and there is no problem.

btw I’m using aws instance for the mattermost server,

> [@UHLHosting](#):
>
> ```auto
> "FeedbackEmail": "mattermost@example.com
> 
> ```

yes, this is just an example code for me to show this forum.

my concern is why mattermost (in my case) cannot work with SES (but when I did testing with simple sending email command my SES credentials can sending an email )

---

<div class="post-metadata">

**Author:** ![UHLHosting](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/uhlhosting/32/2264_2.png) [@UHLHosting](https://forum.mattermost.com/u/UHLHosting)\
**Post date:** [July 18, 2019, 4:41am UTC](https://forum.mattermost.com/t/smtp-configuration-with-ses/7686/6 "2019-07-18T04:41:31Z")

</div>

This is on mattermost side you got the errors, nothing logged on SES logs on same time?
