Re: [exim] Ratelimit database

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Heiko Schlittermann
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Ratelimit database
Juan Bernhard via Exim-users <exim-users@???> (Mi 05 Sep 2018 13:52:07 CEST):
> Hello list, I've recently implemented a ratelimit acl on my servers. I would
> like to know how to delete an entry for a specific user in the
> /var/spool/exim/db/ratelimit database.  If someone took the time to do a
> script, and want to share it, I'll appreciate.


The files are simple Berkeley-DB files. Here is a small Perl snippet, maybe you
can use this as a starting point.

~~~ .pl
#!/usr/bin/perl
use strict;
use warnings;
use DB_File;

tie my %db, DB_File => 'ratelimit'
    or die $!;


while (my ($k, $v) = each %db) {
    print "$k: $v\n";
}
~~~


For occasional use, the exim_fixdb tool should be sufficient.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
--
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -