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

    Postfix with Carp

    Scheduled Pinned Locked Moved pfSense Packages
    33 Posts 2 Posters 7.6k 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.
    • marcellocM
      marcelloc
      last edited by

      @mschiek01:

      The only other problem I am having is the "Enable LDAP fetch" does not appear to be working for me. I installed per the hint p5-perl-ldap but I do not see any errors in the log. When I click the "relay recipents" is just shows the file location and nothing else.

      Check update frequency sample and run it from console to see what happens:
      /usr/local/bin/php -q /usr/local/www/postfix_recipients.php

      The output must show each AD server configured

      extracting from server_you_configured…(total_of_emails_retrieved)

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

      Help a community developer! ;D

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

        From the command line I receive "Can't locate NET/LDAP.PM" with some additional debug information.

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

          There are missing modules.

          try to reinstall perl ldap module.

          i386
          pkg_add -r http://e-sac.siteseguro.ws/packages/8/All/p5-perl-ldap-0.4300.tbz

          amd64
          pkg_add -r http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-perl-ldap-0.4300.tbz

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

          Help a community developer! ;D

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

            I have tried removing the package via pkg_delete and reinstalling.  
            When I do reinstall I do see an error pkg_add: warning: package 'p5-perl-ldap-0.4300' requires 'perl-5.12.4_3, but 'perl-5.12.3' is installed

            and

            pkg_add: warning: package 'p5-perl-ldap-0.4300' requires 'perl-5.12.4_3, but 'perl-5.12.4' is installed

            perl-5.12.4_3 is installed as it is required for some other packages.

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

              Its just a warning, not an error.

              try to fetch lpad info again
              /usr/local/bin/php -q /usr/local/www/postfix_recipients.php

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

              Help a community developer! ;D

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

                Same error

                Can't locate Net/LDAP.PM in @inc (@inc contains: /usr/local/lib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/local/lib/perl5/5.10.1 .) at /usr/local/etc/postfix/adexport.pl line 41.
                Begin failed

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

                  Do you have any other packages using perl?

                  you many need to apply 'force perl version' patch until I release a new version
                  http://forum.pfsense.org/index.php/topic,45143.msg235361.html#msg235361

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

                  Help a community developer! ;D

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

                    Packages using perl-5.12.4_3

                    Squid
                    SquidGuard
                    lightsquid

                    Thanks for you time on this!

                    Please let me know how I can donate to the project.

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

                      If you want to donate to pfsense project,

                      http://www.pfsense.org/index.php?option=com_content&task=view&id=69&Itemid=80

                      If you want to donate this package maintainer  ;D my paypal account is marcellocoutinho@gmail.com

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

                      Help a community developer! ;D

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

                        Thanks for the info.

                        On forcing the file version per: "you many need to apply 'force perl version' patch until I release a new version
                        http://forum.pfsense.org/index.php/topic,45143.msg235361.html#msg235361"

                        Which file do I need to edit the path?

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

                          @mschiek01:

                          Thanks for the info.

                          On forcing the file version per: "you many need to apply 'force perl version' patch until I release a new version
                          http://forum.pfsense.org/index.php/topic,45143.msg235361.html#msg235361"

                          Which file do I need to edit the path?

                          The first line of /usr/local/etc/postfix/adexport.pl

                          The perl version should be 5.12.4.

                          ls /usr/local/bin/perl*  will show all perl versions you have on your system.

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

                          Help a community developer! ;D

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

                            That fixed the error.

                            Now the run from the command line shows:
                            extracting from 'server name" …/usr/local/etc/postfix.pl: not found.
                            There is no backup file for "server"

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

                              The first line show be this way

                              #!/usr/local/bin/perl5.12.4 -w

                              Can you post the output of

                              ls -l /usr/local/bin/perl5*

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

                              Help a community developer! ;D

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

                                Thanks- I had fixed the error.  I had a spelling error on the perl version in the file.

                                The command seems to be working now although I am getting a error: erro while binding:The wrong password was supplied or the SASL credentials could not be processed.

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

                                  Can you reset configured users password and re check Active directory info you configured?

                                  Field hint
                                  Hostname:
                                  dc1.mysite.com

                                  Domain:
                                  dc=mysite,dc=com

                                  Username:
                                  cn=antispam,cn=Users

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

                                  Help a community developer! ;D

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

                                    Same error.

                                    I even created a new user and tried it.  Also tried administrator.

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

                                      Just to be sure you understood user field,

                                      cn=antispam,cn=Users

                                      means that user antispam is in Users container

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

                                      Help a community developer! ;D

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

                                        yes user "antispam" is in the users container on the dc.

                                        Here is what I have configured.

                                        first box = "server_name.domain_name.local"
                                        second box = "domain.local"
                                        third box = "antispam"

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

                                          @mschiek01:

                                          yes user "antispam" is in the users container on the dc.

                                          Here is what I have configured.

                                          first box = "server_name.domain_name.local"
                                          second box = "domain.local"
                                          third box = "antispam"

                                          change to
                                          first box = "server_name.domain_name.local"
                                          second box = "cn=domain,cn=local"
                                          third box = "cn=antispam,cn=Users"

                                          without quotes

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

                                          Help a community developer! ;D

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

                                            Same error.

                                            Sent you a pm with the exact configuration.

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