This took me awhile too. Seems like a common request. Maybe someday it will be
an option to select somewhere.

Anyway, you need to do several things:
1. Edit the /etc/sendmail.cf file and change the DeliveryMode setting from
'background' to 'deferred'.
2. Create a cron job to trigger diald (ie. echo "up" > /etc/diald/diald.ctl)
every hour. This will cause a dialout, then diald will hangup after the
timeout period you have set.
3. Put a command in your /etc/ppp/ip-up script to flush the mail queue when it
is up. (ie. /usr/sbin/sendmail -q ) The only drawback is that while online,
anything you send will stack up in the queue until you issue another sendmail
-q command. I'm playing around with some scripts now that copy two different
copies of sendmail.cf back and forth. One has deliverymode set to background
so mail will go out immediately while online, and one with deferred so it will
queue up while offline. Works OK, but once in awhile sendmail just disappears.
??
4. You should have at least a cacheing DNS server running also. See the
DNS-HOWTO for info.

All this is based on RedHat, but should work on most distros with little mods.

Hope this helps...

- Gary



Dale Perkel wrote:
> 
> Hi, I'm having a problem with running sendmail and diald at the same time.
> I've tried different versions of both and still having problems. What I want
> to set up is a box that can dial on a user on the LAN request, ie, normal
> dial on demand and also a cron task that will send all queued mail every
> hour. The problem is that when I run diald as soon as one of the
> workstations on the LAN send an email to the linux box's sendmail the modem
> straight away dials out straight away and if I switch the modem off or don't
> allow it to dial sendmail rejects the mail back to the workstation on the
> LAN. If I kill diald and leave sendmail running, it works PERFECTLY, queues
> the mail exactly right etc. I tried disabling sendmail DNS, that didn't
> help.
> 
> If anyone can help me out with this problem I'd really appreciate it. As I
> say, I'm not sure if its diald or sendmail.
> 
> Thanks,
> Dale Perkel
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-diald" in
> the body of a message to [EMAIL PROTECTED]

-- 
Edison Information Technologies
P.O. Box 554
Milan, OH  44846-0554
419.499.7040
www.EdisonInfo.com
[EMAIL PROTECTED]
--

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

Reply via email to