Re: [exim] way to delay by time of day?

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Christian Recktenwald
Data:  
Para: OpenMacNews
CC: exim-users
Asunto: Re: [exim] way to delay by time of day?
On Sat, Sep 17, 2005 at 11:09:18PM -0700, OpenMacNews wrote:
> hmmm ... noone working on Sat nite =)
>
> a question abt what i thought was going to be a simple task -- varying smtp
> delay by time of day.


/slightly/ more elegant:

one cronjob to vary /etc/exim/DELAY
    echo "DELAY = 55s" >  /etc/exim/DELAY


including this in exim.conf:
     .include /etc/exim/DELAY


then using the DELAY macro in exim.conf
    delay = DELAY


so the cronjob just has to HUP exim.


or:

use an acl variable (e.g. acl_m9) which is set from a "warn" acl
which checks a condition for date.

raw idea:

    # default 
    warn    
        set acl_m9 = 10s
    # increased on weekends
    warn 
        condition = if sat or sun
        set acl_m9 = 55s


    ...


    # usage
    warn
        delay = $acl_m9
        ...


-- 
Christian Recktenwald      :                         :
citecs GmbH                : exim-users-dist@???
Unternehmensberatung fuer  : voice +49 711 601 2090  : Boeblinger Strasse 189
EDV und Telekommunikation  : fax   +49 711 601 2092  : D-70199 Stuttgart