We have Zabbix deploved in a Docker container and recently updated the SendGrid password. Since then, Zabbix email notifications have stopped working, even after updating the new password in the media type configuration. I tested email sending manually from inside the container, and emails are being received successfully. However, when testing through the Zabbix media type, it fails with the following error:
"Timeout was reached: Connection timed out after 40002 milliseconds."
Any idea how can I resolve it.?
Using below command I am able to receive email when I am trying inside container.
curl -X POST "https://api.sendgrid.com/v3/mail/send" -H "Authorization: Bearer abc" -H "Content-Type: application/json" -d '{"personalizations":[{"to":[{"email":"[email protected]"}],"subject":"Test Email from Zabbix"}],"from":{"email":"[email protected]"},"content":[{"type":"text/plain","value":"Test message from Zabbix server"}]}'
"Timeout was reached: Connection timed out after 40002 milliseconds."
Any idea how can I resolve it.?
Using below command I am able to receive email when I am trying inside container.
curl -X POST "https://api.sendgrid.com/v3/mail/send" -H "Authorization: Bearer abc" -H "Content-Type: application/json" -d '{"personalizations":[{"to":[{"email":"[email protected]"}],"subject":"Test Email from Zabbix"}],"from":{"email":"[email protected]"},"content":[{"type":"text/plain","value":"Test message from Zabbix server"}]}'