# Configuration of SMTP in elastic cloud

**URL:** <https://discuss.elastic.co/t/configuration-of-smtp-in-elastic-cloud/223743>\
**Category:** Elasticsearch\
**Created:** [March 16, 2020, 11:25am UTC](https://discuss.elastic.co/t/configuration-of-smtp-in-elastic-cloud/223743 "2020-03-16T11:25:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbElastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dbelastic/32/46548_2.png) [@dbElastic](https://discuss.elastic.co/u/dbElastic)\
**Post date:** [March 16, 2020, 11:25am UTC](https://discuss.elastic.co/t/configuration-of-smtp-in-elastic-cloud/223743/1 "2020-03-16T11:25:20Z")

</div>

Hi ,

We are using this configuration in elastic cloud for smtp :

xpack.notification.email.account:  
exchange\_account:  
profile: outlook  
email\_defaults:  
from:   
smtp:  
auth: true  
starttls.enable: true  
host: [smtp.office365.com](http://smtp.office365.com)  
port: 587  
user:

While saving I get the error below:

'xpack.notification.email.account.exchange\_account.profile': is not allowed

Please let us know what is missing.

---

<div class="post-metadata">

**Author:** ![BPant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bpant/32/45037_2.png) [@BPant](https://discuss.elastic.co/u/BPant)\
**Post date:** [March 16, 2020, 1:47pm UTC](https://discuss.elastic.co/t/configuration-of-smtp-in-elastic-cloud/223743/2 "2020-03-16T13:47:13Z")

</div>

Hello @spinscale

I am also facing this same issue . I saw a similar discussion in the link below:

> [@Illegal User Settings](https://discuss.elastic.co/t/illegal-user-settings/65610/5):
>
> Hi Alex, I am using the hosted cluster. I am trying to update user settings from portal. URL: [https://api.found.no/api/v0/clusters/us-east-1/b0a4ab1f733156e01cb0197bd8761302](https://api.found.no/api/v0/clusters/us-east-1/b0a4ab1f733156e01cb0197bd8761302) PayLoad {"scripting":{"inline":"sandbox","indexed":"sandbox","file":"sandbox"},"auto\_create\_index":true,"capacity":"1024","region":"us-east-1","availability\_zones":"1","version":"5.0.0","destructive\_requires\_name":false,"ssd":true,"user\_plugins":,"plugins":,"user\_id":19283115,"created":"2016-11-10T14:12:10Z","txid":79664…

Could you please help.

---

<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:** [March 16, 2020, 1:52pm UTC](https://discuss.elastic.co/t/configuration-of-smtp-in-elastic-cloud/223743/3 "2020-03-16T13:52:38Z")

</div>

See [https://www.elastic.co/guide/en/cloud/current/ec-watcher.html#ec-watcher-whitelist](https://www.elastic.co/guide/en/cloud/current/ec-watcher.html#ec-watcher-whitelist)

---

<div class="post-metadata">

**Author:** ![dbElastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dbelastic/32/46548_2.png) [@dbElastic](https://discuss.elastic.co/u/dbElastic)\
**Post date:** [March 16, 2020, 2:44pm UTC](https://discuss.elastic.co/t/configuration-of-smtp-in-elastic-cloud/223743/4 "2020-03-16T14:44:49Z")

</div>

We had added the email id in the whitelist from the metioned contact settings, but do we any thing like below to be mentioned in user overrides settings in ES in elastic cloud.:

`xpack.notification.email.html.sanitization`

---

<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:** [April 13, 2020, 2:44pm UTC](https://discuss.elastic.co/t/configuration-of-smtp-in-elastic-cloud/223743/5 "2020-04-13T14:44:55Z")

</div>

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