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

    MAilscanner 4.84.6 pkg v.0.2.10 doesn't start

    Scheduled Pinned Locked Moved pfSense Packages
    9 Posts 3 Posters 2.0k 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.
    • S
      seba1234
      last edited by

      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.

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

        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.

        1 Reply Last reply Reply Quote 0
        • S
          seba1234
          last edited by

          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.

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

            @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.

            1 Reply Last reply Reply Quote 0
            • S
              seba1234
              last edited by

              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.

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

                @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.

                1 Reply Last reply Reply Quote 0
                • W
                  weyermann
                  last edited by

                  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?

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

                    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.

                    1 Reply Last reply Reply Quote 0
                    • W
                      weyermann
                      last edited by

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

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