stephen noble wrote:
>
> > It claims to patch qmail so that it hold outgoing e-mail.
> >
> > Can anyone help me with this. I do not know how to recompile
> > QMAIL.
> >
> > Maybe this is something for Stephen Noble, he wrote also
> > e-smith-ISP as an contrib modules
>
> no way Patrick
> this has a simple answer, i just can remember it
> i use another method, ie disabling diald triggers
> so i an not motivated to rediscover it
>
> stephen
qmail works fine, best not to tamper with it

The problem is the way a connection is established when you use a dialup line.
As soon as a DNS request is made (UDP port 53), then diald will up the link to allow the DNS request to be serviced. You can add a line to diald.filter which will tell diald to ignore any DNS lookups. I think Stephen Noble originally came with the line in diald.filter:
#no udp for e-smith-isp
ignore udp any
This line tells diald to ignore any UDP request (which will include a DNS lookup).
What you need is a similar line in diald.filter to prevent diald from bringing the link up when mail is directed outside your local network.
I would imagine that the line to add will be something like:
ignore tcp tcp.dest=tcp.smtp
This should prevent a dialup when there is only outgoing mail. The mail will be sent next time the link is up.
I cannot test it now, but you may wish to try it and report back

Jaco Bongers