# Which node connects to email server?

**URL:** <https://discuss.elastic.co/t/which-node-connects-to-email-server/211341>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 10, 2019, 5:03pm UTC](https://discuss.elastic.co/t/which-node-connects-to-email-server/211341 "2019-12-10T17:03:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dchan08](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@dchan08](https://discuss.elastic.co/u/dchan08)\
**Post date:** [December 10, 2019, 5:03pm UTC](https://discuss.elastic.co/t/which-node-connects-to-email-server/211341/1 "2019-12-10T17:03:54Z")

</div>

Hi, I have configured watcher email setting in elasticserach to send mails, currently i have 3 master nodes and 12 other nodes and all of them can reach the email server. The setup is working fine, now, I am planning to add more nodes to the stack, so should i add firewall rules to allow these nodes to reach the mail server as well?

or is it enough that if i just allow only the master nodes to reach the mail server?

---

<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 11, 2019, 8:43am UTC](https://discuss.elastic.co/t/which-node-connects-to-email-server/211341/2 "2019-12-11T08:43:54Z")

</div>

The emails are sent from those nodes where the watches are executed. Execution happens on the master node on 5.x and on data nodes on 6.x and above (where the watcher shards are). If you are at least on version 6, all data nodes should be able to sent an email.

---

<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 8, 2020, 8:43am UTC](https://discuss.elastic.co/t/which-node-connects-to-email-server/211341/3 "2020-01-08T08:43:54Z")

</div>

Closed on January 8, 2020, 8:43am UTC

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