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.
    • M
      mschiek01
      last edited by

      Is it possible to do this?

      The gui will always set the ip on the wan and or lan to the box ip not the carp ip. Is it possible to set this via the custom config?

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

        mschiek01,

        Listen postfix on localhost and then create a nat rule from carp ip to 127.0.0.1.

        att,
        Marcello Coutinho

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

        Help a community developer! ;D

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

          When you said a "Nat Rule" do you mean a "NAT PORT FOWARD" or a firewall rule?

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

            Both  :)

            Nat rdr needs a firewall rule to work.

            During nat config, you have the option to associate it with a firewall rule.

            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 was able to get it working.

              Another question, Is there a way to set the smtp banner?

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

                Paste any custom config on custom main.cf option.

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

                Help a community developer! ;D

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

                  for the smtp banner how would I set that with the custom feature?  What would be the command?

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

                    Thanks for the config tip I figured it out and used "smtpd_banner =" to fix it.

                    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.

                    1 Reply Last reply Reply Quote 0
                    • 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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.