Re: [exim] Freeze large mails for delivery afterhours

Top Page
Delete this message
Reply to this message
Author: Odhiambo Washington
Date:  
To: b-boy
CC: exim-users
Subject: Re: [exim] Freeze large mails for delivery afterhours
On Mon, Feb 9, 2009 at 1:54 PM, b-boy <thys.kitshoff@???> wrote:

>
> Hi all
>
> I have been trying to set up a router to freeze all large mails sent in
> office hours. This is what my ACL and router looks like
>
> set acl_m0 = ${extract{2}{}{$tod_log}}
> set acl_m1 = ${extract{1}{:}{$acl_m0}}
>
> freez_large_mail:
>     driver = manualroute
>      condition = ${
> and{<{message_size*rcpt_count}{10M}}{or{>{acc_m1}{8}{<{acl_m1}{17}}}
>     allow_filter
>     allow_freeze
>     data = '#Exim filter \n freeze'

>
> So I just want to know if my logic makes sense and if it will work. I also
> get an error from exim saying it does not understand "allow_filter"
> "allow_freeze" and "data", do i need to compile exim with a special option
> or do I need to enable something in my config.



This is rather funny.

I think the logic you need to develop is as follows:
1. If the time is after 0800hrs before 1700hrs
2. And the $message_size*$recipient_count is NOT greater than 10MiB

then delay(defer) the message..

freeze_mail:
driver = redirect
verify = false
address_test = false
domains = !+local_domains : !+relay_to_domains
condition = YOUR LOGIC HERE
allow_defer
data = :defer: message not old enough


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"The only time a woman really succeeds in changing a man is when he is a
baby."
                             - Natalie Wood