Sendmail a pozdrzanie velkej posty na noc

Rehor Petr petr.rehor na i.cz
Čtvrtek Duben 18 18:46:24 CEST 2002


> > Ruleset by pak tedy mohl vypadat nejak takhle:
> > 
> > KNightLimit arith
> > 
> > Squeuegroup
> > R $* $: $(SLimit l $@ $&{msg_size} $@ 1536000 $)
> > R TRUE  $: $#JUSTNOW
> > R FALSE $: $#ATNIGHT

...

> Pokud je to vse nekde popsano, omlouvam se a staci odkaz 
> (doufam, ze ne na zdrojaky sendmailu nebo na "bichli" od
> O'Reillyho).

Proc hned hazet flintu do zita. V tlustospise (v mem pripade
v sendmail/doc/op.txt, i kdyz co to je za tlustospis kdyz to
ma jenom 160 stranek :-) se pise:

arith     Perform simple arithmetic  operations.   The
          operation  is  given as key, currently +, -,
          *, /, %, |, & (bitwise OR, AND), l (for less
          than),   and   =  are  supported.   The  two
          operands are given as arguments.  The lookup
          returns  the result of the computation, i.e.
          TRUE or FALSE for comparisons, integer  val-
          ues otherwise.  All options which are possi-
          ble for maps are ignored.  A simple  example
          is:

               Kcomp arith

               ...

               Scheck_etrn
               R$* $: $(comp l $@ $&{load_avg} $@ 7 $) $1
               RFALSE$# error ...

Takze staci jenom lehce zkorigovat Danuv zapis a mohlo by
to fungovat.
 
> > Pisi to uz zase popameti, takze to nemusi byt uplne v 
> > poradku. Limit je nastaven na 1536000B a jmena fromt jsou
> > JUSTNOW a ATNIGHT - pak by zbyvalo jeste zprovoznit
> > prislusne daemony ve vhodne doby obsluhujici tyto fronty.
> 
> A to by ty daemony spoustely neco jako "sendmail -q" (se
> specifikaci prislusne fronty)?

2.3.2.  Queue Runs

        sendmail has two different ways to process the
   queue(s).  The first one is to start queue  runners
   after certain intervals (``normal'' queue runners),
   the second one is to keep  queue  runner  processes
   around  (``persistent''  queue  runners).   How  to
   select either of these types is  discussed  in  the
   appendix  ``COMMAND LINE FLAGS'' .....

> --
>                                               Lubos Kaspar
> 

Petr Rehor
ICZ a.s.
Pobocka Ceske Budejovice
J. S. Baara 40, 370 01 Ceske Budejovice, CZ
Tel: +420 (38) 731 28 08
Fax: +420 (38) 731 14 80
mailto:petr.rehor na i.cz
http://www.i.cz


Další informace o konferenci Sendmail