breakage between 4.68.5 and 4.68.8
Julian Field
MailScanner at ecs.soton.ac.uk
Thu Apr 3 19:58:25 UTC 2008
Jeff A. Earickson wrote:
>>>> Put the location of the MailScanner.conf on the command-line and it
>>>> should be happier.
>>>> At that point it doesn't know where the conf file is.
>>>> I'll try to sort this for the next release.
>>>
>>> Still sifting thu email, found this... I start MailScanner via my
>>> /etc/init.d script, the start portion looks like so (Solaris 10 here):
>> I assume you have it properly setup as a service and start and stop
>> it with
>> svcadm enable site/mailscanner
>> and
>> svcadm disable site/mailscanner
>> ?
>
> I am using a legacy start/stop script in /etc/init.d, didn't see the
> need for the complexity of SMF.
>
>>>
>>> MSDIR=/opt/MailScanner
>>> case "$1" in
>>> start)
>>> su - root -c "$MSDIR/bin/check_mailscanner"
>>> status=$?
>>> ;;
>>>
>>> So I went and looked at check_mailscanner. It has:
>>>
>>> process=MailScanner
>>> msbindir=/opt/MailScanner/bin
>>> config=/opt/MailScanner/etc/MailScanner.conf
>>>
>>> so config matches where my MailScanner.conf file really lives, unless
>>> symlinks have suddenly quit working. And I don't think they have.
>>>
>>> Jeff Earickson
>>> Colby College
>> And what happens when you run MailScanner --lint with the location of
>> the MailScanner.conf on the command-line, like this:
>> /opt/MailScanner/bin/MailScanner --lint
>> /opt/MailScanner/etc/MailScanner.conf
>> ?
>
> Getting the $ConfFile path specified correctly at line 768 of
> CustomConfig.pm
> certainly helps, and the lint test above works correctly even if the
> patch
> to CustomConfig.pm is pulled out. So, as long as MailScanner gets
> invoked
> with the correct path to MailScanner.conf spelled out, things work. But
> I invoke MailScanner via my boot script, which uses check_mailscanner and
> has "$process $config" in there to specify the conf file path, and
> then it
> doesn't work.
Doesn't work? It should do as it runs $process (MailScanner) with the
correct $config which should point to /opt/MailScanner/etc/MailScanner.conf.
> <head scratch> check_mailscanner hasn't changed in ages.
>
> I am now running 4.68.8 with the patch and the correct conf path in
> CustomConfig.pm. But I don't really know what broke.
There is a new setting that upgrade_MailScanner_conf would have shown
you, called "Automatic Syntax Check" which is set to "yes" by default.
This invokes a "MailScanner --lintlite" before it forks, so you get
warning of duff config files with syntax errors in them before it
actually starts up, rather like Apache does. Someone requested it.
Jules
--
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key: http://www.jules.fm/julesfm.asc
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MailScanner-Beta
mailing list