Koozali.org: home of the SME Server

delivering mail by CRON?

Patrick Schepers

Re: delivering mail by CRON?
« Reply #15 on: February 02, 2002, 03:58:41 AM »
I've found something what the writer calles QMAIL-HOLDREMOTE PATCH.

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

Here's the link

http://www.mimir.com/~leveret/qmail.html

Thanks

Patrick Schepers
The Netherlands

stephen noble

Re: delivering mail by CRON?
« Reply #16 on: February 02, 2002, 10:39:38 AM »
> 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

Jaco Bongers

Re: delivering mail by CRON?
« Reply #17 on: February 02, 2002, 12:33:30 PM »
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

Patrick Schepers

Re: delivering mail by CRON?
« Reply #18 on: February 08, 2002, 07:43:46 PM »
Jaco Bongers wrote
start quote:
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

end quote

I've added the lines

ignore tcp tcp.dest=tcp.smtp
ignore tcp tcp.source=tcp.smtp

I even changed everything which starts with UPD to ignore it
ending with "ignore upd any"
and still the connection to my ISP is triggered and e-mail is delivered

in the logfiles is read

trigger tcp 192.168.0.150/1170 194.109.6.49/25

can anyone help to figure out what is triggering DIALD when via a client a email is send.

Thanks

Patrick Schepers
the Netherlands

Gordon Rowell

Re: delivering mail by CRON?
« Reply #19 on: February 14, 2002, 02:27:39 AM »
Place the value '0' (the digit zero) in

 /var/qmail/control/concurrencyremote

Restart qmail

To start mail delivery, put a larger value in there and
restart qmail.

Warning: that file is templated and may be regenerated by
manager actions. You should override with a custom template.

Gordon

Patrick Schepers

Re: delivering mail by CRON?
« Reply #20 on: February 14, 2002, 02:50:21 AM »
Thanks Gordon I will try it very soon

Patrick

stephen noble

Re: delivering mail by CRON?
« Reply #21 on: February 14, 2002, 04:37:23 AM »
Gordon Rowell wrote:
>
> Place the value '0' (the digit zero) in
>
>  /var/qmail/control/concurrencyremote

excellent gordon !
i'll make an rpm so we never have to answer this question again

regards
stephen noble
dungog.net/sme

saleem

Re: delivering mail by CRON?
« Reply #22 on: June 23, 2002, 07:51:46 PM »
Was the rpm for this problem ever created ?

if so where can I find it ?

cheers.

saleem

Re: delivering mail by CRON?
« Reply #23 on: June 23, 2002, 07:51:47 PM »
Was the rpm for this problem ever created ?

if so where can I find it ?

cheers.