Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Configuring sending email on Alert creation (NetXMS + hMailServer)

Configuring sending email on Alert creation (NetXMS + hMailServer)

Scheduled Pinned Locked Moved Support
9 Posts 3 Posters 25.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    Azur
    wrote on last edited by
    #1

    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


    Screenshot 2022-06-10 at 09.45.48.png

    Screenshot 2022-06-10 at 09.46.02.png

    Screenshot 2022-06-10 at 09.46.46.png

    send email.png

    hmail.png

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      If you double-click on the notification channel, what settings will be available there?

      1 Reply Last reply
      0
      • A
        A
        Azur
        wrote on last edited by
        #3

        Thanks for the quick reply.
        Here :
        Server=localhost
        RetryCount=5
        Port=25
        LocalHostName=IT-SERVER
        FromName=NetXMS Server
        [email protected]
        MailEncoding=utf8
        IsHTML=yes

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #4

          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
          
          1 Reply Last reply
          0
          • F
            F
            Filipp Sudanov
            wrote on last edited by
            #5

            Also, for testing you can use Tools->Send notification menu.

            1 Reply Last reply
            0
            • A
              A
              Azur
              wrote on last edited by
              #6

              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 ?


              hmailserverlogs.png

              1 Reply Last reply
              0
              • V
                V
                Victor Kirhenshtein
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                • A
                  A
                  Azur
                  wrote on last edited by
                  #8

                  Hi,

                  Yes, the problem was in the mail Server itself.
                  I have added a gmail to the mail Server while desperately trying to send the email to it.
                  Do not add your real-emails to mail servers.
                  That solved my problem.

                  Thanks for all the help,
                  cheers.

                  1 Reply Last reply
                  0
                  • F
                    F
                    Filipp Sudanov
                    wrote on last edited by
                    #9

                    SMTP Authentication was added in 4.3, please see updated documentation: https://www.netxms.org/documentation/adminguide/event-processing.html#notification-channels

                    1 Reply Last reply
                    0

                    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
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    Powered by NodeBB Contributors
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups