On Thu 10 Sep 1998, Ben Smithurst wrote:
> Paul Slootman wrote:
>
> > The switching between online and dial-on-demand is done via a command in
> > /etc/ppp/ip-up and /etc/ppp/ip-down.
> >
> > Now, I currently have queue_smtp set, so that exim doesn't immediately
> > cause a dialout when a message is sent.
>
> You mean queue_remote, surely? queue_smtp will still cause a DNS lookup
> (it does here anyway).
No, queue_smtp. As I said, I have DNS capability via the corporate
firewall, it's just that the corporate mail arrangement is so instable
(sometimes messages simply disappear, sometimes incoming mail is bounced
for completely bogus reasons, etc; all due to incompetency) that our
department has its own little linux mailhost with an ISDN dial-on-demand
link.
> > I can't currently see how this could be done, short of editing the
> > config file every time (yuck!).
>
> What's so yuck? What I do is have something run from ppp.linkup like:
I don't like this type of thing, as there is a race condition between
replacing the old config with the new. If exim happens to want to read
the file just when it's being replaced, Bad Things might happen.
An alternative would be an #include type of mechanism for the config
file. I just had a quick look, but couldn't find anything like that.
The config file could then include a (one-liner) file that either says
"queue_whatever" or not, depending on the connection state.
Paul Slootman
--
home: paul@??? | work: paul@??? | debian: paul@???
http://www.wurtel.demon.nl | Murphy Software, Enschede, the Netherlands
--
*** Exim information can be found at
http://www.exim.org/ ***