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. Sending emails from a Windows server with Office365?

Sending emails from a Windows server with Office365?

Scheduled Pinned Locked Moved Support
7 Posts 4 Posters 13.4k 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.
  • W
    W
    wim.cossement
    wrote on last edited by
    #1

    Hello,

    Has anyone already been able to use smtp.office365.com as their mail server from a Windows box?

    Ive been playing around at home with a Debian client and Debian server and via Postfix I can relay mail alerts to Gmail but now they want me to implement the whole shebang on a Windows only environment for an internship. But sending mails from a Windows machine seems to be a PITA.
    I can use a tool to test it that saves it's account settings in an XML file like SwithMail and this works file from the command line as a local user but if I define this (for testing) in the server actions nothing happens.
    PowerShell could perhaps be another option but then again, the action needs to be executed so am I missing something?

    Thanks,

    Wim

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

      Hi,

      I suppose that smtp.office365.com will require authentication, which is not supported by built-in SMTP sender. Easiest way is to install mail forwarder on same machine, configure NetXMS server to send mails to 127.0.0.1 and then forward everything to smtp.office365.com with proper authentication and encryption There are multiple SMTP relays available for Windows. Quick search reveals post for dealing with exact same problem (sending mail to office365 from software that can only do plain SMTP): https://xo.tc/simple-windows-smtp-relay.html

      Best regards,
      Victor

      1 Reply Last reply
      0
      • W
        W
        wim.cossement
        wrote on last edited by
        #3

        I won't be able to use that because this requires a Windows server and I'm running this on a simplevWindows 10 box.
        There are other mail relays out there like hMailServer but the configuration seems a bit confusing to me and I haven't gotten it up yet but will keep trying.
        Otherwise I'll try to convince them to let me use a Linux box instead for the server...  😉

        Thanks,

        Wim

        1 Reply Last reply
        0
        • 2
          2
          2b2bff
          wrote on last edited by
          #4

          If you want a Microsoft only solution, you can use the smtp server that is built-in to IIS. There a plenty of guides out there how to set this up.

          1 Reply Last reply
          0
          • W
            W
            wim.cossement
            wrote on last edited by
            #5

            Yes I know but then you need another Windows box and license.

            But relaying via Postfix is also easy, once you know how to configure it...  😎

            I used this one to test it with G-mail first: https://www.howtoforge.com/tutorial/configure-postfix-to-use-gmail-as-a-mail-relay
            This is for OWA 365 but very similar: https://www.informaticapressapochista.com/linux/configure-postfix-use-office365-smtp-relay-ubuntu-16-04/
            Microsoft is not as cool as Google when it comes to accepting mails not being sent by the authenticated use so you have to change the headers a bit; they must be the same as the account you'll log in to OWA 365 or your message gets rejected: https://wiki.4psa.com/display/KB/How+to+change+the+From+header+for+messages+sent+by+Postfix

            These last 6 weeks have been interesting because I learnt a lot about this nice NetXMS product but now my project's time's up.

            1 Reply Last reply
            0
            • 2
              2
              2b2bff
              wrote on last edited by
              #6

              @wimpers said in Sending emails from a Windows server with Office365?:

              Yes I know but then you need another Windows box and license.

              Just for the record - you can install them on the same box. No extra machine is needed...

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

                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