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

Mailscanner + spamassassin + clamav package

Scheduled Pinned Locked Moved
pfSense Packages
54
313
263.0k
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
    ikbendeman
    last edited by Dec 20, 2013, 10:25 PM

    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
    • marcellocM
      marcelloc
      last edited by Dec 20, 2013, 10:44 PM

      @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 Dec 21, 2013, 4:40 PM

        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 Dec 25, 2013, 6:56 PM

          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
          • 11 days later
          • C
            ckoehler
            last edited by Jan 5, 2014, 4:49 PM

            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 Jan 6, 2014, 5:33 PM

              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 Jan 7, 2014, 10:56 AM

                @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 Jan 10, 2014, 9:15 PM

                  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 Jan 11, 2014, 12:26 PM

                    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 Jan 13, 2014, 4:16 PM

                      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
                      • 21 days later
                      • C
                        capitangiaco
                        last edited by Feb 3, 2014, 8:48 AM

                        @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 Feb 3, 2014, 12:57 PM

                          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 Feb 6, 2014, 2:15 PM

                            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 Feb 10, 2014, 2:38 PM Feb 8, 2014, 5:21 PM

                              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
                              • 13 days later
                              • I
                                Ivart
                                last edited by Feb 21, 2014, 6:12 PM

                                @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 Feb 21, 2014, 8:51 PM

                                  Under –- System ----- User Manager

                                  Add the user clamav.

                                  Worked for me.

                                  1 Reply Last reply Reply Quote 0
                                  • I
                                    Ivart
                                    last edited by Feb 24, 2014, 11:13 AM

                                    @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 Feb 24, 2014, 5:47 PM

                                      @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 Feb 24, 2014, 9:06 PM

                                        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 Feb 25, 2014, 2:56 PM

                                          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 Feb 25, 2014, 5:54 PM

                                            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
                                            • 3 months later
                                            • C
                                              capitangiaco
                                              last edited by May 13, 2014, 6:05 AM

                                              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 May 13, 2014, 6:08 AM

                                                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 May 15, 2014, 1:04 PM

                                                  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
                                                  • 13 days later
                                                  • C
                                                    capitangiaco
                                                    last edited by May 28, 2014, 10:33 AM

                                                    @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 May 28, 2014, 1:07 PM

                                                      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
                                                      • BismarckB
                                                        Bismarck
                                                        last edited by Jun 1, 2014, 11:33 AM

                                                        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
                                                        • 16 days later
                                                        • BismarckB
                                                          Bismarck
                                                          last edited by Jun 18, 2014, 9:16 AM Jun 17, 2014, 11:03 AM

                                                          Can we please have a change log for the new 0.2.6 version? Thanks.

                                                          Unrar virus scanning is broken, I've fixed it by installing the pkg's via

                                                          pkg_add -r unrar

                                                          even unrar already exists in /usr/pbi/mailscanner-amd64/bin?

                                                          1 Reply Last reply Reply Quote 0
                                                          • about a month later
                                                          • M
                                                            mflyagin
                                                            last edited by Aug 1, 2014, 8:22 AM

                                                            Installed on my pfSense Postfix Forwarder + Mailscanner. It all started, in the logs there are no errors, the mail goes through Postfix Forwarder (seen in the logs), but the feeling that the mail is not processed in Mailscanner. Because attaches are not cut, no entries in the logs. Where could be the problem? In the Third part Antispam Settings checkbox enabled, the package is selected.

                                                            1 Reply Last reply Reply Quote 0
                                                            • 2 months later
                                                            • F
                                                              FlashPan
                                                              last edited by Oct 2, 2014, 12:46 PM Oct 2, 2014, 10:20 AM

                                                              Hi guys,

                                                              Guess this could be more of a mental healthcheck :)

                                                              In my MailScanner.conf file I have the follolwing entries:

                                                              Phishing Safe Sites File = %etc-dir%/phishing.safe.sites.conf
                                                              Phishing Bad Sites File = %etc-dir%/phishing.bad.sites.conf
                                                              Country Sub-Domains List = %etc-dir%/country.domains.conf

                                                              I have noticed that the content of these never update, the file timestamp never chanegs as well.

                                                              Should these file update?  I cannot see an option within MailScanner to updates (or schedule) and nothing in Cron is jumping out at me?

                                                              To be honest I am not even sure what other .conf or clamav files should update? (EDIT- ahh just realised clamav is installed with postfix. Still not finding info on the other.conf files though)

                                                              Am I missing something here?

                                                              Thanks in advance for you help.

                                                              Cheers

                                                              1 Reply Last reply Reply Quote 0
                                                              • BismarckB
                                                                Bismarck
                                                                last edited by Oct 2, 2014, 1:50 PM

                                                                MailScanner uses spamassassin, so you need to check

                                                                **/var/db/spamassassin/3.004000 >

                                                                /var/db/spamassassin/3.004000/updates_spamassassin_org**

                                                                for updates. Execute

                                                                /usr/local/bin/sa-update -v –no-gpg

                                                                and look if anything is changing in the above shown paths.

                                                                1 Reply Last reply Reply Quote 0
                                                                • 15 days later
                                                                • S
                                                                  seba1234
                                                                  last edited by Oct 17, 2014, 7:53 PM

                                                                  Anyone has installed the MAilscanner 4.84.6 pkg v.0.2.10, because I did it and then probe again in a fresh installation of pfsense 2.1.5 but the service doesn't start.
                                                                  Also when I change the configuration from the gui it didn't update de mailscanner.conf file.
                                                                  Thanks.

                                                                  1 Reply Last reply Reply Quote 0
                                                                  • E
                                                                    EHN_Helpdesk
                                                                    last edited by Oct 20, 2014, 3:39 AM Oct 20, 2014, 3:27 AM

                                                                    seba1234

                                                                    I just recently updated my pfSense from 2.1 to 2.1.5 and found that my Mailscanner (4.84.6 pkg v.0.2.10) service would not start.  In order for Mailscanner to start properly on my system, I had to fix the file directory pointer in /usr/local/pkg/mailscanner.inc on line 37

                                                                    current line is if ($pf_version != "2.1")

                                                                    new line to if ($pf_version != "2.1.5")

                                                                    This was the simplest way for me to fix the MailScanner configuration for 2.1.5.  I'm sure there is a more proper way to fix this issue and I welcome insight, but as I said, it was the simplest path for me.

                                                                    1 Reply Last reply Reply Quote 0
                                                                    • F
                                                                      FlashPan
                                                                      last edited by Oct 20, 2014, 4:55 AM

                                                                      I had to reinstall my pfsense today. Restored my packages from a backup file and mailscanner failed to load.

                                                                      Using the fix from EHN_Helpdesk worked for me.

                                                                      Cheers

                                                                      PS: Thanks very much EHN_Helpdesk for the fix.  I would have never ever worked that out for myself.

                                                                      1 Reply Last reply Reply Quote 0
                                                                      • F
                                                                        FlashPan
                                                                        last edited by Oct 20, 2014, 7:58 AM

                                                                        Thanks Bismark

                                                                        Well now that I have my mailscanner running I can see that spamassassin data is changing inside  /var/db/spamassassin/3.004000 when I run the update command (with no errors).

                                                                        I am still seeing that these files are still not updating:

                                                                        Phishing Safe Sites File = /usr/pbi/mailscanner-i386/etc/MailScanner/phishing.safe.sites.conf
                                                                        Phishing Bad Sites File = /usr/pbi/mailscanner-i386/etc/MailScanner/phishing.bad.sites.conf
                                                                        Country Sub-Domains List = /usr/pbi/mailscanner-i386/etc/MailScanner/country.domains.conf

                                                                        Phishing Bad Sites for example is still stating:

                                                                        This file was generated at Mon Mar  5 14:20:01 GMT 2012

                                                                        I can see form here a newer version:

                                                                        http://www.mailscanner.eu/phishing.bad.sites.conf.master

                                                                        Do I need to add another command into cron to get these updated, or?

                                                                        Cheers all again for your great support.

                                                                        1 Reply Last reply Reply Quote 0
                                                                        • BismarckB
                                                                          Bismarck
                                                                          last edited by Oct 21, 2014, 7:52 AM

                                                                          @FlashPan:

                                                                          I am still seeing that these files are still not updating:

                                                                          Phishing Safe Sites File = /usr/pbi/mailscanner-i386/etc/MailScanner/phishing.safe.sites.conf
                                                                          Phishing Bad Sites File = /usr/pbi/mailscanner-i386/etc/MailScanner/phishing.bad.sites.conf
                                                                          Country Sub-Domains List = /usr/pbi/mailscanner-i386/etc/MailScanner/country.domains.conf

                                                                          Phishing Bad Sites for example is still stating:

                                                                          This file was generated at Mon Mar  5 14:20:01 GMT 2012

                                                                          I can see form here a newer version:

                                                                          http://www.mailscanner.eu/phishing.bad.sites.conf.master

                                                                          Do I need to add another command into cron to get these updated, or?

                                                                          Cheers all again for your great support.

                                                                          /usr/local/libexec/MailScanner/update_bad_phishing_sites.cron

                                                                          Looks like this update script is broken, the only way to update is manually via the pfsense webgui. But anyway thats just a very small anti-phishing mechanism of mailscanner, the real power comes with spamassassin.

                                                                          Subscribe few SA channels and keep them updated via shell script/cron.

                                                                          1 Reply Last reply Reply Quote 0
                                                                          • C
                                                                            capitangiaco
                                                                            last edited by Oct 21, 2014, 9:05 AM Oct 21, 2014, 9:01 AM

                                                                            @capitangiaco:

                                                                            @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

                                                                            After latest upgrades (pfsense 2.1.5 and mailscanner 4.84.6 pkg v.0.2.10) I am able to use Spamassassin and Bayes.
                                                                            But while mails are coming from the console I see :

                                                                            ps aux | grep Z
                                                                            USER      PID %CPU %MEM  VSZ  RSS  TT  STAT STARTED      TIME COMMAND
                                                                            postfix 77416 24.1  0.0    0    0  ??  ZN  10:51AM  0:03.18 <defunct>postfix 17024  0.0  0.0    0    0  ??  Z    10:47AM  0:05.15 <defunct>postfix 29545  0.0  0.0    0    0  ??  Z    10:35AM  0:04.16 <defunct>postfix 29839  0.0  0.0    0    0  ??  Z    10:35AM  0:04.66 <defunct>postfix 31218  0.0  0.0    0    0  ??  Z    10:35AM  0:05.43 <defunct>from logs I can see only:
                                                                            "Process did not exit cleanly, returned 0 with signal 11"

                                                                            some hint to debug this ?
                                                                            thanks

                                                                            Giacomo</defunct></defunct></defunct></defunct></defunct>

                                                                            1 Reply Last reply Reply Quote 0
                                                                            • S
                                                                              seba1234
                                                                              last edited by Oct 22, 2014, 9:11 PM

                                                                              Thank you EHN_Helpdesk, I appied your solution and it works.

                                                                              1 Reply Last reply Reply Quote 0
                                                                              • about a month later
                                                                              • F
                                                                                FlashPan
                                                                                last edited by Nov 25, 2014, 2:30 PM

                                                                                Hi gang,

                                                                                Got a couple of queries again  :P

                                                                                Anyone noticing that the SpamAssassin rules are not updating recently?

                                                                                Am using the sa-update command in cron once a day but the version is not increasing in "/var/db/spamassassin/3.004000" from "# UPDATE version 1640695"  I can tell for sure as the time stamps for the files are not changing for at least a couple of weeks now I reckon.  I've run the sa-update command manually which states no updates are available from updates.spamassassin.org.  So does this mean the version of spamassassin we have is now out of date/unsupported?

                                                                                Also..anyone had any luck in updating the "phishing.bad.sites.conf" and "phishing.safe.sites.conf" under "/usr/pbi/mailscanner-i386/etc/MailScanner" ?

                                                                                I've run this command manually and it does update the file in question but MailScanner does not show/see the updated file in the gui.

                                                                                /usr/pbi/mailscanner-i386/bin/wget -O /usr/pbi/mailscanner-i386/etc/MailScanner/phishing.bad.sites.conf http://www.mailscanner.eu/phishing.bad.sites.conf /usr/pbi/mailscanner-i386/etc/MailScanner/phishing.bad.sites.conf

                                                                                I've tried stop, start and restart commands in the following location after the update (as well as a full reboot):

                                                                                /etc/rc.d/init.d/mailsacanner
                                                                                /usr/pbi/mailscanner-i386/etc/rc.d/mailscanner
                                                                                /usr/local/bin/spamassassin

                                                                                But the gui doe snot update with the new data.

                                                                                I've been blundering around the internet for a couple of days trying to figure this out. The above is just what my limited intellect to freebsd has discovered and even more limted to my understanding.

                                                                                If anyone has go the above going can you please be so kind to share your scripts etc?

                                                                                Cheers all

                                                                                1 Reply Last reply Reply Quote 0
                                                                                • marcellocM
                                                                                  marcelloc
                                                                                  last edited by Nov 25, 2014, 4:19 PM

                                                                                  As 2.2 is almost on RC, fixes to 2.1 packages must be pushed as soon as possible.

                                                                                  who knows php and what is missing on the package, the best way is to create a pull request on packages.

                                                                                  I'll try to include missing perl libs to package build options.

                                                                                  But something I know is that link to external downlad sites other then pfsense is not permited on package repos.

                                                                                  What is broken on mailscanner? I'm pushing some fixes to packages on 2.2

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

                                                                                  Help a community developer! ;D

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

                                                                                  Looks like your connection to Netgate Forum was lost, please wait while we try to reconnect.