Cannot open config file restart

Jim Holland mailscanner at mango.zw
Fri May 26 11:19:15 IST 2006


On Fri, 26 May 2006, Remco Barendse wrote:

> I have a strange problem, after installation of MailScanner (bare metal 
> recovery) I get an error when I try to re-load from the command line but 
> calling the init script directly seemes to work?  Nothing serious just 
> wondering if it's a bug or feature.
> 
> [root at smtp mail]# /etc/init.d/MailScanner restart
> Shutting down MailScanner daemons:
>           MailScanner:                                      [  OK  ]
>           incoming sendmail:                                [  OK  ]
>           outgoing sendmail:                                [  OK  ]
> Starting MailScanner daemons:
>           incoming sendmail:                                [  OK  ]
>           outgoing sendmail:                                [  OK  ]
>           MailScanner:                                      [  OK  ]
> [root at smtp mail]# cd /tmp
> 
> [root at smtp tmp]# MailScanner restart
> Cannot open config file restart, No such file or directory at 
> /usr/lib/MailScanner/MailScanner/Config.pm line 597.

You are running two totally different commands.  The first is the bash
initialisation script in /etc/init.d that deals with the actual service 
itself, and it has the following options:

Usage: service MailScanner {start|stop|status|restart|reload|startin|startout}

If you are running Red Hat as you seem to be then the command is normally 
run as "service MailScanner {option}", eg "service MailScanner restart".

In the second case you are running the bare "MailScanner" command, which
(providing the file is in your default path) would normally be the
MailScanner Perl script, which is a different animal altogether - it is
normally located in /usr/sbin if you are using Red Hat.  It does not have
any restart option for use on the command line and is not normally run
interactively except in debug mode or to check the version etc.  Its usage is:

MailScanner [ -h|-v|--debug|--debug-sa|--lint ] |
            [--value=<option-name> --from=<from-address>
             --to=<to-address>,    --to=<to-address-2>, ...]
             --ip=<ip-address>,    --virus=<virus-name> ]
            <MailScanner.conf-file-location>

Regards

Jim Holland
System Administrator
MANGO - Zimbabwe's non-profit e-mail service



More information about the MailScanner mailing list