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

    NUT Package, how to Email notifications on Pfsense 2.3 ?

    Scheduled Pinned Locked Moved pfSense Packages
    13 Posts 5 Posters 5.5k 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.
    • dennypageD
      dennypage
      last edited by

      This is a minor defect, unrelated to NUT. It won't affect the notices.

      I've submitted a PR to correct.

      1 Reply Last reply Reply Quote 0
      • M
        markeby
        last edited by

        @dennypage:

        This is a minor defect, unrelated to NUT. It won't affect the notices.

        I've submitted a PR to correct.

        Is there a workaround to this issue?  I really need to send email for notification of power outages.

        1 Reply Last reply Reply Quote 0
        • dennypageD
          dennypage
          last edited by

          Until a permanent fix is in place, you can work around it temporarily by adding a require to notices.inc:

          https://github.com/pfsense/pfsense/pull/3013/files

          1 Reply Last reply Reply Quote 0
          • M
            markeby
            last edited by

            @dennypage:

            Until a permanent fix is in place, you can work around it temporarily by adding a require to notices.inc:

            https://github.com/pfsense/pfsense/pull/3013/files

            Thank you, this worked.  Now a new problem surfaces that seems odd:
            php-cgi: mail.php: Could not send the message to myemail@gmail.com – Error: establishing SSL connections requires the OpenSSL extension enabled

            seems that root has OpenSSL but not when running from the apps.  Oh, and I also piped "php -i" in the script and oddly enough "SSL => Yes" and the other appropriate lines of info about SSL does not exist as when I run this on the console.

            1 Reply Last reply Reply Quote 0
            • C
              cmb
              last edited by

              Thanks Denny, merged that PR as it won't hurt.

              But in this case, won't fix it either I guess. Yeah if you need SSL, then the root cause that was causing it to complain about gettext will make it not have OpenSSL as well. At a quick review it wasn't immediately apparent why it wasn't reading extensions.ini in that case. No way to work around that one for SSL support, the root cause of it not picking up extensions.ini will need to be fixed to address that.

              1 Reply Last reply Reply Quote 0
              • M
                markeby
                last edited by

                This is disapointing.  I Really need to be able to send messages for events on my firewall.  I may try a workaround by forwarding the logs to a linux system and trigger emails from new log contents.  That ins't too difficult as long as I can get the log info from the NUT package (and possible other packages) directly.

                1 Reply Last reply Reply Quote 0
                • L
                  LucaTo
                  last edited by

                  same issue here (2.3.3-DEVELOPMENT built on Sat Aug 06 00:03:02 CDT 2016 / NUT 2.7.4_1)

                  nut_email.php: Could not send the message to joe@abcd.com -- Error: establishing SSL connections requires the OpenSSL extension enabled 
                  
                  1 Reply Last reply Reply Quote 0
                  • dennypageD
                    dennypage
                    last edited by

                    FWIW, the TLS issue has been tracked down:

                    https://forum.pfsense.org/index.php?topic=115349.msg646466#msg646466

                    1 Reply Last reply Reply Quote 0
                    • M
                      markeby
                      last edited by

                      That is a fix I can live with.  Now, I have looked throught the github repos but do not know which repo to obtain the build from to install.  I have a factory pfSense box.

                      Or, has the package install been fixed and can I install the NUT from the package list?

                      1 Reply Last reply Reply Quote 0
                      • dennypageD
                        dennypage
                        last edited by

                        @markeby:

                        Or, has the package install been fixed and can I install the NUT from the package list?

                        Yes, package manager install was fixed Monday morning. Information in this thread:

                        https://forum.pfsense.org/index.php?topic=115349.0

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