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

    Is your email notification working?

    Scheduled Pinned Locked Moved General pfSense Questions
    24 Posts 7 Posters 6.7k 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.
    • J Offline
      JohnnyBeGood
      last edited by

      Hi all,

      My Gmail notification (System > Advanced > Notifications) worked for a long time ie. I would get email when pfsense rebooted. Now it doesn't work, even when I try to send test notification noting happens, I never get email.
      Here's what's in log after sending test email

      Feb 25 15:10:34 php-fpm[82918]: /system_advanced_notifications.php: Could not send the message to myusername@gmail.com -- Error: 534-5.7.14 0N5nojcbVVhnS6I4AyveT4ZdQnbaSXW_NOXVnYOSuz4gEY5vr5SeAYJ0NaNlZUj5_tkcj2 
      

      I'm on v2.2
      Please post your working configuration.

      Here's what worked for me so far:

      I like to fill my tub up with water, then turn the shower on and act like I'm in a submarine that's been hit!

      1 Reply Last reply Reply Quote 0
      • K Offline
        kejianshi
        last edited by

        Yes - Frequently.

        Maybe its landing in junk or some other?

        1 Reply Last reply Reply Quote 0
        • J Offline
          JohnnyBeGood
          last edited by

          @kejianshi:

          Yes - Frequently.

          Maybe its landing in junk or some other?

          Thanks for the reply!

          My From e-mail address and Notification E-Mail address are both same Gmail address so it does not get blocked.
          Also, I doubled checked spam folder.

          I like to fill my tub up with water, then turn the shower on and act like I'm in a submarine that's been hit!

          1 Reply Last reply Reply Quote 0
          • K Offline
            kejianshi
            last edited by

            Hmmmm - username / password?

            1 Reply Last reply Reply Quote 0
            • H Offline
              hda
              last edited by

              Error
              534 : Message too big.

              1 Reply Last reply Reply Quote 0
              • K Offline
                kejianshi
                last edited by

                What kind of message would pfsense send that is too big for gmail?

                1 Reply Last reply Reply Quote 0
                • H Offline
                  hda
                  last edited by

                  Dunno. Maybe in header info from the SSL ?
                  I won't test… Try smtps again after test with 25 and/or 587 ?

                  But, smtps 465 seems a deprecated method. Go for 587 if you must avoid 25.

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    JohnnyBeGood
                    last edited by

                    @kejianshi:

                    Hmmmm - username / password?

                    I've re-entered email and password saved and did test, no joy.
                    Went on https://mail.google.com and using same login info I was able to check my email.

                    I like to fill my tub up with water, then turn the shower on and act like I'm in a submarine that's been hit!

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      kejianshi
                      last edited by

                      http://serverfault.com/questions/635139/how-to-fix-send-mail-authorization-failed-534-5-7-14

                      There is an answer there…  Not sure if it will work for you.

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        JohnnyBeGood
                        last edited by

                        @hda:

                        Dunno. Maybe in header info from the SSL ?
                        I won't test… Try smtps again after test with 25 and/or 587 ?

                        But, smtps 465 seems a depriciated method. Go for 587 if you must avoid 25.

                        Changed to port 587 and now I'm getting:

                        
                        Feb 25 16:59:32 php-fpm[5995]: /system_advanced_notifications.php: Could not send the message to myusername@gmail.com -- Error: could not connect to the host "smtp.gmail.com": ?? 
                        
                        

                        I like to fill my tub up with water, then turn the shower on and act like I'm in a submarine that's been hit!

                        1 Reply Last reply Reply Quote 0
                        • K Offline
                          kejianshi
                          last edited by

                          Change back and try the solution in the link I sent previously.

                          1 Reply Last reply Reply Quote 0
                          • H Offline
                            hda
                            last edited by

                            The better supported receiver method is just port 25 with or without STARTTLS

                            1 Reply Last reply Reply Quote 0
                            • K Offline
                              kejianshi
                              last edited by

                              Sending on port 25 may probably be a ISP nightmare depending on who you ISP is.

                              1 Reply Last reply Reply Quote 0
                              • H Offline
                                hda
                                last edited by

                                Oh, then the best method for the future is submission, 587  :D

                                1 Reply Last reply Reply Quote 0
                                • K Offline
                                  kejianshi
                                  last edited by

                                  perhaps, but mine is set up same as his with no problems.  Quite odd.

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    deltix
                                    last edited by

                                    Usually when I install new piece of hardware that supports email notifications I create for that specific customer new gmail account for notifications use only. Many times I need to do this to get it working properly

                                    https://support.google.com/accounts/answer/6010255?hl=en

                                    It's more reliable to use port 587 then 465. Many devices still do not support SSL.

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      JohnnyBeGood
                                      last edited by

                                      kejianshi you are the man!

                                      Its working now!

                                      As suggested in that post, went to www.google.com/settings/security
                                      and "Access for less secure apps" was turned off, turned it on and voila started working right away.
                                      I searched google but never came across this setting.

                                      Thanks again!

                                      I like to fill my tub up with water, then turn the shower on and act like I'm in a submarine that's been hit!

                                      1 Reply Last reply Reply Quote 0
                                      • K Offline
                                        kejianshi
                                        last edited by

                                        I did something right?  Must be my lucky day…

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          JohnnyBeGood
                                          last edited by

                                          @kejianshi:

                                          I did something right?  Must be my lucky day…

                                          You did a right thing by posting that link  ;)

                                          I like to fill my tub up with water, then turn the shower on and act like I'm in a submarine that's been hit!

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            JohnnyBeGood
                                            last edited by

                                            @deltix:

                                            Usually when I install new piece of hardware that supports email notifications I create for that specific customer new gmail account for notifications use only. Many times I need to do this to get it working properly

                                            https://support.google.com/accounts/answer/6010255?hl=en

                                            It's more reliable to use port 587 then 465. Many devices still do not support SSL.

                                            Thanks!

                                            I like to fill my tub up with water, then turn the shower on and act like I'm in a submarine that's been hit!

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