MailScanner 5.0.7-2

Jerry Benton jerry.benton at
Sat Feb 17 19:11:41 UTC 2018


Jerry Benton
- via mobile
From: MailScanner < at> on behalf of Mark Sapiro <mark at>
Sent: Saturday, February 17, 2018 1:54:16 PM
To: mailscanner at
Subject: Re: MailScanner 5.0.7-2

On 02/17/2018 07:12 AM, Jerry Benton wrote:
> Did you run this installer as the root user? On Ubuntu, after you log in:
> sudo -i
> Then install.

That probably isn't the reason as won't run if not invoked by

> *From:*MailScanner
> [ at]
> *On Behalf Of *Michael Abboud
> *Sent:* Saturday, February 17, 2018 04:21
> *To:* mailscanner at
> *Subject:* Re: MailScanner 5.0.7-2
> The *./install --update *command worked up until the last part of the
> script which attempts to install the .deb package.
> The install log says:
> .
> .
> .
> Installing the MailScanner .deb package ...
> (Reading database ... 261497 files and directories currently installed.)
> Preparing to unpack .../MailScanner-5.0.7-2-noarch.deb ...
> cp: cannot stat '/etc/MailScanner/CustomFunctions/*': No such file or
> directory
> dpkg: error processing archive
> /home/sysadmin/MailScanner-5.0.7-2/MailScanner-5.0.7-2-noarch.deb
> (--install):
>  subprocess new pre-installation script returned error exit status 1

That comes from the pre-installation script.  The offending path is in
the following which is trying to make a backup of
/etc/MailScanner/CustomFunctions if it exists.

if [ -d '/etc/MailScanner/CustomFunctions' ]; then
        mkdir -p ${SAVEDIR}/etc/MailScanner/CustomFunctions
        cp -f /etc/MailScanner/CustomFunctions/*
        rm -rf /etc/MailScanner/CustomFunctions

I think the reason must be that you have a
/etc/MailScanner/CustomFunctions/ directory so [ -d
'/etc/MailScanner/CustomFunctions' ] is True, but it is empty so there
is no /etc/MailScanner/CustomFunctions/* file.

If that is the case, just 'rmdir /etc/MailScanner/CustomFunctions' and
you should be OK.

Mark Sapiro <mark at>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

MailScanner mailing list
mailscanner at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the MailScanner mailing list