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

    SMTP E-Mail notifications

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    10 Posts 7 Posters 15.1k 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.
    • R Offline
      RpR
      last edited by

      Why isn't there a simple test button to test that the SMTP E-Mail notifications are configured alright?

      1 Reply Last reply Reply Quote 0
      • R Offline
        rilles
        last edited by

        If I click on 'save' in the smtp area, I can see in the logs it tried to send me an email.  I can't seem to get it to work, but it does try.

        1 Reply Last reply Reply Quote 0
        • R Offline
          RpR
          last edited by

          indeed. But I can't get it to work with gmail smtp.

          1 Reply Last reply Reply Quote 0
          • M Offline
            mikesamo
            last edited by

            gmail use ssl smtp

            1 Reply Last reply Reply Quote 0
            • T Offline
              TimmZahn
              last edited by

              @mikesamo:

              gmail use ssl smtp

              Right… so does that mean that it won't work with Gmail's SMTP?

              1 Reply Last reply Reply Quote 0
              • M Offline
                mikesamo
                last edited by

                I dont think so… check with packet capture to get any debug output.

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mikesamo
                  last edited by

                  you should see someting like this in system log

                  php: /system_advanced_notifications.php: Could not send the message email.adress@gmail.com – Error: 530 5.7.0 Must issue a STARTTLS command first. h20sm7434523qck.24

                  1 Reply Last reply Reply Quote 0
                  • johnpozJ Offline
                    johnpoz LAYER 8 Global Moderator
                    last edited by

                    There is another thread about this
                    http://forum.pfsense.org/index.php/topic,31580.0.html

                    I am sending to my gmail address just fine, if your open on 25 you should be able to send to any mail server out there directly vs having to auth to one.  See other thread.

                    But what I did find trying to auth to one is that it does not seem to be sending any auth information at all.  I have not bothered to look deeper into the issue, since I just send directly to gmail server for notification to my gmail address.  So Im good - but if your trying to bounce off a smtp server to send to a different one that requires auth, I don't think its even sending it all.

                    BTW to test you can just php command in diagnostics.

                    file_notice("test","test");

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      axscode
                      last edited by

                      https://rcs.pfsense.org/projects/pfsense/repos/axscode-pfs/commits/2d74f1cf28a734fe1880dce7638bc1cbab558ab8

                      this will allow to use tls/ssl support for mail server like gmail and yahoo on port 465, i hope it will be reviewed and added.

                      Regards

                      1 Reply Last reply Reply Quote 0
                      • jimpJ Offline
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        @axscode:

                        https://rcs.pfsense.org/projects/pfsense/repos/axscode-pfs/commits/2d74f1cf28a734fe1880dce7638bc1cbab558ab8

                        this will allow to use tls/ssl support for mail server like gmail and yahoo on port 465, i hope it will be reviewed and added.

                        Did you submit a merge request for that? Or tell anyone else about it? We don't generally look at user repository commits at random.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

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