# Missing required email account setting for account

**URL:** <https://discuss.elastic.co/t/missing-required-email-account-setting-for-account/160394>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 11, 2018, 2:21pm UTC](https://discuss.elastic.co/t/missing-required-email-account-setting-for-account/160394 "2018-12-11T14:21:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastiaanspeck](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@sebastiaanspeck](https://discuss.elastic.co/u/sebastiaanspeck)\
**Post date:** [December 11, 2018, 2:21pm UTC](https://discuss.elastic.co/t/missing-required-email-account-setting-for-account/160394/1 "2018-12-11T14:21:14Z")

</div>

I added [this](https://www.elastic.co/guide/en/elastic-stack-overview/current/actions-email.html#gmail) lines to my `elasticsearch.yml` and my `elasticsearch.yml` looks like this:

```auto
xpack.notification.email.account:
    gmail_account:
        profile: gmail
        smtp:
            auth: true
            starttls.enable: true
            host: smtp.gmail.com
            port: 587
            user: <my_emailadress>

```

I also ran `bin/elasticsearch-keystore add xpack.notification.email.account.gmail_account.smtp.secure_password` and entered the App Password.

But when I try to start elasticsearch I get the following error: `SettingsException[missing required email account setting for account [gmail_account]. 'smtp.host' must be configured]`

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 12, 2018, 12:47pm UTC](https://discuss.elastic.co/t/missing-required-email-account-setting-for-account/160394/2 "2018-12-12T12:47:01Z")

</div>

Hey

which elasticsearch version is this one? Also, can you share the configuration file so we can check if there are any indentation errors in there?

--Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 9, 2019, 12:47pm UTC](https://discuss.elastic.co/t/missing-required-email-account-setting-for-account/160394/3 "2019-01-09T12:47:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
