On Fri, Sep 7, 2018 at 8:45 AM Andrew C Aitchison via Exim-users <
exim-users@???> wrote:
>
> If "d" is typed at the next prompt, the entire record is deleted.
> For all except the retry database, that is the only operation that can be
> carried out.
This is either out of date, or it's been changed since exim 4.84 (Debian
Jessie).
The ratelimit database can be modified in real-time.
Here is how I do it:
1) file=~/tmp/ratelimit.$(date +%F_%T); exim_dumpdb /var/spool/exim4
ratelimit > $file; echo $file
2) I then grep the file for the entry I need, e.g. the IP address 127.2.3.4:
07-Sep-2018 09:34:24.253257 rate: 12.423 key: 1h/per_rcpt/127.2.3.4
3) exim_fixdb /var/spool/exim4 ratelimit
Modifying Exim hints database /var/spool/exim4/db/ratelimit
>
4) At the prompt, enter the key:
> 1h/per_rcpt/127.2.3.4
07-Sep-2018 09:35:11
0 time stamp: 07-Sep-2018 09:35:11
1 fract. time: .327344
2 sender rate: 13.391
>
5) At the prompt, enter the key number you want to change (2 for the sender
rate), a space, and the new value:
> 2 1.151
07-Sep-2018 09:35:37
0 time stamp: 07-Sep-2018 09:35:37
1 fract. time: .327344
2 sender rate: 1.151
>
And that's it.
--
Jan