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]