Trying to create watchers to send email using the xpack configuration below. The configuration work however I am getting random timeouts. (See error below along with xpack email configuration)
Sending a manual test email from the create threshold alerts menu works fine. The automated trigger emails seem to be failing with the timeout issue but will also randomly work and the messages are sometimes sent. Any help is much appreciated!
"actions": [
{
"id": "send_email",
"type": "email",
"status": "failure",
"error": {
"root_cause": [
{
"type": "messaging_exception",
"reason": "failed to send email with subject [Watcher Notification] via account [work]"
}
],
"type": "messaging_exception",
"reason": "failed to send email with subject [Watcher Notification] via account [work]",
"caused_by": {
"type": "mail_connect_exception",
"reason": "Couldn't connect to host, port: {{IP ADDRESS}}, 25; timeout 120000",
"caused_by": {
"type": "socket_timeout_exception",
"reason": "connect timed out"
}
}
}
}
]
xpack.notification.email.account:
work:
profile: outlook
email_defaults:
from: email@domain.com
smtp:
auth: false
starttls.enable: false
host: {{IP ADDRESS}}
port: 25
user: email@domain.com