Mailscanner + spamassassin + clamav package



  • Finally out !  :) (devel version)

    Just be sure to do have perl specific version perl-5.10.1_3.

    Mailscanner-dev package uses freebsd 8.2 packages, so do not try it with any other perl version.

    if you have any other perl version, i suggest you to uninstall it, any p5-module and maybe sqlite version prior to 3.7.4 you find with pkg_add.

    After removing it, close console and try to install packages.



  • Question marcelloc?

    Do you have to install the mailscanner dev package for the mailscanner function to work in postfix? Or is mailscanner included in the new version you just released?

    Thanks,



  • Need both.

    Check your perl version before install.



  • Been having a quick play and a few problems surfaced.

    Access to /user/spool/MailScanner/incoming generates permission errors unless changed to 0777.

    Even after changing the permissions mailscanner still shows as stoped in Status:services - do a restart no error messages in system log - just will not start the package.

    Can I confirm if there is a particular install sequence?  I did postfix, havp and the mailscanner - all of this is on 2.0 rel x86 running under ESXi 5.0

    Andrew



  • I set owner and run user to postfix, it's not happening here. I will try to simulate this on vm.

    As hapv also uses clamav, i would install postfix, then mailscanner, then any other package.

    Run sa-update at console to see if there is no spamassassin dependencies problem.



  • Even after changing the permissions mailscanner still shows as stoped in Status:services

    check in console, I did not finished services:status check option.

    I did this install sequence:

    • postfix

    • mailscanner

    • havp

    I got services running
    8148  ??  S      0:00.47 MailScanner: waiting for messages (perl5.10.1)
    8155  ??  S      0:00.48 MailScanner: waiting for messages (perl5.10.1)
    8344  ??  S      0:00.47 MailScanner: waiting for messages (perl5.10.1)
    8660  ??  S      0:00.50 MailScanner: waiting for messages (perl5.10.1)
    8851  ??  S      0:00.51 MailScanner: waiting for messages (perl5.10.1)
    9155  ??  S      0:00.47 MailScanner: waiting for messages (perl5.10.1)

    right permissions on folders
    drwxr-xr-x  124 postfix  wheel  2048 Dec  6 12:32 incoming
    drwxr-xr-x    2 postfix  wheel  512 Dec  6 12:16 quarantine

    and no alerts at log
    Dec  6 12:33:29 pfsense MailScanner[12543]: Using locktype = flock
    Dec  6 12:33:34 pfsense MailScanner[12644]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec  6 12:33:34 pfsense MailScanner[12644]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec  6 12:33:34 pfsense MailScanner[12644]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec  6 12:33:34 pfsense MailScanner[12644]: Using SpamAssassin results cache
    Dec  6 12:33:34 pfsense MailScanner[12644]: Connected to SpamAssassin cache database
    Dec  6 12:33:34 pfsense MailScanner[12644]: Enabling SpamAssassin auto-whitelist functionality…
    Dec  6 12:33:35 pfsense MailScanner[12644]: Connected to Processing Attempts Database
    Dec  6 12:33:35 pfsense MailScanner[12644]: Found 0 messages in the Processing Attempts Database

    one minor issue with spamassassin –lint command
    Dec  6 12:36:11.468 [56598] warn: config: failed to parse line, skipping, in "/usr/local/etc/mail/spamassassin/mailscanner.cf": use_auto_whitelist 0
    Dec  6 12:36:13.112 [56598] warn: lint: 1 issues detected, please rerun with debug enabled for more information

    comment  'use_auto_whitelist 0'  in services->mailscanner->antispam->spam.assassin.prefs.conf
    save config and then test spamassassin –lint again



  • To improve performance on your mailscanner filter, you need to install pfsense with a separated /var partition and enable soft-updates on it during install.

    The size of this partition depends on your mail volume I suggest at least 10G.

    without soft-updates it will have a 'not so good performance'.

    I've tried some rc.d scripts to change / to soft-updates with no luck, so it's better and well supported to do this during install.



  • Well I reinstalled in your suggested sequence but still the mailscanner service is shown as stopped in pfsense - been though log and do not see anything unusual - but perhaps you can.

    Dec 7 13:04:02 dnsmasq[45564]: nameserver 192.168.80.208 refused to do a recursive query
    Dec 7 13:04:02 dnsmasq[45564]: nameserver 192.168.80.208 refused to do a recursive query
    Dec 7 13:04:01 dnsmasq[45564]: ignoring nameserver 127.0.0.1 - local interface
    Dec 7 13:04:01 dnsmasq[45564]: ignoring nameserver 127.0.0.1 - local interface
    Dec 7 13:04:01 dnsmasq[45564]: using nameserver 192.168.80.217#53
    Dec 7 13:04:01 dnsmasq[45564]: using nameserver 192.168.80.203#53
    Dec 7 13:04:01 dnsmasq[45564]: using nameserver 192.168.80.208#53
    Dec 7 13:04:01 dnsmasq[45564]: reading /etc/resolv.conf
    Dec 7 12:53:06 MailScanner[37853]: Using locktype = flock
    Dec 7 12:53:06 MailScanner[37853]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:06 MailScanner[37853]: Connected to Processing Attempts Database
    Dec 7 12:53:06 MailScanner[37853]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:06 MailScanner[37853]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:06 MailScanner[37853]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:06 MailScanner[35964]: Using locktype = flock
    Dec 7 12:53:06 MailScanner[35964]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:06 MailScanner[35964]: Connected to Processing Attempts Database
    Dec 7 12:53:06 MailScanner[35964]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:06 MailScanner[35964]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:06 MailScanner[35681]: Using locktype = flock
    Dec 7 12:53:06 MailScanner[35964]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:06 MailScanner[35681]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:06 MailScanner[35681]: Connected to Processing Attempts Database
    Dec 7 12:53:06 MailScanner[35681]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:06 MailScanner[35681]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:06 MailScanner[35681]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:06 MailScanner[35496]: Using locktype = flock
    Dec 7 12:53:06 MailScanner[35496]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:06 MailScanner[35496]: Connected to Processing Attempts Database
    Dec 7 12:53:05 MailScanner[35496]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:05 MailScanner[35496]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:05 MailScanner[35496]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:05 MailScanner[35335]: Using locktype = flock
    Dec 7 12:53:05 MailScanner[35335]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:05 MailScanner[35335]: Connected to Processing Attempts Database
    Dec 7 12:53:05 MailScanner[35335]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:05 MailScanner[35335]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:05 MailScanner[35335]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:05 MailScanner[35114]: Using locktype = flock
    Dec 7 12:53:05 MailScanner[35114]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:05 MailScanner[35114]: Connected to Processing Attempts Database
    Dec 7 12:53:05 MailScanner[35114]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:05 MailScanner[35114]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:05 MailScanner[35114]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:05 MailScanner[34953]: Using locktype = flock
    Dec 7 12:53:05 MailScanner[34953]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:05 MailScanner[34953]: Connected to Processing Attempts Database
    Dec 7 12:53:05 MailScanner[34953]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:05 MailScanner[34953]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:05 MailScanner[34953]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:05 MailScanner[25890]: Using locktype = flock
    Dec 7 12:53:05 MailScanner[25890]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:05 MailScanner[25890]: Connected to Processing Attempts Database
    Dec 7 12:53:04 MailScanner[25890]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:04 MailScanner[25890]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:04 MailScanner[25890]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:04 MailScanner[24398]: Using locktype = flock
    Dec 7 12:53:04 MailScanner[24398]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:04 MailScanner[24398]: Connected to Processing Attempts Database
    Dec 7 12:53:04 MailScanner[24398]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:04 MailScanner[24398]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:04 MailScanner[24398]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:01 MailScanner[21195]: Using locktype = flock
    Dec 7 12:53:01 MailScanner[20935]: Using locktype = flock
    Dec 7 12:53:01 MailScanner[20595]: Using locktype = flock
    Dec 7 12:53:01 MailScanner[20517]: Using locktype = flock
    Dec 7 12:53:01 MailScanner[21195]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:01 MailScanner[21195]: Connected to Processing Attempts Database
    Dec 7 12:53:01 MailScanner[21195]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:01 MailScanner[21195]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:01 MailScanner[21195]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:01 MailScanner[20935]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:01 MailScanner[20935]: Connected to Processing Attempts Database
    Dec 7 12:53:01 MailScanner[20595]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:01 MailScanner[20595]: Connected to Processing Attempts Database
    Dec 7 12:53:01 MailScanner[20935]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:01 MailScanner[20935]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:01 MailScanner[20935]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:01 MailScanner[20595]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:01 MailScanner[20595]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:01 MailScanner[20595]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:01 MailScanner[20517]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:01 MailScanner[20517]: Connected to Processing Attempts Database
    Dec 7 12:53:00 MailScanner[20517]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:00 MailScanner[20517]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:00 MailScanner[20517]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:00 MailScanner[18685]: Using locktype = flock
    Dec 7 12:53:00 MailScanner[19074]: Using locktype = flock
    Dec 7 12:53:00 MailScanner[18685]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:00 MailScanner[19074]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:00 MailScanner[18685]: Connected to Processing Attempts Database
    Dec 7 12:53:00 MailScanner[19074]: Connected to Processing Attempts Database
    Dec 7 12:53:00 MailScanner[19074]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:00 MailScanner[19074]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:00 MailScanner[18872]: Using locktype = flock
    Dec 7 12:53:00 MailScanner[19074]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:00 MailScanner[18872]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:00 MailScanner[18872]: Connected to Processing Attempts Database
    Dec 7 12:53:00 MailScanner[18872]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:00 MailScanner[18872]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:00 MailScanner[18872]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:00 MailScanner[18685]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:53:00 MailScanner[18685]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:53:00 MailScanner[18685]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:53:00 MailScanner[18664]: Using locktype = flock
    Dec 7 12:53:00 MailScanner[18664]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:53:00 MailScanner[18664]: Connected to Processing Attempts Database
    Dec 7 12:52:59 MailScanner[18664]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:59 MailScanner[18664]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:59 MailScanner[18664]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:59 check_reload_status: Reloading filter
    Dec 7 12:52:59 MailScanner[17839]: Using locktype = flock
    Dec 7 12:52:59 MailScanner[17839]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:59 MailScanner[17839]: Connected to Processing Attempts Database
    Dec 7 12:52:59 MailScanner[17839]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:59 MailScanner[17839]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:59 MailScanner[17839]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:57 php: : IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing.
    Dec 7 12:52:57 sshlockout[10168]: sshlockout/webConfigurator v3.0 starting up
    Dec 7 12:52:57 login: login on ttyv0 as root
    Dec 7 12:52:57 postfix/postfix-script[9849]: fatal: the Postfix mail system is already running
    Dec 7 12:52:56 MailScanner[3064]: Using locktype = flock
    Dec 7 12:52:56 MailScanner[3064]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:56 MailScanner[3064]: Connected to Processing Attempts Database
    Dec 7 12:52:56 MailScanner[3064]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:56 MailScanner[3064]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:56 MailScanner[3064]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:56 MailScanner[3022]: Using locktype = flock
    Dec 7 12:52:56 MailScanner[2774]: Using locktype = flock
    Dec 7 12:52:56 MailScanner[2430]: Using locktype = flock
    Dec 7 12:52:56 MailScanner[3022]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:56 MailScanner[3022]: Connected to Processing Attempts Database
    Dec 7 12:52:56 MailScanner[3022]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:56 MailScanner[2774]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:56 MailScanner[2774]: Connected to Processing Attempts Database
    Dec 7 12:52:56 MailScanner[3022]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:56 MailScanner[3022]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:56 MailScanner[2774]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:56 MailScanner[2774]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:56 MailScanner[2774]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:55 MailScanner[2430]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:55 MailScanner[2430]: Connected to Processing Attempts Database
    Dec 7 12:52:55 MailScanner[2430]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:55 MailScanner[2430]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:55 MailScanner[2430]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:55 MailScanner[1919]: Using locktype = flock
    Dec 7 12:52:55 MailScanner[2358]: Using locktype = flock
    Dec 7 12:52:55 MailScanner[2088]: Using locktype = flock
    Dec 7 12:52:55 MailScanner[1919]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:55 MailScanner[1919]: Connected to Processing Attempts Database
    Dec 7 12:52:55 MailScanner[2358]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:55 MailScanner[2358]: Connected to Processing Attempts Database
    Dec 7 12:52:55 MailScanner[2088]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:55 MailScanner[2358]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:55 MailScanner[2358]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:55 MailScanner[2358]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:55 MailScanner[2088]: Connected to Processing Attempts Database
    Dec 7 12:52:55 MailScanner[2088]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:55 MailScanner[2088]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:55 MailScanner[2088]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:55 MailScanner[1919]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:55 MailScanner[1919]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:55 MailScanner[1919]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:55 MailScanner[1667]: Using locktype = flock
    Dec 7 12:52:55 MailScanner[1667]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:55 MailScanner[1667]: Connected to Processing Attempts Database
    Dec 7 12:52:54 MailScanner[1667]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:54 MailScanner[1667]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:54 MailScanner[1667]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:54 MailScanner[1406]: Using locktype = flock
    Dec 7 12:52:54 MailScanner[1406]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:54 MailScanner[1406]: Connected to Processing Attempts Database
    Dec 7 12:52:54 MailScanner[1406]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:54 MailScanner[1406]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:54 MailScanner[1406]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:51 MailScanner[1155]: Using locktype = flock
    Dec 7 12:52:51 MailScanner[1155]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:51 MailScanner[1155]: Connected to Processing Attempts Database
    Dec 7 12:52:51 MailScanner[594]: Using locktype = flock
    Dec 7 12:52:51 MailScanner[63421]: Using locktype = flock
    Dec 7 12:52:51 MailScanner[63787]: Using locktype = flock
    Dec 7 12:52:51 MailScanner[63421]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:51 MailScanner[1155]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:51 MailScanner[63421]: Connected to Processing Attempts Database
    Dec 7 12:52:51 MailScanner[1155]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:51 MailScanner[594]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:51 MailScanner[1155]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:51 MailScanner[594]: Connected to Processing Attempts Database
    Dec 7 12:52:51 MailScanner[63787]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:51 MailScanner[63787]: Connected to Processing Attempts Database
    Dec 7 12:52:51 MailScanner[60548]: Using locktype = flock
    Dec 7 12:52:51 MailScanner[594]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:51 MailScanner[594]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:51 MailScanner[594]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:51 MailScanner[63787]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:51 MailScanner[63421]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:51 MailScanner[60548]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:51 MailScanner[60548]: Connected to Processing Attempts Database
    Dec 7 12:52:51 MailScanner[63787]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:51 MailScanner[63421]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:51 MailScanner[58115]: Using locktype = flock
    Dec 7 12:52:51 MailScanner[59028]: Using locktype = flock
    Dec 7 12:52:51 MailScanner[63787]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:51 MailScanner[63421]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:51 MailScanner[59028]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:51 MailScanner[59028]: Connected to Processing Attempts Database
    Dec 7 12:52:50 MailScanner[58115]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:50 MailScanner[58115]: Connected to Processing Attempts Database
    Dec 7 12:52:50 check_reload_status: Syncing firewall
    Dec 7 12:52:50 MailScanner[60548]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:50 MailScanner[60548]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:50 MailScanner[60548]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:50 MailScanner[58115]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:50 MailScanner[59028]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:50 MailScanner[59028]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:50 MailScanner[58115]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:50 MailScanner[59028]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:50 MailScanner[58115]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:50 MailScanner[56192]: Using locktype = flock
    Dec 7 12:52:50 MailScanner[57547]: Using locktype = flock
    Dec 7 12:52:50 MailScanner[56192]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:50 MailScanner[57547]: Found 0 messages in the Processing Attempts Database
    Dec 7 12:52:50 MailScanner[56192]: Connected to Processing Attempts Database
    Dec 7 12:52:50 MailScanner[57547]: Connected to Processing Attempts Database
    Dec 7 12:52:50 MailScanner[56192]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:50 MailScanner[57547]: Reading configuration file /usr/local/etc/MailScanner/conf.d/README
    Dec 7 12:52:49 MailScanner[56192]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:49 MailScanner[57547]: Reading configuration file /usr/local/etc/MailScanner/MailScanner.conf
    Dec 7 12:52:49 MailScanner[57547]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:49 MailScanner[56192]: MailScanner E-Mail Virus Scanner version 4.81.4 starting…
    Dec 7 12:52:48 check_reload_status: Syncing firewall
    Dec 7 12:52:48 php: : Starting HAVP
    Dec 7 12:52:47 php: : Antivirus: Username 'havp' was added.
    Dec 7 12:52:44 php: : Reload mailscanner
    Dec 7 12:52:44 php: : Reload mailscanner
    Dec 7 12:52:44 php: : Reload mailscanner
    Dec 7 12:52:44 php: : Reload mailscanner
    Dec 7 12:52:44 php: : Reload mailscanner
    Dec 7 12:52:44 php: : Reload mailscanner
    Dec 7 12:52:44 php: : Reload mailscanner
    Dec 7 12:52:44 php: : Reload mailscanner
    Dec 7 12:52:44 php: : Reload mailscanner
    Dec 7 12:52:42 postfix/master[53314]: reload – version 2.8.5, configuration /usr/local/etc/postfix
    Dec 7 12:52:42 php: : Postfix setup completed
    Dec 7 12:52:42 postfix/postfix-script[19732]: refreshing the Postfix mail system
    Dec 7 12:52:42 php: : Reloading/starting postfix
    Dec 7 12:52:41 php: : Writing rc_file
    Dec 7 12:52:39 php: : Writing out configuration
    Dec 7 12:52:39 syslogd: kernel boot file is /boot/kernel/kernel
    Dec 7 12:52:39 syslogd: exiting on signal 15
    Dec 7 12:52:39 check_reload_status: Syncing firewall
    Dec 7 12:52:39 postfix/master[53314]: reload – version 2.8.5, configuration /usr/local/etc/postfix
    Dec 7 12:52:39 php: : Postfix setup completed
    Dec 7 12:52:39 postfix/postfix-script[13070]: refreshing the Postfix mail system
    Dec 7 12:52:39 php: : Reloading/starting postfix
    Dec 7 12:52:38 php: : Writing rc_file
    Dec 7 12:52:36 php: : Writing out configuration



  • it's running.

    go to console or ssh and do a ps ax | grep -i mailscanner

    also check if spamassassin is ok with spamassassin –lint.

    to update spamassassin rules, run sa-update
    to update clamav virus definitions, run freshclam

    As i told you, id did not finished mailscanner process check in status services.



  • Sorry - missed the point about services - mailscanner does seem to be running but no response from other commands.

    Andrew



  • no response means no problems  ;)



  • Is there a HOWTO for mailscanner in PFSense? I'm setting up an exchange server behind a PFSense firewall (both virtualized) and would like to use the PFSense VM to filter out some of the garbage before it makes it to the Exchange server. I've used SpamAssassin before, but never MailScanner, and it's been a loooonnnnggg time. :)

    I had considered running a separate Untangle VM until I saw this in the packages list.

    Thanks!
    Ben



  • The first combat is done in postfix package(more then 80% of spam is killed there).

    All mailscanner default options are in gui.

    Take a look.



  • Thanks. To be a little more clear in my question, what do I need to do from a prerequisit standpoint? Do I need to manually install a new version of perl? Do I need to install the Postfix package first? Or will the mailscanner-dev package do all this for me?

    Thanks,
    Ben



  • If you do not have any perl version installed on your box, just install postfix and then mailscanner.



  • @marcelloc:

    If you do not have any perl version installed on your box, just install postfix and then mailscanner.

    Perfect, thanks!

    EDIT
    Actually, I do have one further question. As this will be much more processor intensive than just routing traffic, what minimum specs would you recommend? I'm currently running it as a single chip single-core VM with 1G ram on an i7-920.
    I'm thinking this will be enough, but was considering upping it to a dual core to be safe.

    Thanks,
    Ben



  • It only depends on your mail traffic.

    I suggest you to read this topic about disc performance for a better setup

    http://forum.pfsense.org/index.php/topic,43737.msg226507.html#msg226507



  • @marcelloc:

    It only depends on your mail traffic.

    I suggest you to read this topic about disc performance for a better setup

    http://forum.pfsense.org/index.php/topic,43737.msg226507.html#msg226507

    Again, thanks. I will probably set up a RAMDisk for cache, since I've got 18GB in there and space for 24GB, should be a-plenty. :)

    Thanks,
    Ben



  • Hi,

    One final question. What if I have to run perl-5.12.4? I'm running in a VM and VMware Tools requires it. Can I have both installed?

    Thanks,
    Ben



  • Maybe it will not work, perl modules will be installed on 5.12 and mailscanner will look for it on 5.10.

    I'm trying to compile mailscanner latest version 4.83 in a vm with perl 5.12.

    If you can, wait some time until I finish these tests. Any mailscanner version change needs a full config check(500 options).

    If tests go fine, I'll publish package version 0.2



  • @marcelloc:

    Maybe it will not work, perl modules will be installed on 5.12 and mailscanner will look for it on 5.10.

    I'm trying to compile mailscanner latest version 4.83 in a vm with perl 5.12.

    If you can, wait some time until I finish these tests. Any mailscanner version change needs a full config check(500 options).

    If tests go fine, I'll publish package version 0.2

    Sounds good, thanks! I'm going to guess there is no "you must change these settings but can leave everything else default" list anywhere, is there? I've been reading over PostFix/mailscanner documentation but didn't know if there were any reccos.

    Thanks again,
    Ben



  • For now, you can check or fill all defaut options. This will generates a very good setup on postfix and mailscanner. Every filed has a default option or a config hint to help.

    As these packages are just helpers for sysadmins, I recommend reading postfix and mailscanner official docs/tutorials.

    I`m doing this to find usefull options to include in gui.

    It will take too long to rewrite postfix/mailscanner docs.

    Something sombody can do to help are some tutorials about configuring these services via gui.



  • @marcelloc:

    Something sombody can do to help are some tutorials about configuring these services via gui.

    I would be happy to take this on, I've done a number of tutorials previously. However, since I'm new to PostFix/MailScanner, I may have some questions on specific options to ensure I don't teach others the wrong way to do it :)

    Once I get everything set up with the new version, I'll post screenshots of my config if you don't mind, and if it's all good I'll do a video+text/image tutorial.

    Thanks,
    Ben



  • I would be happy to take this on, I've done a number of tutorials previously.

    Thanks, it will be really usefull.



  • mailscanner-dev v 4.83.5 pkg 0.1 is out.

    I'm working on gui now, to improve external checks (dcc, pyzor, etc..)

    you may need to uninstall old package and dependencies by hand. I did not tested upgrades.



  • @Fmstrat:

    @marcelloc:

    If you do not have any perl version installed on your box, just install postfix and then mailscanner.

    Perfect, thanks!

    EDIT
    Actually, I do have one further question. As this will be much more processor intensive than just routing traffic, what minimum specs would you recommend? I'm currently running it as a single chip single-core VM with 1G ram on an i7-920.
    I'm thinking this will be enough, but was considering upping it to a dual core to be safe.

    Thanks,
    Ben

    Keep in mind that it's recommended to give VMs a single processor unless you will absolutely need to add more for specific workloads. Adding extra processors to VMs can actually hurt performance because of the time it takes for the host to schedule two or more cores at once (and because of a few other considerations).



  • mailscanner-dev v 4.83.5 pkg 0.2 is out.

    Many tests and improvements on this version.

    upgrade from 0.1 needs first uninstall package and all dependencies.



  • Hello,

    I am testing your mailscanner package for personal purpose and i have several questions and some ideas.

    First about my topology i have one mail server stand alone and a pfsense running on a physical machine with postfix forwarder and mailscanner. Every mail that should end up in mail server, first arrive in pfsense box and mailscanner and clamav should search for spam and virus, then postfix forwarder send forward this message by relaying it to mail server.

    For now the simple part its working. Every message that arrive in pfsense box it's send to mail server. But i see no searching from mailscanner. Here is a part of system log:

    Dec 21 10:12:47 mx2 postfix/smtpd[20485]: connect from mail.domain.ro[xxx.xxx.xxx.xxx]
    Dec 21 10:12:47 mx2 postfix/smtpd[20485]: 34E6DEF5FB4: client=mail.domain.ro[xxx.xxx.xxx.xxx]
    Dec 21 10:12:47 mx2 postfix/cleanup[20858]: 34E6DEF5FB4: message-id=4EF194D9.5030404@domain.ro
    Dec 21 10:12:47 mx2 postfix/smtpd[20485]: disconnect from mail.domain.ro[xxx.xxx.xxx.xxx]
    Dec 21 10:12:47 mx2 postfix/qmgr[54348]: 34E6DEF5FB4: from=alexandru.munteanu@domain.ro, size=1350, nrcpt=1 (queue active)
    Dec 21 10:12:47 mx2 postfix/smtp[21058]: 34E6DEF5FB4: to=user@dom2.ro, relay=xxx.xxx.xxx.xxx[yyy.yyy.yyy.yyy]:25, delay=0.09, delays=0.01/0/0.04/0.04, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 4A02223BCC)
    Dec 21 10:12:47 mx2 postfix/qmgr[54348]: 34E6DEF5FB4: removed

    As you can see, there is no verification by anyone. Usually in linux, there is a part in log where you can see even clamav searching for virus.

    here are some commands and output:

    ps ax | grep -i mailscanner

    55907  ??  Is    0:00.02 MailScanner: master waiting for children, sleeping (perl5.12.4)
    56088  ??  S      0:00.20 MailScanner: waiting for messages (perl5.12.4)
    56228  ??  S      0:00.20 MailScanner: waiting for messages (perl5.12.4)
    56252  ??  S      0:00.11 MailScanner: waiting for messages (perl5.12.4)
    56349  ??  S      0:00.20 MailScanner: waiting for messages (perl5.12.4)

    Is there a way to se actually that the mail was scanned?

    Some ideas for mailscanner interface:

    Add a tab for quarantine where administrator could release some important mails that have been marked as spam
      Add a mailwatch interface for mailscanner.

    Thank you very much /user@dom2.ro/alexandru.munteanu@domain.ro



  • Go on postfix antispam tab and enable mailscanner integration.

    Mailwatch and quarantine tab are on my mind, it will take some time, but its on my todo list.



  • How would this compare versus establishing a Windows 2010 Edge Transport mail server in a dmz to filter spam to the Hub Transport?



  • OT but my experience of any Windows anti-spam filtering (forefront im looking at you) fails dismally.



  • @marcelloc:

    Go on postfix antispam tab and enable mailscanner integration.

    Mailwatch and quarantine tab are on my mind, it will take some time, but its on my todo list.

    I have already selected "Third part Antispam Settings > Software > Mailscanner + Spamassassin + clamav" but still doesn't appear in logs that any message it's checked for spam/virus.

    I always download last version of i386 pc version, and even if i install postfix forwarder first or mailscanner first, i end up with errors that can't find some files or some errors in different config files etc. Usually i fix them step by step.

    Should i try amd64 version? Did you work more at that version then i386?

    Thank you very much. And you are doing a great job with this antispam filter, i hope soon it will be full functional.



  • Do you have this options on your current version?

    files.pfsense.org are offline, if you tried installing it today, that's why you found missing files.




  • @tojaktoty:

    How would this compare versus establishing a Windows 2010 Edge Transport mail server in a dmz to filter spam to the Hub Transport?

    Take a look on features that postfix, mailscanner, spamassassin has to block spam.

    Here are some options you can configure:

    • spf lookup

    • anti zombie daemon

    • strong header verification

    • only process valid exchange recipients

    • Rbl checks before message body transfer

    • phishing scan

    • Bayes,ryzor,pyzor,dcc scans

    • acls to deny or reject messages based on headers, subject, body, attachments, etc

    • message content protection(mcp) features to protects company's data

    • web bugs message scan

    OT but my experience of any Windows anti-spam filtering (forefront im looking at you) fails dismally.

    I have no idea about microsoft antispam features. I use a unix server in front of exchange server for about 10 years.



  • @marcelloc:

    I have no idea about microsoft antispam features. I use a unix server in front of exchange server for about 10 years.

    likewise, actually close on 15 years now. The reason I mention this is because a fairly large hosted exchange environment required a unix layer to handle the spam as the MS portion was just not cutting it.



  • Hi all,

    version 0.2.1 of mailscanner is out.

    changes:

    • fix service status

    • fix missing dirs in clamav startup script

    • fix bug in mailscanner startup script



  • @marcelloc:

    Hi all,
    version 0.2.1 of mailscanner is out.

    I too am having problems with the current version ( 4.83.5 pkg v0.2),  the GUI does not reflect the newer version you have released,  where might i install this from using pkg?

    thanks,
    greg



  • There is a post from Jimp saying that there is problem on replication to production server.

    The solution is just wait.  :(



  • standing by..

    thanks!
    g



  • Its up again, try to upgrade the package and feedback  ;)