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

    MailScanner - perl modules missing?

    Scheduled Pinned Locked Moved pfSense Packages
    16 Posts 5 Posters 11.7k 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.
    • gwhynottG
      gwhynott
      last edited by

      hate replying to my own posts repeatedly… 8)

      fixed it,  i think..  i edited the top of mailscanner (/usr/local/sbin/mailscanner) from:

      #!/usr/bin/perl -U -I/usr/local/lib/MailScanner

      to:

      #!/usr/local/bin/perl5.12.4 -U -I/usr/local/lib/MailScanner

      to force it to use the .4 version and not the site perl.

      not sure why i seem to be the only one with this issue tho.  8)...

      take care!
      greg

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

        Hi,

        This happens because perl modules are installed under perl version dir.

        If you have more then one version of perl on system, you need to remove other perl version and reinstall mailscanner or force mailscanner version just like you did.

        I'll force perl version as well perl install to prevent this error.

        Thanks for your feedback.

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

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • gwhynottG
          gwhynott
          last edited by

          @marcelloc:

          I'll force perl version as well perl install to prevent this error.
          Thanks for your feedback.

          Hi Marcello,

          Just as an FYI I had to do the same with the spamassassin script (force perl version) as I was getting the same error:
          (477): spamassassin -D –lint
          Can't locate NetAddr/IP.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.12.4 /usr/local/lib/perl5/5.12.3/BSDPAN /usr/local/lib/perl5/site_perl/5.12.3/mach /usr/local/lib/perl5/site_perl/5.12.3 /usr/local/lib/perl5/5.12.3/mach /usr/local/lib/perl5/5.12.3) at /usr/local/lib/perl5/site_perl/5.12.4/Mail/SpamAssassin/NetSet.pm line 25.

          looks good now,  till I reboot..  not sure how to make these changes stick,  if they don't.

          I didn't want to remove the installed perl as I'm not sure what I'd break if i did (other packages or system dependencies).

          thanks again,
          -g

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

            what pfsense packages do you have installed?

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

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • gwhynottG
              gwhynott
              last edited by

              @marcelloc:

              what pfsense packages do you have installed?

              HAVP av
              LightSquid
              mailreport
              mailscanner-dev
              mtr-nox11
              pfblocker
              postfix forwarder
              RRD Summary
              Squid3

              These are not the only packages that were on the system,  i've looked at/installed others then removed them after determining they were not of value to us.

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

                LightSquid
                mailscanner-dev
                Squid3

                require perl.

                For now, keep file hacks until I have time to test and release a fix forcing perl version.

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

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • gwhynottG
                  gwhynott
                  last edited by

                  will do.  I'll provide feedback when i see you rev the code.

                  take care and thanks,
                  greg

                  1 Reply Last reply Reply Quote 0
                  • T
                    tritron
                    last edited by

                    Any update on this ? I beive that many people have the same issue

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      Out of curiosity, try running:

                      perl-after-upgrade
                      

                      From the shell. See if that helps.

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • I
                        informatica_cmav
                        last edited by

                        Hello everybody!
                        I am new in pfsense and I am trying to install mailscanner. I have in the same PF Box (that is a VM) squid, dansguardian, postfix FW. I edit the  /usr/local/sbin/mailscanner and alredy have the right perl version perl5.12.4. But when I try to start mailscanner with /usr/local/etc/rc.d/mailscanner start I have :

                        
                        Starting mailscanner.
                        Can't load '/usr/local/lib/perl5/site_perl/5.12.4/mach/auto/Filesys/Df/Df.so' for module Filesys::Df: /usr/local/lib/perl5/site_perl/5.12.4/mach/auto/Filesys/Df/Df.so: Undefined symbol "PL_stack_max" at /usr/local/lib/perl5/5.12.4/mach/DynaLoader.pm line 200.
                         at /usr/local/sbin/mailscanner line 91
                        Compilation failed in require at /usr/local/sbin/mailscanner line 91.
                        BEGIN failed--compilation aborted at /usr/local/sbin/mailscanner line 91.
                        /usr/local/etc/rc.d/mailscanner: WARNING: failed to start mailscanner
                        
                        

                        I think the problem is with this "PL_stack_max" on DynaLoader.pm and search on google but I can´t figure out what is the problem

                        I am using :
                        2.0.1-RELEASE (amd64)
                        mailscanner-dev 4.83.5 pkg v.0.2.1
                        postfix forwarder 2.8.7,1 pkg v.2.3.4_1  (starts ok)

                        thanks in advance

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

                          Can you check if these modules were installed on the same dir?

                          Can you try a clean install only with postfix +mailscanner?

                          If you speak portuguese, take a look on intenational portuguese forum too.

                          att,
                          Marcello Coutinho

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

                          Help a community developer! ;D

                          1 Reply Last reply Reply Quote 0
                          • I
                            informatica_cmav
                            last edited by

                            Hello Marcello (sorry but I saw so many of your posts here that I feel that I konw You, by the way Great Job Man)

                            How can I see if modules are in the same dir? (as I say i am new on PFSense and FreeBSD) where this modules are?

                            This is a VM tomorrow I can try to create a clean install only with this 2 modules

                            Do you install mailscanner on x64 and works OK?

                            I speak portuguese but I find this topic and decide to try here. But I will create a topic in Portuguese too!

                            Thanks
                            Guilherme

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

                              @informatica_cmav:

                              Do you install mailscanner on x64 and works OK?

                              all my mailscanners are on x64.

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

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • I
                                informatica_cmav
                                last edited by

                                In a fresh install with just Mailscanner and Postfix Forward works OK

                                Guilherme

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