Email alerts in 2.1-M1 not working?
-
Hi,
Email alerts on our system stopped working after we upgraded to NetXMS 2.1-M1 (which required an upgrade to Ubuntu 16 for JDK8 and was followed by an upgrade of Postgres to 9.5 - so plenty of changes).
The NetXMS configuration was pretty basic and meant to send emails through localhost. Manually sending via telnet works without a problem.
I increased debug logging on the server, monitored Postfix logs as well as NetXMS and found that Postfix does not even see a connection attempt from NetXMS.
NetXMS on the other hand gives me this (email address/server name/DCI data replaced):[07-Dec-2016 17:13:48.650] [DEBUG] *actions* Executing action 4 ([Email] Standard Alert) of type SEND EMAIL [07-Dec-2016 17:13:48.650] [DEBUG] *actions* Sending mail to EMAIL_ADDRESS: ""DCI_DESCRIPTION" is in state "NORMAL" - (Parameter: DCI_PARAMETER)" [07-Dec-2016 17:13:48.655] [DEBUG] SMTP(0x7f5d6c2a3390): Failed to send e-mail, remaining retries: 4 [07-Dec-2016 17:13:48.656] [DEBUG] SMTP(0x7f5d6c2a3390): Failed to send e-mail, remaining retries: 3 [07-Dec-2016 17:13:48.656] [DEBUG] SMTP(0x7f5d6c2a3390): Failed to send e-mail, remaining retries: 2 [07-Dec-2016 17:13:48.656] [DEBUG] SMTP(0x7f5d6c2a3390): Failed to send e-mail, remaining retries: 1 [07-Dec-2016 17:13:48.657] [DEBUG] SMTP(0x7f5d6c2a3390): Failed to send e-mail, remaining retries: 0 [07-Dec-2016 17:13:48.657] [DEBUG] EVENT SYS_SMTP_FAILURE [22] (ID:4307970 F:0x0001 S:1 TAG:"") FROM SERVER_HOSTNAME: Unable to send e-mail to <EMAIL_ADDRESS>: Unable to resolve SMTP server nameI am not sure what there is to resolve for localhost or the IP 127.0.0.1 (I tested that as well). But either way, localhost does resolve locally without problems and telnet to localhost on port 25 works fine.
Has anyone else run into this?
-
There is a bug introduced in V2.1-M1,
see https://www.netxms.org/forum/general-support/problem-with-smtp-action-(maybe-since-v2-10-m1)/use the IP address of the server instead for the moment.
best regards
Dani -
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login