Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    notification

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 4 Posters 508 Views
    Loading More Posts
    • 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.
    • V
      vitor connectsolution
      last edited by

      I am configuring to receive emails through pfsense using the email address smtp.office365.com.

      but it is giving an error: Unable to send the message to support@connectsolution.com.br -- Error: Failed to connect to ssl://smtp.office365.com:465 [SMTP: Failed to connect socket: Operation timed out (code: -1, response:)]

      Can someone help me?

      V S 2 Replies Last reply Reply Quote 0
      • V
        viragomann @vitor connectsolution
        last edited by

        @vitor-connectsolution
        I don't think, that smtp.office365.com is listening on port 465.
        Try port 587 and uncheck "Secure SMTP Connection".

        GertjanG 1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan @viragomann
          last edited by Gertjan

          @viragomann

          Yep, they answer at 587

          220 PR0P264CA0117.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 9 Nov 2023 15:51:14 +0000
          
          root@ns311465:~# openssl s_client -connect smtp.office365.com:465
          

          == looks like no one is at home .....

          I've been questioning my favourite search bots a bit, and it really looks like Microsoft doesn't do "port 465" (native TLS SMTP mail or smtps)
          They still support only "587" ? Rather bizarre.

          @vitor-connectsolution : microsoft.com really told you to use 465 ? ๐Ÿ˜ 

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @vitor connectsolution
            last edited by SteveITS

            @vitor-connectsolution

            MS doc:
            https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365

            There are several caveats to their 3 options. To simplify everything, if you have a static IP it's by far easiest to use "option 3" on that page and set up a connector that allows relaying by IP. One can control access out by firewall rules.

            For "option 1" (username/password) you have to enable SMTP AUTH for your account or for your tenant, and use 587. In pfSense, despite the web page saying to set "TLS/StartTLS" to "enabled" you have to uncheck the TLS option and use 587 as @viragomann suggested.

            "option 2" also is easy to set up but you can only send to your domain...however you can set up a distribution list to send to external addresses.

            @Gertjan said in notification:

            microsoft.com really told you to use 465

            I think you misread, he said to use 587 not 465. :) Never mind I didn't realize you were responding to OP there.

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote ๐Ÿ‘ helpful posts!

            1 Reply Last reply Reply Quote 2
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.