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