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

    Don't receive email notifications

    Scheduled Pinned Locked Moved General pfSense Questions
    25 Posts 6 Posters 1.8k 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
      Sessa45 @Gertjan
      last edited by

      @Gertjan said in Don't receive email notifications:

      You could also try to change the System => Advanced => Notifications for a gmail email address - I know that that one will work - it does for me.

      Alright. I have created an gmail e-mail account and tried to send the test e-mail after i have set the following configuration:

      smtp_config.PNG

      I have followed the instruction which are given on the following site which you have given me:

      @Gertjan said in Don't receive email notifications:

      How to set up gmail for smtp relaying : start up your memory extension and type gmail smtp 465

      SMTP:
      
      Postausgangsserver: smtp.googlemail.com
      
      Port: 465 (SSL) oder 587 (TLS/STARTTLS)
      

      When i use port 465, i receive the following message when i try tp send the test mail:
      Could not send the message to test.pfsense2019@gmail.com -- Error: Failed to connect to smtp.googlemail.com:465 [SMTP: Invalid response code received from server (code: -1, response: )]

      When i use port 587:
      Could not send the message to test.pfsense2019@gmail.com -- Error: Failed to set sender: admin@pfsense.de [SMTP: Invalid response code received from server (code: 530, response: 5.7.0 Must issue a STARTTLS command first. m7sm39593166wmi.18 - gsmtp)]

      What do i wrong?

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

        @Sessa45 said in Don't receive email notifications:

        What do i wrong?

        fd216e3c-2f66-4c9d-8680-0f99a9da4afb-image.png

        According to the English doc the URL is smtp.gmail.com

        See point 2 : I don't understand why you didn't enter a login mail and password .....
        These days, you couldn't and you shouldn't send and receive mails without identification/authentication.

        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 Reply Quote 0
        • S
          Sessa45 @Gertjan
          last edited by

          @Gertjan said in Don't receive email notifications:

          @Sessa45 said in Don't receive email notifications:

          What do i wrong?

          fd216e3c-2f66-4c9d-8680-0f99a9da4afb-image.png

          According to the English doc the URL is smtp.gmail.com

          See point 2 : I don't understand why you didn't enter a login mail and password .....
          These days, you couldn't and you shouldn't send and receive mails without identification/authentication.

          Even if i use this configuration i received an error message when i try to send a test mail:

          Could not send the message to test.pfsense2019@gmail.com -- Error: Failed to connect to smtp.gmail.com:465 [SMTP: Invalid response code received from server (code: -1, response: )]

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

            When you use your gmail address and password, pfSense should tell you this (using a red background) :

            Could not send the message to gertjan@kroeb.me -- Error: LOGIN authentication failure [SMTP: Invalid response code received from server (code: 534, response: 5.7.9 Application-specific password required. Learn more at 5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor v8sm35044038wra.79 - gsmtp)]

            It's URL reading time again.

            You have to generate a special password for your pfSense Notification setup.
            One done :

            86f44830-faf1-4b96-bc60-f0fadc065cf7-image.png

            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 Reply Quote 0
            • S
              Sessa45 @Gertjan
              last edited by

              @Gertjan said in Don't receive email notifications:

              It's URL reading time again.

              Done. I set an App password in my gmail account and take this in my pfSense configuration. Unfortunately, i received the same error.

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

                Show these again :

                f0f549d1-0478-475a-8d02-db73420143fd-image.png

                and compare with mine ....

                Btw :
                866185ee-7a7b-4871-9a35-bb9584e8a3f7-image.png

                means : your pfsense can't connect to smtp.gmail.com (port 465). You can't connect - which is different as being refused for bas user or password.
                Some one is blocking you somewhere in between - upstream.

                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
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by johnpoz

                  Do a simple check to that port...

                  If pfsense can resolve and talk to that port you should get back successful test
                  testport.png

                  You can test ipv6 as well
                  testipv6aswell.png

                  You could also do a packet capture while your testing or trying to send the mail to what is going on

                  Here is sniff while testing port - you can see it opens syn, and then closes the connection with fin

                  packetcapture.png

                  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
                  • S
                    Sessa45
                    last edited by

                    Hi Guys!

                    Finally, I received the test e-mail and the report emails with Gmail as the e-mail server.

                    I've tried to understand how e-mail communication works, but I do not understand (maybe because I'm not the e-mail specialist on earth ^^), what differences there are in the processes you already have here have explained ...

                    Not using port 25 = standard port and not TLS encrypted
                    test mail is not report = both uses different code / language
                    auth with e-mail and pw = to increase the security

                    Am i right with this?
                    So the next step is to configure the mail server on port 465 / TLS and configure auth with name and pw?

                    Thanks and best regards!

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

                      Correct, not many home isp allows 25 out, if they do allow it - its only to their smtp servers on their network.

                      To send to gmail use 465, and setup an app password.

                      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
                      • Mr_AJM
                        Mr_AJ
                        last edited by

                        Good info, I'll have to try this tonight.

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