On Sun, Feb 17, 2002 at 05:04:23PM +0000, Sean Rima wrote:
| On Sat, 16 Feb 2002, dman spake thusly:
| > On Sat, Feb 16, 2002 at 12:54:14AM +0000, Sean Rima wrote:
| >| Originally to: All
| >|
| >| I am curious, is it possble to get EXIM to see if there is a PID
| >| file and if said pid file exists to send mail on without queueing
| >| it. I am dialup and this would help me as I forget to do a sendmail
| >| -q a lot of the time :)
| >
| > ~~~~ /etc/ppp/ip-up.d/exim
| > #!/bin/sh
| >
| > # Flush exim queue
| > if [ -x /usr/sbin/exim ]; then
| > /usr/sbin/exim -qf
| > fi
| > ~~~~
| >
| > With this file (part of the debian package, btw), the exim will be
| > told to deliver the mail whenever the PPP link comes up (ie you run
| > 'pon').
|
| I do something similar when PPP comes up, but sometimes, I can stay on
| the net for a few hours and until I reconnect, unless I do a sendmail
| - -q, the mail sits in the queue. I may write a small daemon that would do
| the job for me.
Mmm, if you're still connected, why wouldn't the messages be sent
immediately instead of being queued?
As for a deamon :
sh -c "while [ 1 ] ; do sleep 10m ; exim -q ; done" &
:-)
-D
--
Pride only breeds quarrels,
but wisdom is found in those who take advice.
Proverbs 13:10