On Wed, Aug 23, 2000 at 09:29:56AM +0100, Philip Hazel wrote:
> On Tue, 22 Aug 2000, Marc MERLIN wrote:
>
> > > There isn't one, on efficiency grounds. The file gets read frequently.
> >
> > If exim runs as a daemon, not really :-)
>
> Unless you are running with a low security setting, the daemon is going
> to re-exec Exim every time a message arrives, in order to start the
> delivery (unless you have queue_only set). Every time Exim execs, it
> reads the file.
Aaaahhh, that explains why I had those problems due to exim using a new
exim.conf file that I was editing _before_ I restarted it.
> > (incidently my ssmtp relay got broken today because exim.conf got modified
> > and not exim.conf.auth. That's exactly what I wanted to avoid...)
>
> When files have to be kept in step, a build process is your friend.
> That's why I wrote makezones for DNS zone files.
Well, considering that it isn't safe to edit the live file, definitely...
I just wrote a quick Makefile:
----------------------------------------------------------------------------
exim: exim.conf exim.conf.auth
exim.conf: exim.conf.master
@echo "Rebuilding exim.conf from exim.conf.master"
@chattr -i exim.conf
@cp exim.conf.master exim.conf
@chattr +i exim.conf
exim.conf.auth: exim.conf.master
@echo "Rebuilding exim.conf.auth from exim.conf.master"
@chattr -i exim.conf.auth
@sed "s/#AUTH //" < exim.conf.master > exim.conf.auth
@chattr +i exim.conf.auth
----------------------------------------------------------------------------
Thanks for the info,
Marc
--
Microsoft is to software what McDonalds is to gourmet cooking
Home page:
http://marc.merlins.org/ (friendly to non IE browsers)
Finger marc_f@??? for PGP key and other contact information