Szerző: Jeremy Harris Dátum: Címzett: exim-users Tárgy: Re: [exim] Delay times of less than a second for ratelimiting?
On 20/12/16 15:12, Mike Brudenell wrote: > I'm looking to apply some rate limiting on incoming emails from certain
> hosts on our Exim 4.86 setup. I'm familiar with using the *ratelimit* ACL
> condition to measure rate and decide whether to take action.
>
> From the example in the Specification it looks like when the threshold is
> reached I use *delay* to introduce a delay. However *delay* takes a
> standard Exim time interval: an integer number of seconds, minutes, hours,
> days or weeks.
>
> Is there a way of using a *fraction* of a second for the delay — eg, 0.5
> seconds
No.
Beyond a deliberate call to some external facility.
Builtin perl, possibly.
> — or would I have to look at using the old-style
> *smtp_ratelimit_{hosts,mail,rcpt}* options instead to achieve this, with
> the disadvantage that they only apply within a single connection?
... and also offer no finer granularity.
What rate did you want to limit? To what value?
--
Cheers,
Jeremy