Re: online/offline exim config
Hi,
Joao Clemente <jpcl@rnl.ist.utl.pt> writes:
> > In fact, you only need exim running if you are online (to process
> > possible connection errors).
> >
> > So, the minimal working situation would be schematically:
> >
> > .- On ifup --> start exim -q30m
> > .- On ifdown --> stop exim
> > .- Use "sendmail" as the MTA in your e-mail client.
> > .- inetd not running
>
>
> But... Can you qeue mail without having it running?!?
> (Maybe yuo can.. I was suposing you couldn't..)
Yes, e.g.:
$ ps axu |grep exim
guasch 11891 0.0 0.2 1276 416 pts/5 S 22:00 0:00 grep exim
(no exim running)
$ ifconfig
lo Link encap:Local Loopback
[...]
(no net connection. If you are connected to the net, it will be sent
directly to the recipient)
$ echo hi | mail some@email.address.com
$ sudo mailq
0m 318 18xZYw-0003Du-00 <some@email.address.com>
some@email.address.com
Now, it will stay there, until the exim goes through the queue
and delivers it.
We have to wait 15 minutes, because in the default exim configuration
messages failed less than 15 minutes ago are not processed.
$ sudo mailq
15m 318 18xZYw-0003Du-00 <some@email.address.com>
some@email.address.com
$ sudo ifup eth0
(get up the network)
$ sudo /etc/init.d/exim start
Starting MTA: exim.
(start exim)
$ sudo mailq
There is no message in the queue.
Best regards,
Jaume
--
Reply to: