I have configured my watcher in my ELK stack 7.6.0 installed that in my Ubuntu 18.04 LTS.
my elasticsearch.yml config.
xpack.watcher.enabled: true xpack.notification.email.account: gmail_account: profile: gmail smtp: auth: true starttls.enable: true host: smtp.gmail.com port: 587 user: firstname.lastname@example.org
I have already had my gmail app password and inputted using this command:
/usr/share/elasticsearch/bin/elasticsearch-keystore add xpack.notification.email.account.gmail_account.smtp.secure_password
When I tried to send test email I got this error Failed to send email to
and got this on elasticsearch logs:
Caused by: javax.mail.MessagingException: can't determine local email address
Anyone can help me please to fixed this issue. Thanks!