# Sending email from gmail

**URL:** <https://discuss.elastic.co/t/sending-email-from-gmail/189081>\
**Category:** Elasticsearch\
**Created:** [July 5, 2019, 11:25am UTC](https://discuss.elastic.co/t/sending-email-from-gmail/189081 "2019-07-05T11:25:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![proxx](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@proxx](https://discuss.elastic.co/u/proxx)\
**Post date:** [July 5, 2019, 11:25am UTC](https://discuss.elastic.co/t/sending-email-from-gmail/189081/1 "2019-07-05T11:25:07Z")

</div>

I know there a lot of questions around this issue, and haven't seen a clear explanation...TBH

I installed my ELK stack using **rpm** and running very fine.

However, have been struggling on how to get my watcher up and running. However, in the elastic documentation, it wasn't stated on how store the SMTP account password using rpm file, the command only works when ELK is installed as tar file.

So i ran this command to store the SMTP account provided by elastic  
bin/elasticsearch-keystore add xpack.notification.email.account.gmail\_account.smtp.secure\_password

And here is my respond on my console  
[root@localhost elasticsearch]# bin/elasticsearch-keystore add xpack.notification.email.account.gmail\_account.smtp.secure\_password  
-bash: bin/elasticsearch-keystore: No such file or directory

Below is my elasticsearch.yml on watcher  
xpack.notification.email.account:  
gmail\_account:  
profile: gmail  
smtp:  
auth: true  
starttls.enable: true  
host: [smtp.gmail.com](http://smtp.gmail.com)  
port: 587  
user: \*\*\*\*\*\*\*\*\*\*@gmail.com

Also, do i need to configure mail processing system like mailx on my server before watcher can work.  
Kindly help out. Thanks.

---

<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:** [July 5, 2019, 12:43pm UTC](https://discuss.elastic.co/t/sending-email-from-gmail/189081/2 "2019-07-05T12:43:56Z")

</div>

the binary is in a different location, when installing as RPM. See documentation lists the [directory layout of the RPM](https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html#rpm-layout)

---

<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:** [August 2, 2019, 12:44pm UTC](https://discuss.elastic.co/t/sending-email-from-gmail/189081/3 "2019-08-02T12:44:14Z")

</div>

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