Configuring sending email on Alert creation (NetXMS + hMailServer)
-
Hi everyone.
Hope you are having a great day, and the weekend will be even better !I am trying to set up email notifications every time a specific alarm is logged. The alarm it self does get logged in NetXMS but I am stuck at sending this alarm to my gmail.
I am aware NetXMS does not support SMTP authentication so I have set up hMailServer locally on the same server as where NetXMS is located.
I am not sure if my hMailServer configuration is wrong, or I am doing something wrong in the NetXMS it self but I keep getting "Driver error" in Notification Channels inside NetXMS.I am posting pictures of NetXMS configuration and hMailServer hoping those will help you understand the issue.
Thank you in advance,
Azur





-
If you double-click on the notification channel, what settings will be available there?
-
Thanks for the quick reply.
Here :
Server=localhost
RetryCount=5
Port=25
LocalHostName=IT-SERVER
FromName=NetXMS Server
[email protected]
MailEncoding=utf8
IsHTML=yes -
Configuration looks correct (except for RetryCount=5 - it's now taken from a global server variable).
Most probably there is some issue with your mail relay software. I've successfully used https://sourceforge.net/projects/emailrelay/, you may try this as well.
You can simply test your email relay like this:
telnet localhost 25 EHLO localhost MAIL FROM: <[email protected]> RCPT TO: <[email protected]> DATA From: [email protected] To: [email protected] Subject: test email test body . quit -
Also, for testing you can use Tools->Send notification menu.
-
I tried testing it via Send notification menu, and I get the notification saying "Notification to [email protected]" has been enqueued.
I checked the hMailServer logs -> everything looks fine there as if the message goes through.
I still do not get the email to my inbox.
Any suggestions ?

-
From what you show it looks like mail relay successfully received mail from netxmsd, so if you didn;t receive it it was either not sent by relay, or rejected/dropped by receiving server. Do you have any logs from relay regarding forwarding of this mail?
Best regards,
Victor -
-
SMTP Authentication was added in 4.3, please see updated documentation: https://www.netxms.org/documentation/adminguide/event-processing.html#notification-channels
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