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. TLS SMTP problem

TLS SMTP problem

Scheduled Pinned Locked Moved Support
4 Posts 3 Posters 20.9k 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.
  • T
    T
    tiithe
    wrote on last edited by
    #1

    Hi

    I use Office 365 as mail service and i'm stuck now with mail configuration (NetXMS server is a Debian machine). I installed msmtp and configured it as was an example here in forum (link to sendmail and sendmail is renamed). From shell is mail sending working good and I recieve my testmail, but NetXMS says in event log that "SYS_SMTP_FAILURE"and "Unable to send e-mail to <blabla>: Communication failure."
    I configured NetXMS as it seems to be right (SMTPServer tried both localhost and real IP).
    Another suggestion here was to use scripts .. is there some example for they? NetXMS is a really cool system, but that mail problem is a showstopper for me right now.

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

      Hi!

      NetXMS server uses SMTP protocol to deliver mails. If it is unable to communicate with your post server directly, you can install local SMTP server (mail client is not enough), configure NetXMS to use 127.0.0.1 as SMTP server, and just forward everything from your local SMTP server to your real mail server. On Debian Postfix could be right choice. This is short document on how to configure Postfix to forward everything to mail gateway: http://marcelog.github.io/articles/configure_postfix_forward_all_email_smtp_gateway.html

      Best regards,
      Victor

      1 Reply Last reply
      0
      • T
        T
        tiithe
        wrote on last edited by
        #3

        @victor said in TLS SMTP problem:

        Hi!

        NetXMS server uses SMTP protocol to deliver mails. If it is unable to communicate with your post server directly, you can install local SMTP server (mail client is not enough), configure NetXMS to use 127.0.0.1 as SMTP server, and just forward everything from your local SMTP server to your real mail server. On Debian Postfix could be right choice. This is short document on how to configure Postfix to forward everything to mail gateway: http://marcelog.github.io/articles/configure_postfix_forward_all_email_smtp_gateway.html

        Best regards,
        Victor

        Got it working with Exim4 (default MTA in Debian). If anybody wants .. here is what I did in exim4.conf file:

        First, allow relay from localhost and my own LAN

        hostlist relay_from_hosts = 127.0.0.1 : my.lan.ip.range/24

        A new router to Router section (I named it send_to_gateway):

        send_to_gateway:
          driver = manualroute
          domains = !+local_domains
          transport = ms_smtp
          route_list = * pod(your_Office365_smtp_server_number_here).outlook.com

        Then a new transport in Transport section

        ms_smtp:
          driver = smtp
          port = 587
          hosts_require_auth = $host_address
          hosts_require_tls = $host_address

        And then new authenticator to Authenticators section (i commented out another authenticator, that used same public name, without that throw exim an configuration error):

        smtp_login:
          driver = plaintext
          public_name = LOGIN
          hide client_send = : [email protected] : password

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

          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