Missing required email account setting for account

I added this lines to my elasticsearch.yml and my elasticsearch.yml looks like this:

xpack.notification.email.account:
    gmail_account:
        profile: gmail
        smtp:
            auth: true
            starttls.enable: true
            host: smtp.gmail.com
            port: 587
            user: <my_emailadress>

I also ran bin/elasticsearch-keystore add xpack.notification.email.account.gmail_account.smtp.secure_password and entered the App Password.

But when I try to start elasticsearch I get the following error: SettingsException[missing required email account setting for account [gmail_account]. 'smtp.host' must be configured]

Hey

which elasticsearch version is this one? Also, can you share the configuration file so we can check if there are any indentation errors in there?

--Alex

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