Navigation

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

    Mailscanner + spamassassin + clamav package

    pfSense Packages
    54
    313
    162013
    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.
    • I
      Ivart last edited by

      Hello Marcelloc, after update mailscanner fails with SpamAssassin, and I think not scanning messages anymore.
      Maillog showing messages below in loop.

      MailScanner E-Mail Virus Scanner version 4.84.5 starting…
      MailScanner[99955]: Reading configuration file /usr/pbi/mailscanner-i386/etc/MailScanner/MailScanner.conf
      MailScanner[99955]: Reading configuration file /usr/pbi/mailscanner-i386/etc/MailScanner/conf.d/README
      MailScanner[99955]: Read 869 hostnames from the phishing whitelist
      MailScanner[99955]: Read 5435 hostnames from the phishing blacklists
      MailScanner[99955]: Message Content Protection SpamAssassin installation could not be found

      1 Reply Last reply Reply Quote 0
      • M
        m.mascheroni last edited by

        Hi Marcello, how can i totally disable Attachment scan and replace?

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

          @marcelloc:

          I could get it working only if I change user to root.

          I'll keep trying to use it with unprivileged user.

          Have you found any solution for clamd error?

          1 Reply Last reply Reply Quote 0
          • M
            m.mascheroni last edited by

            @m.mascheroni:

            Hi Marcello, how can i totally disable Attachment scan and replace?

            Setting Maximum Archive depth to 0 did the trick.
            A reboot is also necessary because somehow a service restart throw an error not having permission to stop and restart postfix.

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

              I've still problems with starting MailScanner.

              I did a fresh install of pfSense 2.1 and restored my config. But still a red cross for MailScanner.

              When I start MailScanner manually, I get these messages:

              Stopping mailscanner.
              Waiting for PIDS: 8725.
              Starting mailscanner.
              /usr/pbi/mailscanner-i386/libexec/MailScanner/mailscanner_create_locks: not found
              Error: Attempt to create locks in /var/spool/MailScanner/incoming/Locks failed!
              /usr/pbi/mailscanner-i386/libexec/MailScanner/mailscanner_create_locks: not found
              Error: Attempt to create locks in /var/spool/MailScanner/incoming/Locks failed!

              I believe the permissions on the Locks directory are right.

              drwxr-xr-x  2 postfix  wheel  512 Dec 17 21:37 Locks

              Pls advice.

              Bob

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

                I'm not getting this folder permission error but I've pushed fixes to service status and pyzor checks.

                Try to reinstall the package.

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

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • C
                  capitangiaco last edited by

                  Hi

                  I've upgrade the mailscanner pkg to 4.84.5_3 pkg v.0.2.4 but I've still problems with spamassassin.
                  If I turn on spam check, every MailScanner children go zombie and from logs I can only see:
                  mailscanner: Process did not exit cleanly, returned 0 with signal 11
                  If I try /usr/pbi/mailscanner-i386/bin/spamassassin –lint I don't see syntax error
                  The daemon is running:

                  ps aux | grep spamd

                  root    60399  0.0  0.8 36664 34000  ??  Ss    3Dec13  4:16.37 /usr/pbi/mailscanner-i386/bin/spamd -c -d -r /var/run/spamd/spamd.pid (perl)
                  root    70258  0.0  0.9 37688 34692  ??  I    3Dec13  0:02.40 spamd child (perl)
                  root    70542  0.0  0.8 36664 34000  ??  I    3Dec13  0:02.44 spamd child (perl)

                  I don't know what to try...
                  There is the way to pass custom directives to mailscanner ?

                  thanks

                  Giacomo

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

                    Disable pyzor checks and see if spamassassin starts working.

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

                    Help a community developer! ;D

                    1 Reply Last reply Reply Quote 0
                    • C
                      capitangiaco last edited by

                      @marcelloc:

                      Disable pyzor checks and see if spamassassin starts working.

                      negative, same problem…
                      thanks

                      Giacomo

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

                        What you get with

                        Spamassassin –lint

                        And sa-update

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

                        Help a community developer! ;D

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

                          Hi Marcello,

                          I did reinstall the latest mailscanner, but still not able to start MailScanner. (remove and install)

                          /usr/local/etc/rc.d/mailscanner onerestart
                          mailscanner not running? (check /var/run/MailScanner.pid).
                          Starting mailscanner.
                          eval: /usr/pbi/mailscanner-i386/sbin/mailscanner: not found

                          ls -l /usr/pbi/mailscanner-i386/sbin/mailscanner
                          -r-xr-xr-x  1 root  wheel  67431 Dec  6 17:04 /usr/pbi/mailscanner-i386/sbin/mailscanner

                          ps -aux | grep MailScanner
                          postfix  4262  0.0  1.2 27712 24872  ??  INs  Tue08PM  0:00.02 MailScanner: master waiting for children, sleeping (perl5.16.3)
                          postfix  4589  0.0  2.8 61108 58584  ??  SN  Tue08PM  0:20.49 MailScanner: waiting for messages (perl5.16.3)
                          postfix 21247  0.0  2.8 61108 58580  ??  SN  Tue08PM  0:19.67 MailScanner: waiting for messages (perl5.16.3)
                          postfix 28672  0.0  2.8 61108 58580  ??  SN  Tue08PM  0:20.55 MailScanner: waiting for messages (perl5.16.3)
                          postfix 37414  0.0  2.8 61108 58580  ??  SN  Tue08PM  0:19.78 MailScanner: waiting for messages (perl5.16.3)
                          postfix 38894  0.0  2.8 61108 58580  ??  SN  Tue08PM  0:19.59 MailScanner: waiting for messages (perl5.16.3)
                          postfix 39779  0.0  1.2 27712 25060  ??  Is  Tue08PM  0:00.02 MailScanner: master waiting for children, sleeping (perl5.16.3)
                          postfix 39788  0.0  2.8 61108 58724  ??  S    Tue08PM  0:21.14 MailScanner: waiting for messages (perl5.16.3)
                          postfix 41053  0.0  2.8 61108 58720  ??  S    Tue08PM  0:20.84 MailScanner: waiting for messages (perl5.16.3)
                          postfix 42573  0.0  2.8 61108 58724  ??  S    Tue08PM  0:19.89 MailScanner: waiting for messages (perl5.16.3)
                          postfix 45571  0.0  1.2 27712 25060  ??  INs  8:34AM  0:00.02 MailScanner: master waiting for children, sleeping (perl5.16.3)
                          postfix 45822  0.0  2.8 61108 58640  ??  SN    8:34AM  0:13.29 MailScanner: waiting for messages (perl5.16.3)
                          postfix 46515  0.0  2.8 61108 58720  ??  SN    8:34AM  0:13.29 MailScanner: waiting for messages (perl5.16.3)
                          postfix 47267  0.0  2.8 61108 58720  ??  S    Tue08PM  0:20.13 MailScanner: waiting for messages (perl5.16.3)
                          postfix 47560  0.0  2.8 61108 58720  ??  SN    8:35AM  0:13.38 MailScanner: waiting for messages (perl5.16.3)
                          postfix 47883  0.0  2.8 61108 58720  ??  SN    8:35AM  0:13.07 MailScanner: waiting for messages (perl5.16.3)
                          postfix 49200  0.0  2.8 61108 58720  ??  SN    8:35AM  0:12.99 MailScanner: waiting for messages (perl5.16.3)
                          postfix 51141  0.0  2.8 61108 58720  ??  S    Tue08PM  0:20.76 MailScanner: waiting for messages (perl5.16.3)
                          postfix 63879  0.0  1.2 27712 25060  ??  INs  8:36AM  0:00.02 MailScanner: master waiting for children, sleeping (perl5.16.3)
                          postfix 63908  0.0  2.8 61108 58720  ??  SN    8:36AM  0:13.31 MailScanner: waiting for messages (perl5.16.3)
                          postfix 65098  0.0  2.8 61108 58720  ??  SN    8:36AM  0:13.19 MailScanner: waiting for messages (perl5.16.3)
                          postfix 65636  0.0  2.8 61108 58720  ??  SN    8:36AM  0:13.24 MailScanner: waiting for messages (perl5.16.3)
                          postfix 66067  0.0  2.8 61108 58720  ??  SN    8:36AM  0:13.07 MailScanner: waiting for messages (perl5.16.3)
                          postfix 66291  0.0  2.8 61108 58720  ??  SN    8:36AM  0:13.02 MailScanner: waiting for messages (perl5.16.3)
                          root    79263  0.0  0.1  3468  1252  0  S+    2:42PM  0:00.00 grep MailScanner

                          spamassassin –lint
                          Dec 20 14:44:50.920 [19574] warn: config: failed to parse line, skipping, in "/usr/pbi/mailscanner-i386/etc/mail/spamassassin/mailscanner.cf": use_auto_whitelist 0
                          Dec 20 14:44:55.677 [19574] warn: lint: 1 issues detected, please rerun with debug enabled for more information

                          Hope this will give you a little bit inside.

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

                            Mailscanner daemon should be perl_mailscanner instead of perl 5.16. Are you sure you reinstalled it?

                            Amd64 version still has perl 5.14

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

                            Help a community developer! ;D

                            1 Reply Last reply Reply Quote 0
                            • C
                              capitangiaco last edited by

                              @marcelloc:

                              What you get with

                              Spamassassin –lint

                              And sa-update

                              /usr/pbi/mailscanner-i386/bin/spamassassin –lint

                              /usr/pbi/mailscanner-i386/bin/sa-update

                              it seems all normal.

                              Giacomo

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

                                Marcello,

                                I did a fresh install with pfSense 2.1 install pfblocker, nrpe, postfix forwarder, mailscanner and openvpn.
                                At your advice I did remove mailscanner and reinstalled it again.

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

                                  @ikbendeman:

                                  Marcello,

                                  I did a fresh install with pfSense 2.1 install pfblocker, nrpe, postfix forwarder, mailscanner and openvpn.
                                  At your advice I did remove mailscanner and reinstalled it again.

                                  Is it working now?

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

                                  Help a community developer! ;D

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

                                    Marcello,

                                    No it's not working… upgrade from previous pfSense release also fails.

                                    I don't understand why so few people experience these problems.

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

                                      Marcello,

                                      I just want to inform you that did a reboot of the firewall and now all services are green including mailscanner.

                                      Thanks for your support.

                                      Bob

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        ckoehler last edited by

                                        Dear all,

                                        I have running pfSense 2.1 with Postfix Forwarder 2.10.2 pkg v2.3.7 and MailScanner 4.84.5_3 pkg v.0.2.4. Postfix is set in the section of "Third part Antispam Settings" to make use of MailScanner in "Auto mode".

                                        When having a look into Status -> Services, I see, that MailScanner is not startet (postfix is startet).
                                        A 'ps -aux' did not show a running MailScanner process.

                                        The output of:
                                        ls -l /usr/pbi/mailscanner-amd64/etc/rc.d/mailscanner
                                        shows an empty file

                                        Is this correct?
                                        As far as I know, it should be the startup script.

                                        Any ideas how to solve the problem?

                                        Thanks alot and best regards,
                                        Christian

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

                                          Anyone,

                                          I'm facing a problem with receiving mails from a customer who send their mail via a Trend Micro service.

                                          My firewall is accepting mail on port 25 except for this customer I see blocked rules in the firewall log.

                                          e.g.

                                          block Jan 6 18:09:00 WAN 150.70.239.23:54950 192.168.1.254:25 TCP:S
                                          block Jan 6 18:09:03 WAN 150.70.239.23:54950 192.168.1.254:25 TCP:S

                                          Add the easy rule doesn't fix the problem.

                                          I have postfix forwarder and the mailscanner enabled. I also add all Trend Micro related ip addresses to the firewall.

                                          Please advice to start receiving these Trend Micro routed mails.

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

                                            @marcelloc:

                                            I could get it working only if I change user to root.

                                            I'll keep trying to use it with unprivileged user.

                                            marcelloc, any solution for clamd permission problem?

                                            1 Reply Last reply Reply Quote 0
                                            • J
                                              jaredadams last edited by

                                              So my company started getting the cryptolocker virus being sent through spam email recently.  Definitly need an email scanner now.  Saw this package, but it looks really in depth.  Is there any documentation out there other than the random stuff in this thread?

                                              Found this thread via the package info link in the packages plugin.

                                              1 Reply Last reply Reply Quote 0
                                              • C
                                                ckoehler last edited by

                                                Hi,

                                                can someone give me the location of the mailscanner startup script and the size of the file + permissions?

                                                It seems so as my startup script ist empty.

                                                Thanks alot and best regards,
                                                Christian

                                                1 Reply Last reply Reply Quote 0
                                                • Y
                                                  yaboc last edited by

                                                  hi

                                                  first of all thank you for a great package marcelloc. im using postfix forwarder and it's doing great job but my question is do i need  mailscanner + spamassassin + clamav package ?

                                                  my pfsense 2.1-RELEASE (amd64) has only 1.5 GB. will it struggle with the additional overhead of mailscanner + spamassassin + clamav package ?

                                                  Thanks for any input

                                                  yaboc

                                                  1 Reply Last reply Reply Quote 0
                                                  • C
                                                    capitangiaco last edited by

                                                    @marcelloc:

                                                    Disable pyzor checks and see if spamassassin starts working.

                                                    Hi Marcello

                                                    I found that the problem is bayes
                                                    If I disable 'use bayes (YES)'  spamassassin starts!
                                                    I've tried sa-learn –sync, but it didn't fixed

                                                    here the spamassassin -D --lint output

                                                    http://nopaste.info/2ebbbaca23.html

                                                    Giacomo

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

                                                      Hi,

                                                      I have a huge quantity of msg files in /usr/local/dcc/log (about 3GB).
                                                      It seems to be very old emails as well as recent emails (maybe all email since the installation).

                                                      What are these files ?
                                                      Can I delete it safely ?
                                                      Is there a setting to do in order to stop the retention of this emails in this folder ?

                                                      Thanks

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

                                                        reply to myself.
                                                        I found the solution: add /usr/local/dcc/libexec/cron-dccd in my crontab.

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

                                                          HI,

                                                          I have a lot of trouble to install mailscanner on ALIX2C2 bord (on ALIX2D13 is OK) I tried it on version 2.0.3 but never get succes it never finish, alwas frezzing, usualy stop on file p5-Mozilla-CA-20130114.tbz, I also tried on version 2.1 but frezz at the end, if needed I can post scrennshots.

                                                          any help will be apriciated, thanks.

                                                          here is instalation log on ALIX2C board and version of pfsense 2.0.3 on 512Mb CF card, the instalation takes almost 3 hours (180minutes ?!?!?)

                                                          Beginning package installation for mailscanner…
                                                          Downloading package configuration file... done.
                                                          Saving updated package information... done.
                                                          Downloading mailscanner and its dependencies...
                                                          Checking for package installation...
                                                          Downloading http://files.pfsense.org/packages/8/All/MailScanner-4.84.5_3.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/ca_root_nss-3.15.2_1.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Crypt-OpenSSL-Random-0.06.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Crypt-OpenSSL-Bignum-0.04.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Crypt-OpenSSL-RSA-0.28.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Digest-SHA1-2.13.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-WWW-RobotRules-6.02.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-LWP-MediaTypes-6.02.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-HTTP-Date-6.02.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-File-Listing-6.04.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Authen-NTLM-1.09.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Sys-Hostname-Long-1.4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Filesys-Df-0.92.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Net-Ident-1.23.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Net-CIDR-0.17.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-HTML-Tagset-3.20.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-HTML-Parser-3.71.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Socket-2.013.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Net-SSLeay-1.55.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-IO-Socket-IP-0.24.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-IO-Socket-SSL-1.962.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Net-HTTP-6.06.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/curl-7.33.0_1.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/razor-agents-2.84.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-TimeDate-2.30_1,1.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Mail-Tools-2.12.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Mail-DKIM-0.40.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Time-HiRes-1.9726,1.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Sys-SigAction-0.20.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-IO-stringy-2.110.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-OLE-Storage_Lite-0.19.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-IO-HTML-1.00.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/libltdl-2.4.2_2.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-DBI-1.630.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-DBD-SQLite-1.40.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/tnef-1.4.9.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Encode-Locale-1.03.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-HTTP-Message-6.06_2.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-HTTP-Negotiate-6.01.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-HTTP-Daemon-6.01.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-HTTP-Cookies-6.01.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-libwww-6.05.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/perl5-5.16.3_4.tbz ...  (extracting)

                                                          Downloading http://files.pfsense.org/packages/8/All/p5-Mozilla-CA-20130114.tbz ...  could not download from there or http://ftp2.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.1-release/All/p5-Mozilla-CA-20130114.tbz.
                                                          of MailScanner-4.84.5_3 failed!

                                                          Installation aborted.Backing up libraries...
                                                          Removing package...
                                                          Starting package deletion for dcc-dccd-1.3.141...done.
                                                          Starting package deletion for perl5-5.16.3_4...done.
                                                          Starting package deletion for pyzor-0.5.0_3...done.
                                                          Starting package deletion for python27-2.7...done.
                                                          Starting package deletion for py27-gdbm-2.7...done.
                                                          Starting package deletion for python27-2.7...done.
                                                          Starting package deletion for python-2...done.
                                                          Starting package deletion for python27-2.7...done.
                                                          done.
                                                          Starting package deletion for gdbm-1...done.
                                                          Starting package deletion for p5-Mail-SPF-2.9.0_1...done.
                                                          Starting package deletion for perl5-5.16...done.
                                                          Starting package deletion for p5-NetAddr-IP-4...done.
                                                          Starting package deletion for perl5-5.16...done.
                                                          Starting package deletion for p5-Error-0...done.
                                                          Starting package deletion for perl5-5.16...done.
                                                          Starting package deletion for p5-Net-DNS-Resolver-Programmable-0...done.
                                                          Starting package deletion for perl5-5.16...done.
                                                          Starting package deletion for p5-IP-Country-2.28...done.
                                                          Starting package deletion for perl5-5.16...done.
                                                          done.
                                                          Starting package deletion for MailScanner-4.84.5_3...done.
                                                          Removing mailscanner components...
                                                          Tabs items... done.
                                                          Menu items... done.
                                                          Services... done.
                                                          Loading package instructions...
                                                          Include file mailscanner.inc could not be found for inclusion.
                                                          Deinstall commands...
                                                          Not executing custom deinstall hook because an include is missing.
                                                          Removing package instructions...done.
                                                          Auxiliary files... done.
                                                          Package XML... done.
                                                          Configuration... done.
                                                          Cleaning up... Failed to install package.

                                                          Installation halted.

                                                          Manfred
                                                          ps. thanks for helping

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

                                                            @Ivart:

                                                            @marcelloc:

                                                            I could get it working only if I change user to root.

                                                            I'll keep trying to use it with unprivileged user.

                                                            Have you found any solution for clamd error?

                                                            Marcelo any solution? How can I change user to root to make antivirus (clamd) work again with MailScanner?

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

                                                              Under –- System ----- User Manager

                                                              Add the user clamav.

                                                              Worked for me.

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

                                                                @serialdie:

                                                                Under –- System ----- User Manager

                                                                Add the user clamav.

                                                                Worked for me.

                                                                I can´t do that. Please explain how to register a clamav user that is reserved for system.

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

                                                                  @Ivart:

                                                                  @serialdie:

                                                                  Under –- System ----- User Manager

                                                                  Add the user clamav.

                                                                  Worked for me.

                                                                  I can´t do that. Please explain how to register a clamav user that is reserved for system.

                                                                  What do you mean you cant do that?

                                                                  You don't have access to the GUI?

                                                                  Regards,

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

                                                                    serialdie, when I try do insert new user with name "clamav" pfSens reply The following input errors were detected: That username is reserved by the system.

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

                                                                      I can´t change config file MailScanner.conf in /usr/pbi/mailscanner-i386/etc/MailScanner, I´m trying to change user to  root and disable "Sign clean messages", but after postfix restart or pfSense reboot settings still unchanged.

                                                                      Run As User = postfix > root
                                                                      Run As Group = postfix > root
                                                                      Sign Clean Messages = yes > no

                                                                      I trying to fix clamd permission issue as marcelloc replied in previous post: https://forum.pfsense.org/index.php/topic,43687.msg380590.html#msg380590

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

                                                                        Ok I found a post telling to change MailScanner.conf.template in /usr/local/pkg in order to change main MailScanner.conf, so MailScanner is running with user and group "root" but the error persists whith clamd:

                                                                        Clamd::ERROR:: UNKNOWN CLAMD RETURN ./lstat() failed: Permission denied. ERROR :: /var/spool/MailScanner/incoming/95705

                                                                        I don´t know what to do to fix because antivirus isn´t working.

                                                                        1 Reply Last reply Reply Quote 0
                                                                        • C
                                                                          capitangiaco last edited by

                                                                          After 2.1.3 upgrade I needed to add:

                                                                          ln -fs /usr/pbi/postfix-i386/sbin/sendmail /usb/sbin/sendmail

                                                                          Giaco

                                                                          1 Reply Last reply Reply Quote 0
                                                                          • C
                                                                            capitangiaco last edited by

                                                                            Is it possible to disable the Mailscanner inline sig from the web gui ?
                                                                            At the moment I erased the content of the two files: inline.sig.txt and inline.sig.html.
                                                                            But I have to do at each update.

                                                                            Giaco

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

                                                                              Giaco, if you want to remove inline signature
                                                                              Install Filer package to keep  files after updates, load in Filer file /usr/local/pkg/mailscanner.conf.template and edit these lines, save and after that restart MailScanner

                                                                              
                                                                              Sign Messages Already Processed = no
                                                                              Sign Clean Messages = no
                                                                              
                                                                              
                                                                              1 Reply Last reply Reply Quote 0
                                                                              • C
                                                                                capitangiaco last edited by

                                                                                @marcelloc:

                                                                                I use it with Message Hold mode= manual using acls

                                                                                and I put /^from:/ HOLD on header acls

                                                                                What are the differences between:

                                                                                /^Received:/ HOLD or /^From:/ HOLD

                                                                                on postfix header_check ?

                                                                                Giacomo

                                                                                1 Reply Last reply Reply Quote 0
                                                                                • C
                                                                                  capitangiaco last edited by

                                                                                  I use splunk to analyze logs, but I would like to use also the sqlite search system integrated with postfix pkg.
                                                                                  Is there the way to use both /var/log/maillog and system logs as logging destinations ?

                                                                                  Giacomo

                                                                                  1 Reply Last reply Reply Quote 0
                                                                                  • Bismarck
                                                                                    Bismarck last edited by

                                                                                    root@:~# /usr/local/bin/sa-update -D –no-gpg
                                                                                    dbg: logger: adding facilities: all
                                                                                    dbg: logger: logging level is DBG
                                                                                    dbg: generic: SpamAssassin version 3.4.0
                                                                                    dbg: generic: Perl 5.016003, PREFIX=/usr/pbi/mailscanner-amd64, DEF_RULES_DIR=/usr/pbi/mailscanner-amd64/share/spamassassin, LOCAL_RULES_DIR=/usr/pbi/mailscanner-amd64/etc/mail/spamassassin, LOCAL_STATE_DIR=/var/db/spamassassin
                                                                                    dbg: config: timing enabled
                                                                                    dbg: config: score set 0 chosen.
                                                                                    dbg: generic: sa-update version svn1475932
                                                                                    dbg: generic: using update directory: /var/db/spamassassin/3.004000
                                                                                    dbg: diag: perl platform: 5.016003 freebsd
                                                                                    dbg: diag: […] module installed: Digest::SHA, version 5.71
                                                                                    dbg: diag: […] module installed: HTML::Parser, version 3.71
                                                                                    dbg: diag: […] module installed: Net::DNS, version 0.74
                                                                                    dbg: diag: […] module installed: NetAddr::IP, version 4.069
                                                                                    dbg: diag: […] module installed: Time::HiRes, version 1.9726
                                                                                    dbg: diag: […] module installed: Archive::Tar, version 1.82
                                                                                    dbg: diag: […] module installed: IO::Zlib, version 1.10
                                                                                    dbg: diag: […] module not installed: Digest::SHA1 ('require' failed)
                                                                                    dbg: diag: […] module installed: MIME::Base64, version 3.13
                                                                                    dbg: diag: […] module installed: DB_File, version 1.826
                                                                                    dbg: diag: […] module installed: Net::SMTP, version 2.31
                                                                                    dbg: diag: […] module installed: Mail::SPF, version v2.009
                                                                                    dbg: diag: […] module not installed: Geo::IP ('require' failed)
                                                                                    dbg: diag: […] module not installed: Razor2::Client::Agent ('require' failed)
                                                                                    dbg: diag: […] module installed: IO::Socket::IP, version 0.29
                                                                                    dbg: diag: […] module installed: IO::Socket::INET6, version 2.69
                                                                                    dbg: diag: […] module installed: IO::Socket::SSL, version 1.981
                                                                                    dbg: diag: […] module installed: Compress::Zlib, version 2.048
                                                                                    dbg: diag: […] module not installed: Mail::DKIM ('require' failed)
                                                                                    dbg: diag: […] module installed: DBI, version 1.631
                                                                                    dbg: diag: […] module installed: Getopt::Long, version 2.38
                                                                                    dbg: diag: […] module not installed: LWP::UserAgent ('require' failed)
                                                                                    dbg: diag: […] module installed: HTTP::Date, version 6.02
                                                                                    dbg: diag: […] module installed: Encode::Detect, version 1.01
                                                                                    dbg: diag: […] module not installed: Net::Patricia ('require' failed)
                                                                                    dbg: channel: attempting channel updates.spamassassin.org
                                                                                    dbg: channel: using existing directory /var/db/spamassassin/3.004000/updates_spamassassin_org
                                                                                    dbg: channel: channel cf file /var/db/spamassassin/3.004000/updates_spamassassin_org.cf
                                                                                    dbg: channel: channel pre file /var/db/spamassassin/3.004000/updates_spamassassin_org.pre
                                                                                    dbg: channel: metadata version = 1588424, from file /var/db/spamassassin/3.004000/updates_spamassassin_org.cf
                                                                                    dbg: dns: 0.4.3.updates.spamassassin.org => 1588424, parsed as 1588424
                                                                                    dbg: channel: current version is 1588424, new version is 1588424, skipping channel
                                                                                    dbg: diag: updates complete, exiting with code 1
                                                                                    root@:~#

                                                                                    How to fix this?

                                                                                    I've tried to install the missing modules manually in:

                                                                                    /usr/pbi/mailscanner-amd64/lib/perl5

                                                                                    and

                                                                                    /usr/local/lib/perl5

                                                                                    but nothing changed?

                                                                                    2.1.3-RELEASE (amd64)
                                                                                    built on Thu May 01 15:52:13 EDT 2014
                                                                                    FreeBSD 8.3-RELEASE-p16

                                                                                    mailscanner 4.84.6 pkg v.0.2.5

                                                                                    1 Reply Last reply Reply Quote 0
                                                                                    • First post
                                                                                      Last post