"TGAPE!" wrote:
> 
> Jan Carlson wrote:
> > Col Mackrory wrote:
> >>
> >> Hello All,
> >>
> >> I am looking for a way to test if there is mail to send - and only bringing
> >> up the link if the answer is positive.
> >>
> >> Before using Diald I happily ran shell script - that albeit clumsy - did
> >> the job. Now using Diald the script brings the link up.
> >>
> >> Note - if I ran the script from root Diald only brought up the link if
> >> there was mail to send. When I run it from cron - I get the indication that
> >> no mail is there to send - but the link comes up anyway.
> >>
> >> So...I am looking for a shell script I can use that will test if I have
> >> mail - and only bring the linkup if I do.
> >
> > The mqueue command causes sendmail to bring up the link
> > unless you run sendmail in deferred mode.
> > In sendmail.cf, use this option:
> >
> > O DeliveryMode=deferred


Ed,

RedHat 5.2's current sendmail (sendmail-8.8.7-20.i386.rpm)
definitely does NOT make DNS queries with

  O DeliveryMode=deferred

I can sit here and send dozens of messages, sendmail
queues them, and the modem never dials, until my cron
job does 'sendmail -q' which brings the link up.

It is so easy to update sendmail if your Linux uses rpm,
you might as well - since the newer sendmail has fewer
security problems.  I say fewer because there are undoubtedly
still more waiting to be discovered.

Jan

-- 

Jan Carlson
[EMAIL PROTECTED]   Scarborough, Ontario, Canada
Mailed with Netscape 4.5 on Red Hat Linux 5.2

-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to