Configuration suggestion...

Martin Hepworth maxsec at gmail.com
Tue Aug 11 12:15:57 IST 2009


Jules
so If I have multiple config files with the same option set, which one
'wins'? Is this some by ascii codes and the highest one will win?

-- 
Martin Hepworth
Oxford, UK
2009/8/11 Julian Field <MailScanner at ecs.soton.ac.uk>

>
>
> On 11/08/2009 10:13, Glenn Steen wrote:
>
>> 2009/8/11 shuttlebox<shuttlebox at gmail.com>:
>>
>>
>>> On Tue, Aug 11, 2009 at 10:13 AM, Julian
>>> Field<MailScanner at ecs.soton.ac.uk>  wrote:
>>>
>>>
>>>> Adding "include" files means that I need to allow settings to be
>>>> over-written by later instances of the same setting, and I need to keep
>>>> track of a whole stack of nested "include" files. Currently it will
>>>> complain
>>>> if it sees the same setting twice, but I would have to disable that,
>>>> which
>>>> I'm not keen on doing. And in the nested "include" file handling, I've
>>>> got
>>>> to do loop detection and other nasties so you can't trivially break it.
>>>>
>>>>
>>> You could use MailScanner.conf as the master and the only one allowed
>>> to include other files. Then just let settings override each other.
>>> That's simple and good enough in my opinion, I doubt anyone _really_
>>> needs nesting.
>>>
>>>
>>>
>> I rather doubt anyone *really* needs includes either. The upgrade
>> process is very fast and simple IMO, and this isn't one of the
>> trickier parts.
>> I further wouldn't want the upgrade script to run automatically, but
>> that might be just me:-)
>>
>>
> Well, you now have fully nested "include" lines, which also support
> wildcards. A sample valid line is
>    include /etc/MailScanner/conf/*.conf
> Included files can include arbitrary numbers of other include files, and so
> on.
>
> Even the upgrade_MailScanner_conf file should cope with the new syntax, and
> will just upgrade the MailScanner.conf file it is given on the command-line,
> it will not follow include paths.
>
> 4.78.8-1 is where it's all at :-)
>
> Happier now? ;->
>
> Jules
>
> --
> Julian Field MEng CITP CEng
> www.MailScanner.info
> Buy the MailScanner book at www.MailScanner.info/store
>
> Need help customising MailScanner?
> Contact me!
> Need help fixing or optimising your systems?
> Contact me!
> Need help getting you started solving new requirements from your boss?
> Contact me!
>
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
> Follow me at twitter.com/JulesFM and twitter.com/MailScanner
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20090811/4003b0e1/attachment.html


More information about the MailScanner mailing list