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

    Mailscanner + spamassassin + clamav package

    Scheduled Pinned Locked Moved pfSense Packages
    313 Posts 54 Posters 294.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      benscha
      last edited by

      Hi Guys

      i'm new with pfsense! i used ipcop with many addons and like to change to pfsense!

      i tried to install mailscanner-dev from the package manager and will always get the following error:

      Beginning package installation for mailscanner-dev...
      Downloading package configuration file... done.
      Saving updated package information... done.
      Downloading mailscanner-dev and its dependencies... 
      [b]Checking for package installation... 
       Downloading http://e-sac.siteseguro.ws/pfsense/8/amd64/All/MailScanner-4.83.5.tbz ...  could not download from there or http://ftp2.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-8.1-release/All/MailScanner-4.83.5.tbz.
      of MailScanner-4.83.5 failed![/b]
      
      Installation aborted.Backing up libraries... 
      Removing package...
      Starting package deletion for MailScanner-4.83.5...done.
      Skipping package deletion for perl-5.12.4_3 because it is a dependency.
      Starting package deletion for pyzor-0.5.0_1...done.
      Starting package deletion for p5-Mail-SPF-2.007...done.
      Starting package deletion for p5-IP-Country-2.27...done.
      Removing mailscanner-dev 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. 
      

      there is a problem with the repository URL! how can i fix that?

      thx for your help!

      benscha

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

        the file is there, try to access repo url.

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

        Help a community developer! ;D

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

          I can't download the files either.. they don't exist on either site.

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

            try again, I've tested right now and it's working. :(

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

            Help a community developer! ;D

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

              not for me..

              Beginning package installation for mailscanner-dev…
              Downloading package configuration file... done.
              Saving updated package information... done.
              Downloading mailscanner-dev and its dependencies...
              Checking for package installation...
              Downloading http://e-sac.siteseguro.ws/pfsense/8/All/MailScanner-4.83.5.tbz ...  could not download from there or http://ftp2.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.1-release/All/MailScanner-4.83.5.tbz.
              of MailScanner-4.83.5 failed!

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

                I've tested on amd64 only , try one more time.

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

                Help a community developer! ;D

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

                  looks like its working, thanks alot man!  ;D

                  1 Reply Last reply Reply Quote 0
                  • R
                    rajbps
                    last edited by

                    Hi Marcello,

                    I am getting the followining error when trying to install mailscanner:

                    Beginning package installation for mailscanner-dev…
                    Downloading package configuration file... done.
                    Saving updated package information... done.
                    Downloading mailscanner-dev and its dependencies...
                    Checking for package installation...
                    Downloading http://e-sac.siteseguro.ws/pfsense/8/amd64/All/MailScanner-4.83.5.tbz ...  could not download from there or http://ftp2.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-8.1-release/All/MailScanner-4.83.5.tbz.
                    of MailScanner-4.83.5 failed!

                    Installation aborted.Backing up libraries...
                    Removing package...
                    Starting package deletion for MailScanner-4.83.5...done.
                    Skipping package deletion for perl-5.12.4_3 because it is a dependency.
                    Starting package deletion for pyzor-0.5.0_1...done.
                    Starting package deletion for p5-Mail-SPF-2.007...done.
                    Starting package deletion for p5-IP-Country-2.27...done.
                    Removing mailscanner-dev 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.

                    I tried a few times.

                    Could you assist pls.

                    Cheers,

                    Raj

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

                      try again, I've checked file permissions again.

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

                      Help a community developer! ;D

                      1 Reply Last reply Reply Quote 0
                      • R
                        rajbps
                        last edited by

                        Working now but if you open this link on a web browser you get the following error "Access to the page has been denied

                        because the following virus was detected

                        Clamd: Eicar-Test-Signature-1"

                        Link : http://e-sac.siteseguro.ws/pfsense/8/amd64/All/MailScanner-4.83.5.tbz

                        Hope this is just a false positive :-)

                        Cheers,

                        Raj

                        1 Reply Last reply Reply Quote 0
                        • R
                          rajbps
                          last edited by

                          Hi Marcello,

                          In the system logs I have the following :

                          Oct 22 18:21:22 MailScanner: waiting for children to die: Process did not exit cleanly, returned 29 with signal 0
                          Oct 22 18:21:27 MailScanner: waiting for children to die: Process did not exit cleanly, returned 29 with signal 0
                          Oct 22 18:21:32 MailScanner: waiting for children to die: Process did not exit cleanly, returned 29 with signal 0
                          Oct 22 18:21:37 MailScanner: waiting for children to die: Process did not exit cleanly, returned 29 with signal 0
                          Oct 22 18:21:42 MailScanner: waiting for children to die: Process did not exit cleanly, returned 29 with signal 0
                          Oct 22 18:21:47 MailScanner: waiting for children to die: Process did not exit cleanly, returned 29 with signal 0
                          Oct 22 18:21:52 MailScanner: waiting for children to die: Process did not exit cleanly, returned 29 with signal 0

                          Also where do you configure the mail server details and so on pls?

                          Cheers,

                          Raj

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

                            Hi,

                            I receive some emails that are not tagged (in the subject) as spam but they are spam.
                            However, these emails have a Mailscanner-spamscore: s or ssss

                            How can I get those kind of emails tagged with [spam] in the subject ?

                            Thanks

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

                              @ics:

                              How can I get those kind of emails tagged with [spam] in the subject ?

                              Changing mailscanner spam and highspam score on package config

                              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've enabled strong header verification in Postfix relay and antispam.

                                In the maillog I see this:

                                hostname xxxxxxxxxx verification failed: hostname nor servname provided, or not known (just one host which is OK)
                                Is it possible to whitelist this host or should I lower header verification to basic?

                                Bob

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

                                  @ikbendeman:

                                  hostname xxxxxxxxxx verification failed: hostname nor servname provided, or not known (just one host which is OK)
                                  Is it possible to whitelist this host or should I lower header verification to basic?

                                  I do recommend strong header verification.

                                  On current package, you can include this misconfigured server on postfix forwarder acl tab. I could be on mynetwork field or on your /etc/hosts file

                                  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,any way to Quarantine  bad file,attachment or infected files?

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

                                      @expert_az:

                                      hello,any way to Quarantine  bad file,attachment or infected files?

                                      I think it's still in marcelloc's roadmap (since a while… ;)).
                                      But not done yet.

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        alessandroa
                                        last edited by

                                        Hi,
                                        excuse me but I not understand if mailscanner is working. The postfix is fine, no errors in log, but I'm not able to find any log or activity about mailscanner.

                                        The service is up, the processes are up.. but where is the log?

                                        My impression is that postfix forward direct to mail server.

                                        Thank you,

                                        bye

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

                                          @alessandroa:

                                          My impression is that postfix forward direct to mail server.

                                          Did you enabled "Use Third part antispam" on postfix antispam tab?

                                          check mailscanner logs with  tail -f /var/log/maillog | grep -i mailscanner

                                          postfix_mailscanner.png_thumb
                                          postfix_mailscanner.png

                                          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

                                            1)Check use third party anti spam
                                            Message hold mode "manual mode using acls"
                                            Choose mailscanner+spam assassin + clamav

                                            2)put /^from:/ HOLD on header acls

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