Re: online/offline exim config
- To: laptop <firstname.lastname@example.org>
- Subject: Re: online/offline exim config
- From: Derek Broughton <email@example.com>
- Date: Mon, 24 Mar 2003 11:12:37 -0400
- Message-id: <firstname.lastname@example.org>
- References: <Pine.GSO.4.44.0303241430260.9319-100000@mega>
From: "Joao Pedro Clemente" <email@example.com>
> > > My dream mail configuration looks like this: while off-line, spool the
> > > outgoing mail into some file, and then when I'm on-line, send it in one
> > > run. While on-line (i.e. at work, where I have permanent connection),
> > > mail should be sent right away.
> > I use ifplugd (apt-get it) and fetchmail...
> > When plugged, my ifplugd config start exim to flush the queue (Exim is
> > configured with smarthost).
> I actually am doing things "by hand", as I havent found a way for exim to
> know what is a "offline state": I found out that "exim -q" flushes the
> mails I have in my mail queue (instead of waiting for the next retry date)
> I haven't understood this reply: If you just start exim when you get
> online, what happens when you try to send mail while offline? If exim is
> not running, will it not fail?!?
I use much the same config. Exim can be running but not necessarily ready to
run the queues at the same time as you connect, so you have ifplugd, or
whereami, or some other network-aware program, do an explicit queue run at
Meanwhile, exim doesn't need to know if it's offline - you send it mail, it
tries to forward it, and if it can't it puts it in the queue for retry.