# I can't configure SMTP to send users invitations on Enterprise Search

**URL:** <https://discuss.elastic.co/t/i-cant-configure-smtp-to-send-users-invitations-on-enterprise-search/320252>\
**Category:** Elastic Search\
**Tags:** elastic-app-search, elastic-workplace-search\
**Created:** [December 1, 2022, 2:06pm UTC](https://discuss.elastic.co/t/i-cant-configure-smtp-to-send-users-invitations-on-enterprise-search/320252 "2022-12-01T14:06:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sisifo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sisifo/32/114103_2.png) [@sisifo](https://discuss.elastic.co/u/sisifo)\
**Post date:** [December 1, 2022, 2:06pm UTC](https://discuss.elastic.co/t/i-cant-configure-smtp-to-send-users-invitations-on-enterprise-search/320252/1 "2022-12-01T14:06:55Z")

</div>

I enable RBAC User access on my Enterprise Search instance of Elastic Cloud. I added a user who is not currently registered into Elastic Cloud, an invitation email would usually be sent. Then I see it is necessary to change the configuration to enable the invitation email as it says in the documentation in this link:

> **[Configure a mail service | Elastic Enterprise Search Documentation \[7.17\] |...](https://www.elastic.co/guide/en/enterprise-search/7.17/mailer-configuration.html)**

So I go to the deployment configuration to edit the Enterprise Search instance user settings.  
In Cloud\>Deployments\>My Deployment\>Edit

I add the following configuration:

```auto
email.account:
   enabled: true
   smtp:
     auth:plain
     starttls.enable: true
     host: smtp.gmail.com
     port: 587
     user: myemail@gmail.com
     password: XXXXX
   email_defaults:
     from: noreply@gmail.com

```

And when I go to save the changes I get the following messages:  
Your changes cannot be applied

> Enterprise Search - 'email.account.email\_defaults.from': is not allowed  
> Enterprise Search - 'email.account.smtp.password': is not allowed  
> Enterprise Search - 'email.account.smtp.user': is not allowed  
> Enterprise Search - 'email.account.smtp.port': is not allowed  
> Enterprise Search - 'email.account.smtp.host': is not allowed  
> Enterprise Search - 'email.account.smtp.starttls.enable': is not allowed  
> Enterprise Search - 'email.account.smtp.auth': is not allowed  
> Enterprise Search - 'email.account.enabled': is not allowed

How can I configure a smtp server to send user invitations emails in enterprise search?

---

<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:** [December 29, 2022, 2:06pm UTC](https://discuss.elastic.co/t/i-cant-configure-smtp-to-send-users-invitations-on-enterprise-search/320252/2 "2022-12-29T14:06:59Z")

</div>

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