Re: exim on laptops: smarthost on demand
On Mon, Jul 28, 2003 at 11:23:45AM -0300, Christian Lyra wrote:
> I use to use the ifupdown-roaming package. With this package the machine
> automagically detect the right network and may run custom commands. So, to
> solve your problem is only a matter of putting a little script on the "up /
> down" network interface section.
> You can have two exim configuration files, let?s say, exim.conf-home and
> exim.conf-other. On the "up" interface command you choose the right one, link
> it to exim.conf, and restart exim.
> ah... of course... you can hack /etc/init.d/exim too, and choose the right
> config file at start.
This is not the problem. The problem is to avoid two configuration files
for exim when only a couple of lines are different. It is also hard to
keep the configurations in sync. Imagine, you have 3 or 4, or even more,
configurations for exim, you change a line and then you have to copy the
new configuration 3 or 4 times and change every config file so that the
smarthost entries are not lost.
Andreas "Jimmy" Gredler, email@example.com
Get my public key at www.g-tec.co.at