I am using elastic search watcher, and send notifications via email.
I have requested whitelisting for all workers in my company.
I confirmed my own email (can't confirm for other people.
here is my action:
"actions" : {
"email_administrator" : {
"email" : {
"to" : ["bob@gmail.com", "jim@gmail.com", "jay@gmail.com"],
"subject" : "errors and warnings in last 24 hours",
"body" : "hi",
"priority" : "high"
}
}
}
but i do not receive any email
when i get the watcher status
curl -XPOST 'https://myelatic.us-east-1.aws.found.io:9243/.watches/_search?pretty' -H 'Content-Type: application/json' -d'{"size" : 100}'
I get:
"last_execution" : {
"reason" : "MessagingException[failed to send email with subject [errors and warnings in last 24 hours] via account [work]]; nested: SendFailedException[Invalid Addresses]; nested: SMTPAddressFailedException[554 5.7.1 <bob@gmail.com>: Recipient address rejected: Access denied\n]; ",
"timestamp" : "2017-08-21T12:10:17.869Z",
"successful" : false
}
since bob hasn't confirmed his email,
so when I remove bob from the list, it works well and I receive an email,
my question is: how can I make it send emails to all accounts which are confirmed, and ignore unconfirmed accounts, since I cannot force confirmations of accounts