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

    Postfix mailrelay

    Scheduled Pinned Locked Moved pfSense Packages
    17 Posts 4 Posters 13.9k 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hmm.. could it be the Postfix "zombie blocker" feature?

      C

      1 Reply Last reply Reply Quote 0
      • P Offline
        podilarius
        last edited by

        From my POV it is desired. If a remote mail server cannot resend after 69 seconds, then it is probably spam to begin with. Then again, I use postgrey on my mail servers for that feature and not my firewall. I have not had a problem with gmail going though. The longest I have had to wait on an email was 5 minutes.

        1 Reply Last reply Reply Quote 0
        • marcellocM Offline
          marcelloc
          last edited by

          @Cybdex:

          Im currently using the postfix package to weed out the most of the spam and bogus relay attempts.

          Great news, you could congratulate postscreen for that.
          .
          .
          .
          @Cybdex:

          Hmm.. could it be the Postfix "zombie blocker" feature?

          I told you in all posts that it is a postscreen feature.
          take a look on postfix documentation to see how it works.
          http://www.postfix.org/POSTSCREEN_README.html

          And if you look in antispam tab of postfix package you can see a way to disable this feature.

          Take postscreen some hours. Every time you stop and restart postscreen, the whitelist is cleaned.

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • P Offline
            podilarius
            last edited by

            @marcelloc:

            Take postscreen some hours. Every time you stop and restart postscreen, the whitelist is cleaned.

            That is not always a good thing. This should probably be persistent across service restarts and reboots with a manual or scheduled cleaning of the while list. Even better if you could clean out entries that are older than a certain age.

            1 Reply Last reply Reply Quote 0
            • marcellocM Offline
              marcelloc
              last edited by

              It's done by postscreen, not by me.

              Before version 2.1 of this package, every apply postfix was killed and restarted.
              I've changed it to just a reload if services are up.

              Take a look on postscreen readme

              http://www.postfix.org/POSTSCREEN_README.html

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • P Offline
                podilarius
                last edited by

                If this is set:

                postscreen_cache_map                  (btree:$data_direc-tory/postscreen_cache)
                              Persistent storage  for  the  postscreen(8)  server
                              decisions.

                Will it not persist the temporary white list across server and service restarts?

                1 Reply Last reply Reply Quote 0
                • marcellocM Offline
                  marcelloc
                  last edited by

                  The location of this file in pfsense is /var/db/postfix/postscreen_cache.db

                  Postscreen readme says that it's a temporary white list, not persistent.

                  Temporary whitelist test
                  
                  The postscreen(8) daemon maintains a temporary whitelist for SMTP client IP addresses that have passed all the tests described below. The postscreen_cache_map parameter specifies the location of the temporary whitelist. The temporary whitelist is not used for SMTP client addresses that appear on the permanent access list.
                  

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

                    @podilarius:

                    @marcelloc:

                    Take postscreen some hours. Every time you stop and restart postscreen, the whitelist is cleaned.

                    That is not always a good thing. This should probably be persistent across service restarts and reboots with a manual or scheduled cleaning of the while list. Even better if you could clean out entries that are older than a certain age.

                    That is probably what stumbled me aswell, as during my testing of this "feature" the postfix service was restarted frequently (when changing options/blacklist and whatnot). If it would be a "approved list" saved for future referance, and possibly as you say a "age scrubbing" setting for this it would make things a lot smoother. (Or even a editable list)

                    However, disabling the "zombie blocker" seems to have fixed my gripe. It was not THAT clear for a "non guru" to sift through the documentation and realize that this feature was the culprit that caused "the default behaviour to reject every first connection".

                    If some day a feature that Podilarius describes here comes configurable and available, i would be happy to give it a new go :)

                    Thanks for your help guys :)

                    C

                    1 Reply Last reply Reply Quote 0
                    • marcellocM Offline
                      marcelloc
                      last edited by

                      The postfix package helps email admins to configure it.

                      All options where included after many hours reading postfix documentation but you need to know about smtp to understand what they mean.

                      If you go to ACLS/Filter Maps, you can whitelist some networks/domains in Client Access List.

                      All features discussed in this forum topic are available in this package.

                      Treinamentos de Elite: http://sys-squad.com

                      Help a community developer! ;D

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        podilarius
                        last edited by

                        @marcelloc:

                        The location of this file in pfsense is /var/db/postfix/postscreen_cache.db

                        Postscreen readme says that it's a temporary white list, not persistent.

                        I pulled what I posted from the README. So, the temporary white like might be persistent if set and will be cleared if not set? Documentation seems to not be clear on that. It might be temporary as in the age thing will remove entries. I cannot test this ATM … but should be something the maintainers of postscreen could clear up.

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