# Getting error in configuring sender mail in xpack watchers

**URL:** <https://discuss.elastic.co/t/getting-error-in-configuring-sender-mail-in-xpack-watchers/102373>\
**Category:** Elasticsearch\
**Created:** [October 1, 2017, 12:05pm UTC](https://discuss.elastic.co/t/getting-error-in-configuring-sender-mail-in-xpack-watchers/102373 "2017-10-01T12:05:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yash\_mangla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yash_mangla/32/25889_2.png) [@yash\_mangla](https://discuss.elastic.co/u/yash_mangla)\
**Post date:** [October 1, 2017, 12:05pm UTC](https://discuss.elastic.co/t/getting-error-in-configuring-sender-mail-in-xpack-watchers/102373/1 "2017-10-01T12:05:52Z")

</div>

Hello Guys,

for watcher notification alert i'm going to setup default mail which help i can send notification to sender but  
I'm facing error when i'm setting up default outlook account in elasticsearch configuration to test functionality.

my `elasticsearch.yml` configuration is:

```
xpack.notification.email.account:
    outlook_account:
        profile: outlook
        smtp:
            auth: true
            starttls.enable: true
            host: smtp.office365.com
            port: 587
            user: yash@<domain name>.com
            password: <password>

```

error on elastic console i'm getting:

> `Caused by: com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.60 SMTP; Client does not have permissions to send as this sender [SN1PR0501MB2048.namprd05.PROD.OUTLOOK.COM]`

Kindly, help me to resolve this problem.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 1, 2017, 9:43pm UTC](https://discuss.elastic.co/t/getting-error-in-configuring-sender-mail-in-xpack-watchers/102373/2 "2017-10-01T21:43:39Z")

</div>

This seems related, it's not a Watch issue, it's a mail server/auth one;

> **[I receive a 550, 553, or relay-prohibited error when sending email messages](https://support.office.com/en-us/article/I-receive-a-550-553-or-relay-prohibited-error-when-sending-email-messages-65b494a4-0a15-433e-829f-e73651e0245e)**
>
> Explains how to resolve relay-prohibited errors in an Outlook account.

---

<div class="post-metadata">

**Author:** ![yash\_mangla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yash_mangla/32/25889_2.png) [@yash\_mangla](https://discuss.elastic.co/u/yash_mangla)\
**Post date:** [October 3, 2017, 8:24am UTC](https://discuss.elastic.co/t/getting-error-in-configuring-sender-mail-in-xpack-watchers/102373/3 "2017-10-03T08:24:55Z")

</div>

Hi @warkolm,

I didn't mention it's a watch issue i just said i'm getting error in my elasticsearch console.  
yeah! you're right, In 1st look it's looking client authentication error.

But, Can you provide the solution on this issue. or any direction what settings i have to change in order to work this action properly as i expected.

---

<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:** [October 31, 2017, 8:25am UTC](https://discuss.elastic.co/t/getting-error-in-configuring-sender-mail-in-xpack-watchers/102373/4 "2017-10-31T08:25:07Z")

</div>

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