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

    Postfix - antispam and relay package

    Scheduled Pinned Locked Moved pfSense Packages
    855 Posts 136 Posters 1.2m 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.
    • E
      expert_az
      last edited by

      marcelloc,i'm going fetch recipients  from zimbra ldap,but as described on web gui to enable ldap fetch  p5-perl-ldap package must be installed.
      when i tried install p5-perl-ldap package from console i'm getting this error:

      Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.1-release/Latest/p5-perl-ldap.tbz: File unavailable (e.g., file not found, no access)
      pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.1-release/Latest/p5-perl-ldap.tbz' by URL

      any idea?

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

        @expert_az:

        any idea?

        try from my repo:

        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
        • E
          expert_az
          last edited by

          i get this output ,is this normal?

          Fetching http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-perl-ldap-0.4300.tbz… Done.
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          Fetching http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-XML-NamespaceSupport-1.11.tbz... Done.
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          Fetching http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-XML-SAX-0.96.tbz... Done.
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          Fetching http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-XML-Filter-BufferText-1.01.tbz... Done.
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          Fetching http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-XML-SAX-Writer-0.53.tbz... Done.
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          Fetching http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-GSSAPI-0.28.tbz... Done.
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          Fetching http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-Net-SSLeay-1.42.tbz... Done.
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          Fetching http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-IO-Socket-SSL-1.53.tbz... Done.
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          Fetching http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-URI-1.59.tbz... Done.
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          Fetching http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-Digest-HMAC-1.03.tbz... Done.
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          Fetching http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-Authen-SASL-2.15.tbz... Done.
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          Fetching http://e-sac.siteseguro.ws/packages/amd64/8/All/p5-Convert-ASN1-0.22.tbz... Done.
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt
          pkg_add: the package info for package 'postfix-2.8.7,1' is corrupt

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

            are you on amd64 or i386?

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

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • E
              expert_az
              last edited by

              2.0.1-RELEASE (amd64)
              built on Mon Dec 12 18:43:51 EST 2011
              FreeBSD 8.1-RELEASE-p6

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

                I've never seen this error during package install.

                check if pkg_info return two postfix installs or something.

                EDIT:

                Let me know if this feature works with zimbra ldap.
                It's written for Active directory ldap search.

                att,
                Marcello Coutinho

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

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • E
                  expert_az
                  last edited by

                  by the way i can't see postfix package describtion propoerly,see attached screeshot

                  bsdinstaller-2.0.2011.0913 BSD Installer mega-package
                  cyrus-sasl-2.1.25_1 RFC 2222 SASL (Simple Authentication and Security Layer)
                  daq-0.6.2          Data Acquisition abstraction library for snort 2.9+
                  gettext-0.18.1.1    GNU gettext package
                  libdnet-1.11_3      A simple interface to low level networking routines
                  libiconv-1.13.1_1  A character set conversion library
                  libnet11-1.1.2.1_3,1 A C library for creating IP packets
                  libpcap-1.1.1_1    Ubiquitous network traffic capture library
                  libspf2-1.2.9_1    Sender Rewriting Scheme 2 C Implementation
                  mysql-client-5.1.53 Multithreaded SQL database (client)
                  p5-Authen-SASL-2.15 Perl5 module for SASL authentication
                  p5-Convert-ASN1-0.22 Perl5 module to encode and decode ASN.1 data structures
                  p5-Digest-HMAC-1.03 Perl5 interface to HMAC Message-Digest Algorithms
                  p5-GSSAPI-0.28      Perl extension providing access to the GSSAPIv2 library
                  p5-IO-Socket-SSL-1.53 Perl5 interface to SSL sockets
                  p5-Net-SSLeay-1.42  Perl5 interface to SSL
                  p5-URI-1.59        Perl5 interface to Uniform Resource Identifier (URI) refere
                  p5-XML-Filter-BufferText-1.01 Filter to put all characters() in one event
                  p5-XML-NamespaceSupport-1.11 A simple generic namespace support class
                  p5-XML-SAX-0.96    Simple API for XML
                  p5-XML-SAX-Writer-0.53 SAX2 XML Writer
                  p5-perl-ldap-0.4300 A Client interface to LDAP (includes Net::LDAP)
                  pcre-8.21_1        Perl Compatible Regular Expressions library
                  perl-5.12.4_3      Practical Extraction and Report Language
                  perl-threaded-5.10.1_3 Practical Extraction and Report Language
                  pkg_info: the package info for package 'postfix-2.8.7,1' is corrupt
                  snort-2.9.0.5      Lightweight network intrusion detection system

                  postfix_status.JPG
                  postfix_status.JPG_thumb

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

                    That's the corrupt info you see on pkg_add.

                    if you want to try, this is the cmd to force postfix package reinstall

                    pkg_add -rf http://files.pfsense.org/packages/amd64/8/All/postfix-2.8.7%2c1.tbz

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

                    Help a community developer! ;D

                    1 Reply Last reply Reply Quote 0
                    • E
                      expert_az
                      last edited by

                      thank you marcelloc,
                      i will try it after operational hours.

                      1 Reply Last reply Reply Quote 0
                      • E
                        expert_az
                        last edited by

                        but it seems perl ldap installed?am i right?

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

                          @expert_az:

                          but it seems perl ldap installed?am i right?

                          yes.

                          p5-perl-ldap-0.4300 A Client interface to LDAP (includes Net::LDAP)

                          I saw you have two perl versions installed
                          perl-5.12.4_3      Practical Extraction and Report Language
                          perl-threaded-5.10.1_3 Practical Extraction and Report Language

                          If you have missing modules messages on this function, you will need to force a perl version on first line of the script.

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

                          Help a community developer! ;D

                          1 Reply Last reply Reply Quote 0
                          • Z
                            zlyzwy
                            last edited by

                            Hi,

                            I received the following error in Search mail.
                            Message:Status: hold
                            Log type:NOQUEUE

                            
                            Warning: sqlite_query(): no such column: mail_status.info in /usr/local/www/postfix.php on line 599 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603 Warning: sqlite_fetch_array() expects parameter 1 to be resource, boolean given in /usr/local/www/postfix.php on line 603
                            

                            Any idea how this will happen?

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

                              zlyzwy,

                              I'll try to include this check on next release.

                              NOQUEUE logs only messages that was rejected duing header receive, so it will not have hold status.

                              att,
                              Marcello Coutinho

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

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sensible
                                last edited by

                                Hi,

                                at first thank you for this postfix-package!

                                I updated the postfix-package from v.2.3.3_1  to v.2.3.4.
                                After update each client could only sent to email-domains which was included in the "Domains to Forward". No mails to other domains  was possibility. The error-message is 571 Relay denied.
                                I looked in the main.cf and found the different to the v.2.3.3_1:
                                v.2.3.3_1
                                smtpd_client_restrictions = check_client_access pcre:/usr/local/etc/postfix/cal_pcre,
                                                                check_client_access cidr:/usr/local/etc/postfix/cal_cidr,
                                                                permit

                                v.2.3.4
                                smtpd_client_restrictions = reject_unauth_destination,
                                                                check_sender_access hash:/usr/local/etc/postfix/sender_access,
                                                                check_client_access pcre:/usr/local/etc/postfix/cal_pcre,
                                                                check_client_access cidr:/usr/local/etc/postfix/cal_cidr
                                                                permit

                                After i added permit_mynetworks to smtpd_client_restrictions and restarted postfix on the commandline our clients could send Mails again.

                                Is this a bug in the v.2.3.4 or a feature, or forgot i to enter something in a new web-field? I yet added in "Access-List -> Client Access List -> MyNetworks 192.168.0.0/16 in the v.2.3.3-1, is there now a addional field in the webinterface to insert this to? I can't found any new fields.

                                To edit some  fields with the webinterface and not lose the change for smtpd_client_restrictions, i added  permit_my_networks in the /usr/local/pkg/postfix.inc

                                smtpd_client_restrictions = permit_mynetworks, reject_unauth_destination,
                                                                check_sender_access hash:/usr/local/etc/postfix/sender_access,
                                                                check_client_access pcre:/usr/local/etc/postfix/cal_pcre,
                                                                check_client_access cidr:/usr/local/etc/postfix/cal_cidr
                                                                RBLRBLRBL
                                Regards
                                Gerd

                                P.S. Sorry for my bad english!

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

                                  Sensible,

                                  Thanks for your detailed feedback,

                                  I'll check it as soon as possible.

                                  att,
                                  Marcello Coutinho

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

                                  Help a community developer! ;D

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sensible
                                    last edited by

                                    Hi,

                                    there is an other little mistake in the postfix-Package.

                                    In the tab "Recioients" is something wrong with the field "Frequency".
                                    If I add 5m (for five minutes) and look in the crontab, there is the following entry:

                                    *  *  *  */5  *  root  /usr/local/bin/php -q /usr/local/www/postfix_recipients.php

                                    but it should be

                                    */5  *  *  *  *  root  /usr/local/bin/php -q /usr/local/www/postfix_recipients.php

                                    Please, can you check this too?
                                    Thanks
                                    Gerd

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

                                      pkg v.2.3.4_1 is out with:

                                      • fixes on schedule checks

                                      • fixes on sender_client_restrictions

                                      • include more memory checks on amd64 to avoid php memory limit errors

                                      Gerd,

                                      Check if with this version, you have a working system without open relay or missing features.

                                      att,
                                      Marcello Coutinho

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

                                      Help a community developer! ;D

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Sensible
                                        last edited by

                                        Marcello,

                                        thanks for the new package.

                                        I have tested it, and it looks good.

                                        Gerd

                                        1 Reply Last reply Reply Quote 0
                                        • L
                                          LinuxTracker
                                          last edited by

                                          I'm preparing to move email services, from a hosting company to on site.
                                          (The MX records currently point to the hosting company.)

                                          Current config:
                                          Our pfSense+Postfix box is the LAN gateway for the mail server = x.x.1.199

                                          (The rest of LAN uses a SonicWall gateway = x.x.1.1)

                                          I have confirmed Postfix receives mail and forwards it to our email server.

                                          There will be one email server; a Win2k8 box running MailEnable = x.x.1.29

                                          I can securely relay off-site email clients through the email server - over port 587 - via the pfSense gateway.

                                          My Problem:
                                          We have users in the field, whose email clients relayed through the existing SMTP server - via Port 25.
                                          It will take time to round up those users and change their configs.

                                          Since Port 25 is pointed at the loopback, I can't figure out how to setup a Port 25 relay for them.

                                          If I bring relay traffic through the x.x.1.1 gateway; the email server gets it but is pointed at the wrong gateway to reply properly.

                                          I'm uncertain how to proceed. Can someone point me in the right direction?

                                          Thanks.

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

                                            @LinuxTracker:

                                            Since Port 25 is pointed at the loopback, I can't figure out how to setup a Port 25 relay for them.

                                            use a port forward from psense external/internal ip to loopback.
                                            I use these config to listen postfix on virtual/carp ips

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

                                            Help a community developer! ;D

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