# Failed to configure email alerts with gmail

**URL:** <https://discuss.elastic.co/t/failed-to-configure-email-alerts-with-gmail/180316>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [May 9, 2019, 8:52am UTC](https://discuss.elastic.co/t/failed-to-configure-email-alerts-with-gmail/180316 "2019-05-09T08:52:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leon\_Voerman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leon_voerman/32/45566_2.png) [@Leon\_Voerman](https://discuss.elastic.co/u/Leon_Voerman)\
**Post date:** [May 9, 2019, 8:52am UTC](https://discuss.elastic.co/t/failed-to-configure-email-alerts-with-gmail/180316/1 "2019-05-09T08:52:09Z")

</div>

Error I get:

```
[2019-05-09T08:45:12,470][INFO][o.e.p.PluginsService] [app] loaded module [aggs-matrix-stats]
[2019-05-09T08:45:12,470][INFO][o.e.p.PluginsService] [app] loaded module [analysis-common]
[2019-05-09T08:45:12,470][INFO][o.e.p.PluginsService] [app] loaded module [ingest-common]
[2019-05-09T08:45:12,482][INFO][o.e.p.PluginsService] [app] loaded module [ingest-geoip]
[2019-05-09T08:45:12,482][INFO][o.e.p.PluginsService] [app] loaded module [ingest-user-agent]
[2019-05-09T08:45:12,482][INFO][o.e.p.PluginsService] [app] loaded module [lang-expression]
[2019-05-09T08:45:12,483][INFO][o.e.p.PluginsService] [app] loaded module [lang-mustache]
[2019-05-09T08:45:12,483][INFO][o.e.p.PluginsService] [app] loaded module [lang-painless]
[2019-05-09T08:45:12,483][INFO][o.e.p.PluginsService] [app] loaded module [mapper-extras]
[2019-05-09T08:45:12,483][INFO][o.e.p.PluginsService] [app] loaded module [parent-join]
[2019-05-09T08:45:12,484][INFO][o.e.p.PluginsService] [app] loaded module [percolator]
[2019-05-09T08:45:12,486][INFO][o.e.p.PluginsService] [app] loaded module [rank-eval]
[2019-05-09T08:45:12,486][INFO][o.e.p.PluginsService] [app] loaded module [reindex]
[2019-05-09T08:45:12,486][INFO][o.e.p.PluginsService] [app] loaded module [repository-url]
[2019-05-09T08:45:12,546][INFO][o.e.p.PluginsService] [app] loaded module [transport-netty4]
[2019-05-09T08:45:12,550][INFO][o.e.p.PluginsService] [app] loaded module [x-pack-ccr]
[2019-05-09T08:45:12,550][INFO][o.e.p.PluginsService] [app] loaded module [x-pack-core]
[2019-05-09T08:45:12,551][INFO][o.e.p.PluginsService] [app] loaded module [x-pack-deprecation]
[2019-05-09T08:45:12,551][INFO][o.e.p.PluginsService] [app] loaded module [x-pack-graph]
[2019-05-09T08:45:12,551][INFO][o.e.p.PluginsService] [app] loaded module [x-pack-ilm]
[2019-05-09T08:45:12,552][INFO][o.e.p.PluginsService] [app] loaded module [x-pack-logstash]
[2019-05-09T08:45:12,554][INFO][o.e.p.PluginsService] [app] loaded module [x-pack-ml]
[2019-05-09T08:45:12,554][INFO][o.e.p.PluginsService] [app] loaded module [x-pack-monitoring]
[2019-05-09T08:45:12,554][INFO][o.e.p.PluginsService] [app] loaded module [x-pack-rollup]
[2019-05-09T08:45:12,555][INFO][o.e.p.PluginsService] [app] loaded module [x-pack-security]
[2019-05-09T08:45:12,555][INFO][o.e.p.PluginsService] [app] loaded module [x-pack-sql]
[2019-05-09T08:45:12,558][INFO][o.e.p.PluginsService] [app] loaded module [x-pack-watcher]
[2019-05-09T08:45:12,566][INFO][o.e.p.PluginsService] [app] no plugins loaded
[2019-05-09T08:45:18,859][WARN][o.e.b.ElasticsearchUncaughtExceptionHandler] [app] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown setting [xpack.notification.email.account.gmail_account.smtp.password] please check that any required plugins are installed, or check the breaking changes documentation for removed settings

```

elasticsearch.yml:  
xpack.notification.email.account:  
gmail\_account:  
profile: gmail  
email\_defaults:  
from: 'alerts [mail@gmail.com](mailto:mail@gmail.com)'  
smtp:  
auth: true  
starttls.enable: true  
host: [smtp.gmail.com](http://smtp.gmail.com)  
port: 587  
user: mail  
password: pwd

Am i Missing something? Somehow it just won't load the plugin and/or setting.

---

<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:** [May 9, 2019, 10:03am UTC](https://discuss.elastic.co/t/failed-to-configure-email-alerts-with-gmail/180316/2 "2019-05-09T10:03:07Z")

</div>

Hey,

which version are running under? If this is 7.0, then use the keystore to configure the password

```auto
bin/elasticsearch-keystore add xpack.notification.email.account.gmail_account.smtp.secure_password

```

See [https://www.elastic.co/guide/en/elastic-stack-overview/7.0/actions-email.html#gmail](https://www.elastic.co/guide/en/elastic-stack-overview/7.0/actions-email.html#gmail)

---

<div class="post-metadata">

**Author:** ![Leon\_Voerman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leon_voerman/32/45566_2.png) [@Leon\_Voerman](https://discuss.elastic.co/u/Leon_Voerman)\
**Post date:** [May 9, 2019, 2:21pm UTC](https://discuss.elastic.co/t/failed-to-configure-email-alerts-with-gmail/180316/3 "2019-05-09T14:21:33Z")

</div>

Worked. Thanks bud. You're a life saver.

---

<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:** [June 6, 2019, 2:21pm UTC](https://discuss.elastic.co/t/failed-to-configure-email-alerts-with-gmail/180316/4 "2019-06-06T14:21:52Z")

</div>

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