Re: [Exim] sending messages > 10MB between 18.00 and 06.00

Góra strony
Delete this message
Reply to this message
Autor: Nico Erfurth
Data:  
Dla: Thomas Baumann, exim-users
Temat: Re: [Exim] sending messages > 10MB between 18.00 and 06.00
Thomas Baumann wrote:
> Hello list,
>
> Can sb. help me to build a router which collects mail bigger than
> 10MB and sends these mails between 18.00 an 06.00 ?
> Is this possible at all ?
> Is it possible to defer mails temporarily ?



Use this as your first router:
This one requires exim4

check_time_size:
   driver = redirect
   domains = ! +local_domains
   condition = ${if and {\
         {> {$message_size} {10M}}\
         {< {${substr_11_2:$tod_log}} {18}}\
         {> {${substr_11_2:$tod_log}} {6}}\
         }{yes}{no}\
                }
   data = :defer: Queued for later delivery
   no_verify


you should run a cronjob at 18:00 to force delivery, use something like
exim -qff and run it every 30 minutes or so until 06:00

ciao