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

Notifications don't work - routing/network config related?

Scheduled Pinned Locked Moved Routing and Multi WAN
6 Posts 3 Posters 608 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.
  • S
    sydrooz
    last edited by Jul 11, 2021, 2:55 PM

    Hi all,

    I want to use the system notifications configured under System / Advanced / Notifications and have entered both SMTP and Telegram settings. Neither of the services are able to connect.
    The settings are definitely correct, and the SMTP server is entered correctly. I am using the exact same settings and accounts for other devices on the network successfully.

    Upon connecting with "Test SMTP Settings", I receive the error message: "Could not send the message to *****@gmail.com -- Error: Failed to connect to ****:25 [SMTP: Failed to connect socket: Operation timed out (code: -1, response: )]"

    If I test the SMTP server host under diagnostics -> test port and enter the SMTP server, it also fails: Connection failed.

    The same happens if I use the IP address instead of the URL, so it is not DNS related.

    I figure it must be routing / network related that the notification services running as localhost cannot reach out to the SMTP server. I have however got a localhost to WAN NAT rule, and it is e.g. possible without problems to download and upload the firmware from within the pfsense admin GUI.

    Do you have any hints where else I could troubleshoot or review logs to tackle this? I would really love to have the notifications up and running. Thanks for any advice.

    Syd.

    V 1 Reply Last reply Jul 11, 2021, 3:11 PM Reply Quote 0
    • V
      viragomann @sydrooz
      last edited by Jul 11, 2021, 3:11 PM

      @sydrooz
      Gmail doesn't accept SMTP connections on port 25. Use port 587 instead.

      S 1 Reply Last reply Jul 11, 2021, 7:26 PM Reply Quote 0
      • S
        sydrooz @viragomann
        last edited by Jul 11, 2021, 7:26 PM

        @viragomann I'm sending via my own SMTP, gmail is just the recipient address, so unfortunately it needs to be something else :-(

        V G 2 Replies Last reply Jul 11, 2021, 8:04 PM Reply Quote 0
        • V
          viragomann @sydrooz
          last edited by Jul 11, 2021, 8:04 PM

          @sydrooz
          Anyway, pfSense is obviously not able to access the SMTP server.
          So how is you SMTP server connected? Is it inside your LAN or in the internet?

          What are your outbound NAT rules?

          Some floating firewall rules defined?

          1 Reply Last reply Reply Quote 0
          • G
            Gertjan @sydrooz
            last edited by Jul 12, 2021, 6:09 AM

            @sydrooz said in Notifications don't work - routing/network config related?:

            I'm sending via my own SMTP

            and

            @sydrooz said in Notifications don't work - routing/network config related?:

            Error: Failed to connect to ****:25 [SMTP: Failed to connect socket:

            port 25 is meant to be used to receive mails from the 'outside world' == only other mail servers use this port, to drop mails that are destinated for you - you MX domains..

            A mail client, like Outlook 365, Thunderbird or pfSense in this case, should use 587 or even 465.
            You should set up your own postfix ? mail server to accept mails from YOUR clients on these ports. And set up all your clients to use only 587 or (better) 465.

            True, in the last century, mail client could use port 25 of the mail server of your ISP. That was wrong.
            Btw : most ISPs completely block outgoing connections to anywhere:25 these days (except there own mail server).

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

            S 1 Reply Last reply Jul 12, 2021, 9:53 AM Reply Quote 1
            • S
              sydrooz @Gertjan
              last edited by Jul 12, 2021, 9:53 AM

              @gertjan Thank you! It works now ... Should've known that, won't make that mistake again!

              1 Reply Last reply Reply Quote 0
              1 out of 6
              • First post
                1/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received