You want to do two things:
        
        -- when you "send" an e-mail, you want it put in the mail 
                queue instead of being sent immediately.

        -- you want the queue processed only when the host is 
                connected to your ISP.

To do the first, you want your e-mail client to invoke sendmail with the -od
option (put in the queue AND defer DNS checks - "man sendmail" has the
details). Since you don't say what mailer you are using, I don't know how
you should do that (it's easy to do in a custom app written in, for example,
perl).

To do the second, I'd change the sendmail daemon so it *never* processed the
mail queue (leave off the -q15m (or whatever number yours uses) flag) and
write a small cron script that checked connectivity say once an hour, then
launched a queue-processsing sendmail process if the host was connected.

Hope this helps. Good luck.

P.S. Please turn off the "add html duplicate" setting in your mailer. It's
not customary on this list to include html.

At 03:45 PM 5/25/99 +0200, Langa Kentane wrote:
>How can I configure sendmail to send queued mail when my access router,
doing IP masquerading, is online.  The router is only online once a day and
only for a couple of hours.  About 5.   The router is configured to do dial
on demand but now the problem is that send mail just sends the mail thru
immediately.  I want it to check if it is online first and not make the
router dial, bofore it can try and send mail.
>
>Thanks.  I don't know if this will be fully understandable, my english
grammar is not so good.
[html repeat deleted]
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
762 Garland Drive
Palo Alto, CA  94303-3603
650.328.4219 voice                              [EMAIL PROTECTED]        
----------------------------------------------------------------

Reply via email to