# Watcher won't send email action after enabling the security in ELK

**URL:** <https://discuss.elastic.co/t/watcher-wont-send-email-action-after-enabling-the-security-in-elk/154653>\
**Category:** Elasticsearch\
**Created:** [October 30, 2018, 12:23pm UTC](https://discuss.elastic.co/t/watcher-wont-send-email-action-after-enabling-the-security-in-elk/154653 "2018-10-30T12:23:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bab/32/86201_2.png) [@bab](https://discuss.elastic.co/u/bab)\
**Post date:** [October 30, 2018, 12:23pm UTC](https://discuss.elastic.co/t/watcher-wont-send-email-action-after-enabling-the-security-in-elk/154653/1 "2018-10-30T12:23:33Z")

</div>

Hi,  
i have a problem to send email action using watcher after i install x-pack security on all ELk element (Es, kiba...), befor i didn't have a x-pack security enable i was able to send emails but now i get this below error:

```
    {
      "id": "email_administrator",
      "type": "email",
      "status": "failure",
      "error": {
        "root_cause": [
          {
            "type": "messaging_exception",
            "reason": "failed to send email with subject [Encountered 30 errors] via account [gmail_account]"
          }
        ],
        "type": "messaging_exception",
        "reason": "failed to send email with subject [Encountered 30 errors] via account [gmail_account]",
        "caused_by": {
          "type": "messaging_exception",
          "reason": "Could not convert socket to TLS",
          "caused_by": {
            "type": "s_s_l_handshake_exception",
            "reason": "Remote host closed connection during handshake",
            "caused_by": {
              "type": "e_o_f_exception",
              "reason": "SSL peer shut down incorrectly"
            }
          }
        }
      }
    }
  ]
},

```

any help, 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:** [November 2, 2018, 9:19am UTC](https://discuss.elastic.co/t/watcher-wont-send-email-action-after-enabling-the-security-in-elk/154653/2 "2018-11-02T09:19:38Z")

</div>

Hey,

can you share your Elasticsearch version and more importantly your configuration for the email account plus your configuration for security.

--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:** [November 30, 2018, 9:19am UTC](https://discuss.elastic.co/t/watcher-wont-send-email-action-after-enabling-the-security-in-elk/154653/3 "2018-11-30T09:19:42Z")

</div>

Closed on November 30, 2018, 9:19am UTC

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