MAilscanner 4.84.6 pkg v.0.2.10 doesn't start



  • I made a fresh install of pfsense 2.1.5 with postfix and mailscanner, after configuring it the mailscanner service doesn't start.
    I have an older vm with pfsense 2.1.5 and MAilscanner 4.84.6 pkg v.0.2.6 with the same configuration and it works fine.
    I see that the file /usr/pbi/mailscanner-amd64/etc/MailScanner/Mailscanner.conf is not updated when I change the configuration in the gui, I also copy the conf file from the other vm but isn't working.
    Anyone else had this problem?
    Where can I find the pkg version 0.2.6?

    Thanks.



  • First go to the command line and do:

    /usr/local/etc/rc.d/mailscanner onestop

    /usr/local/etc/rc.d/mailscanner onestart

    You should see the error to what ever is preventing it from starting.

    The reinstall as well as the install is buggy and doesn't always work.

    I would also check and make sure that

    /usr/local/etc/rc.d/"mailscanner"  <-exists and it is not just a blank file I have seen this before.  If it is blank  hopefully you have a backup and just copy the file over.



  • When I run mailscanner onestart I receive this message:
    Could not read executable /usr/sbin/sendmail at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 2897.
    Error in line 201, file "/usr/sbin/sendmail" for sendmail does not exist (or can not be read) at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 3151.
    File containing list of incoming queue dirs (/var/spool/mqueue.in) does not exist at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 1819.

    I tried installing the package in other firewall but the problem is the same.
    I find it strange that the file Mailscanner.conf is not updated when I made changes with the gui.

    Thanks.



  • @seba1234:

    When I run mailscanner onestart I receive this message:
    Could not read executable /usr/sbin/sendmail at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 2897.
    Error in line 201, file "/usr/sbin/sendmail" for sendmail does not exist (or can not be read) at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 3151.
    File containing list of incoming queue dirs (/var/spool/mqueue.in) does not exist at /usr/pbi/mailscanner-amd64/lib/MailScanner/MailScanner/Config.pm line 1819.

    I tried installing the package in other firewall but the problem is the same.
    I find it strange that the file Mailscanner.conf is not updated when I made changes with the gui.

    Thanks.

    Yes I have seen that exact problem in a reinstall.  The install is supposed to detect the postfix package and the configure properly however for some reason it does not and I could not figure it out.  Hopefully you have a full backup from before the upgrade.  If you do extract the config from the backup and copy it over the existing one.  The it should work and the changes made from the gui will work.



  • Ok, I used an old backup.
    I will continue trying because now I'm not able to make a fresh install of the firewall.
    Thanks.



  • @seba1234:

    Ok, I used an old backup.
    I will continue trying because now I'm not able to make a fresh install of the firewall.
    Thanks.

    I am not sure if you understood what I said.  Don't restore the box from the backup.  Keep it as a fresh install with the packages you needed.  However just extract the Config.pm from your backup and copy if over to the mailscanner directory and it will startup without the errors.



  • Hello I've the same problem but I don't have an old mailscanner conf backup. What do I need to change to start mailscanner again?



  • The answer is in this thread: https://forum.pfsense.org/index.php?topic=43687.0

    @EHN_Helpdesk:

    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.

    On my installs it is line 37 "if ($pf_version != "2.1")"  either way change it to 2.1.5  go into mailscanner and save the config and then either reboot the box or manually restart mailscanner from the command line.



  • Thanks for the fast reply. It worked for me, thanks