Hi ES experts,
I'm trying to configure several Email accounts in elasticsearch.yml
:
xpack.notification.email.account:
acc1:
profile: standard
email_defaults:
from: mail1@dom1.net
smtp:
auth: true
starttls.enable: true
host: smpt.dom1.net
port: 587
user: user1@dom1.net
password: ******
acc2:
profile: gmail
email_defaults:
from: mail2@gmail.com
smtp:
auth: true
starttls.enable: true
host: smtp.gmail.com
port: 587
user: mail2
password: *****
Which parameter do I need to use to specify, which email account should be taken? Is it the parameter account
like this (the parameter profile
gets added automatically for some reason):
"actions": {
"send_email": {
"email": {
"account": "acc1",
"profile": "standard",
"priority": "highest",
"to": [
"rec@dom1.net"
],
"subject": "Watcher - Alert",
"body": {
"text": "{{ctx.payload}}"
}
}
}
}
Unfortunately it is not clear from the documentation
The problem is - no email gets sent, no errors in the logs...
Thanks a lot!