Re: [exim] Dynamic recipients_max?

2021-03-16 Thread Niels Kobschätzki via Exim-users

On 16 Mar 2021, at 20:27, Jeremy Harris via Exim-users wrote:


On 16/03/2021 19:05, Niels Kobschätzki via Exim-users wrote:
is there any way that I could set recipients_max by default to 
let’s say 50 but for special senders set a higher limit (like 
1000)?
In ACLs or routers I can use conditions and stuff like that. For 
example I have a router with


senders = nwildlsearch;/etc/exim/conf/ratelimit_whitelist

and when a sender is in that file their mail will get re-routed to 
another server where the ratelimit is not as strict. But with 
recipients_max I could only use something like an .if with a macro 
and I don’t see, how this could help me. Is there a way to set for 
example a macro to true with the help of an nwildsearch?


A macro is not helpful to you.

Compare $recipients_count with your variable limit in your RCPT ACL,
and defer when it goes above.


Thanks, I will have a look.

Niels

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


Re: [exim] Dynamic recipients_max?

2021-03-16 Thread Jeremy Harris via Exim-users

On 16/03/2021 19:05, Niels Kobschätzki via Exim-users wrote:

is there any way that I could set recipients_max by default to let’s say 50 but 
for special senders set a higher limit (like 1000)?
In ACLs or routers I can use conditions and stuff like that. For example I have 
a router with

senders = nwildlsearch;/etc/exim/conf/ratelimit_whitelist

and when a sender is in that file their mail will get re-routed to another 
server where the ratelimit is not as strict. But with recipients_max I could 
only use something like an .if with a macro and I don’t see, how this could 
help me. Is there a way to set for example a macro to true with the help of an 
nwildsearch?


A macro is not helpful to you.

Compare $recipients_count with your variable limit in your RCPT ACL,
and defer when it goes above.
--
Cheers,
  Jeremy

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


[exim] Dynamic recipients_max?

2021-03-16 Thread Niels Kobschätzki via Exim-users

Hi,

is there any way that I could set recipients_max by default to let’s 
say 50 but for special senders set a higher limit (like 1000)?
In ACLs or routers I can use conditions and stuff like that. For example 
I have a router with


senders = nwildlsearch;/etc/exim/conf/ratelimit_whitelist

and when a sender is in that file their mail will get re-routed to 
another server where the ratelimit is not as strict. But with 
recipients_max I could only use something like an .if with a macro and I 
don’t see, how this could help me. Is there a way to set for example a 
macro to true with the help of an nwildsearch?


Any ideas?

Best,

Niels

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/