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

    Mailscanner + spamassassin + clamav package

    pfSense Packages
    54
    313
    272.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.
    • marcellocM
      marcelloc
      last edited by

      Try again.

      Since I finish the force perl version issue of this package, files will be available at official repo.

      att,
      Marcello Coutinho

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

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • H
        hammeraus001
        last edited by

        Package re-installed, but now has the following issue:

        root: /usr/local/etc/rc.d/mailscanner: WARNING: failed to start mailscanner
        May 14 12:18:53 php: : Config sync not being done because of missing sync IP (normal on secondary systems).
        May 14 12:18:50 clamd[32059]: MaxThreads * MaxRecursion is too high: 25500, open file descriptor limit is: 11095
        May 14 12:18:46 check_reload_status: Reloading filter
        May 14 12:18:45 root: /usr/local/etc/rc.d/mailscanner: WARNING: failed to start mailscanner
        May 14 12:18:43 php: /pkg_mgr_install.php: The command '/usr/local/etc/rc.d/mailscanner stop' returned exit code '1', the output was 'mailscanner not running? (check /var/run/MailScanner.pid).'
        May 14 12:18:43 php: /pkg_mgr_install.php: Reload mailscanner
        May 14 12:18:43 php: /pkg_mgr_install.php: The command '/usr/local/dcc/dcc_conf stop' returned exit code '126', the output was '/usr/local/dcc/dcc_conf: Permission denied'
        May 14 12:18:43 root: /usr/local/etc/rc.d/clamav-clamd: WARNING: failed to start clamav_clamd
        May 14 12:18:43 check_reload_status: Syncing firewall
        May 14 12:18:42 root: /usr/local/etc/rc.d/mailscanner: WARNING: failed to start mailscanner
        May 14 12:18:40 php: /pkg_mgr_install.php: The command '/usr/local/etc/rc.d/mailscanner stop' returned exit code '1', the output was 'mailscanner not running? (check /var/run/MailScanner.pid).'
        May 14 12:18:40 php: /pkg_mgr_install.php: Reload mailscanner
        May 14 12:18:40 php: /pkg_mgr_install.php: The command '/usr/local/dcc/dcc_conf stop' returned exit code '126', the output was '/usr/local/dcc/dcc_conf: Permission denied'
        May 14 12:18:40 check_reload_status: Syncing firewall

        Any ideas?

        This was working perfectly (and had been for weeks and without any changes) until yesterday.

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

          This package had no changes on last months but I'll check.

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

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • H
            hammeraus001
            last edited by

            Resolved the dcc_conf issue, with a chmod 744 on /usr/local/dcc/dcc_conf.

            All I have now is the following:

            May 14 12:48:45 php: : Config sync not being done because of missing sync IP (normal on secondary systems).
            May 14 12:48:41 clamd[61980]: MaxThreads * MaxRecursion is too high: 25500, open file descriptor limit is: 11095
            May 14 12:48:39 php: : Config sync not being done because of missing sync IP (normal on secondary systems).
            May 14 12:48:37 root: /usr/local/etc/rc.d/mailscanner: WARNING: failed to start mailscanner
            May 14 12:48:35 php: /pkg_edit.php: The command '/usr/local/etc/rc.d/mailscanner stop' returned exit code '1', the output was 'mailscanner not running? (check /var/run/MailScanner.pid).'
            May 14 12:48:35 php: /pkg_edit.php: Reload mailscanner

            Mailscanner exists:

            ls -la /usr/local/sbin/mailscanner

            -r-xr-xr-x  1 root  wheel  67367 May 14 12:18 /usr/local/sbin/mailscanner

            Mailscanner isn't running:

            ls -la /var/run/MailScanner.pid

            ls: /var/run/MailScanner.pid: No such file or directory

            ps -aux | grep mailscanner

            root    13419  0.0  0.1  3524  1264  0  S+  12:53PM  0:00.00 grep mailscanner

            1 Reply Last reply Reply Quote 0
            • H
              hammeraus001
              last edited by

              Testing a VM of a clean AMD install.  Will advise how it goes.

              1 Reply Last reply Reply Quote 0
              • H
                hammeraus001
                last edited by

                The clean install on the VM is working perfectly.  I have redirected all SMTP traffic through the new VM for the time being and will rebuild the firewall on the weekend (love this "out of hours" stuff  ;)).

                Thanks for your help, fast responses and most of all the combination "mailscanner + spamassassin + clamav" package.  Brilliant work!

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

                  I've pushed some updates to improve boot process, and checks to perl version and config files.

                  The clean install now, select all default options.

                  att,
                  Marcello Coutinho

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

                  Help a community developer! ;D

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

                    marcelloc ,in order use mailscanner package is checking on Postfix Forwarder>>>Antispam>>>Use Third part antispam box enough?any another settings?

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

                      I use it with Message Hold mode= manual using acls

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

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

                      Help a community developer! ;D

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

                        Hi,

                        I would like to disable the change on email subject when mailscanner "disarm" an email.
                        So I modified Mailscanner.conf and the line "Disarmed Modify Subject = no"
                        but it comes back to its previous settings  "Disarmed Modify Subject = start" on reboot.

                        What can I do ?

                        Thanks

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

                          @ics:

                          What can I do ?

                          change /usr/local/pkg/mailscanner.conf.template and apply changes.

                          att,
                          Marcello Coutinho

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

                          Help a community developer! ;D

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

                            @marcelloc:

                            change /usr/local/pkg/mailscanner.conf.template and apply changes.

                            Thanks for the reply.

                            This file doesn't exist so I modified the file /usr/local/pkg/mailscanner.inc
                            And it seems to work  :)

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

                              Will be there  when you update/upgrade the package. :)

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

                              Help a community developer! ;D

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

                                @marcelloc:

                                Will be there  when you update/upgrade the package. :)

                                And about updates, is there a procedure to update packages ?
                                Or I just need to click on "Reinstall this package" in the package manager ?

                                package.png
                                package.png_thumb

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

                                  Normally, just update.

                                  A backup first is always a good idea.  :)

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

                                  Help a community developer! ;D

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

                                    Hello Marcello

                                    i just installed postfix and mailscanner on my pre production pf box,and getting this error on my system log

                                    My pf version:
                                    2.0.1-RELEASE (amd64)
                                    built on Mon Dec 12 18:16:13 EST 2011
                                    FreeBSD 8.1-RELEASE-p6

                                    Jun 7 16:32:39 MailScanner[15521]: Syntax error in line 145, value "" for allowscripttags is not one of allowed values "yes","disarm","no"
                                    Jun 7 16:32:39 MailScanner[15521]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
                                    Jun 7 16:32:39 MailScanner[15521]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
                                    Jun 7 16:32:39 MailScanner[15521]: MailScanner E-Mail Virus Scanner version 4.83.5 starting…
                                    Jun 7 16:32:39 mailscanner: Process did not exit cleanly, returned 1 with signal 0
                                    Jun 7 16:32:39 MailScanner[3723]: ClamAV Module ERROR:: Could not load databases from /var/db/clamav
                                    Jun 7 16:32:39 MailScanner[3723]: I have found clamavmodule scanners installed, and will use them all by default.
                                    Jun 7 16:32:34 MailScanner[8485]: Enabling SpamAssassin auto-whitelist functionality…
                                    Jun 7 16:32:34 MailScanner[8485]: Connected to SpamAssassin cache database
                                    Jun 7 16:32:34 MailScanner[8485]: Using SpamAssassin results cache

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

                                      Your antivirus is up to date ?
                                      freshclam –version

                                      clamav is not automatically updated, you have configure your crontab.
                                      To update manually :
                                      /usr/local/bin/freshclam

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

                                        /usr/local/bin/freshclam
                                        ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
                                        ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).

                                        freshclam –version
                                        ClamAV 0.97.3

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

                                          /usr/local/bin/sa-update    -> this one too  ;)

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

                                            sa-update
                                            /usr/local/lib/perl5/site_perl/5.12.4 /usr/local/lib/perl5/5.12.3/BSDPAN /usr/local/lib/perl5/site_perl/5.12.3/mach /usr/local/lib/perl5/site_perl/5.12.3 /usr/local/lib/perl5/5.12.3/mach /usr/local/lib/perl5/5.12.3) at /usr/local/bin/sa-update line 80.
                                            BEGIN failed–compilation aborted at /usr/local/bin/sa-update line 80.

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