[exim] Limit outgoing mail based on size + CC’s

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: b-boy
Data:  
Para: exim-users
Assunto: [exim] Limit outgoing mail based on size + CC’s

Hi all

I have very limited bandwidth and I would like to setup my Exim box to delay
all mails if they are larger than a certain size (let’s say 10megs for the
sake of this question) this rule should also take into account cc’s and
bcc’s so if someone sends a 1meg mail to 10 recipients it should be frozen
till afterhours and then only delivered.

And there is a complication, my Exim configuration splits the mail into its
individual mails i.e. a user sends a mail with 10 cc’d addresses Exim will
split it into 10 mails (there is no way around this, I have a special
application that will only work like this )

I have found solutions for limiting large mails using a router

defer_if_large_unless_queue_run:
driver = redirect
condition = ${if or{{queue_running}{<{$message_size}{200K}} }{no}{yes}}
allow_defer
data = :defer: too large for immediate delivery
no_verify

And I know you can do the same for the number of recipients but I have no
idea how to combine the two to do what I would like it to do.

Please help :)
B

--
View this message in context: http://www.nabble.com/Limit-outgoing-mail-based-on-size-%2B-CC%E2%80%99s-tp21809781p21809781.html
Sent from the Exim Users mailing list archive at Nabble.com.