[Mimedefang] Greylist cleaner script problem
Paul Murphy
pmurphy at ionixpharma.com
Wed May 26 12:44:09 EDT 2004
Todd,
> I am trying to use a slightly modified version of the greylist
> cleaner perl script that is found on Jonas Eckerman's web page to
> clean up my greylist database file. It runs okay, and gives me valid
> results, but does not change my database file at all. Here is what
> my script file looks like.
The DB file is a binary chunk on the disk, which has records allocated in it as
required. When a record is deleted, the space is marked as available, but
nothing else - you would not expect to see the size of the file decrease.
To shrink the file, you'd have to modify the script to tie a second hash to a
new database, copy the contents of the main hash to the second as you process
the records if the record is still valid, untie the hashes, and then move the
live database to a backup file, and the new database to be the live one. In the
meantime, you have to either stop MIMEdefang/SA, or have it cope gracefully with
the greylist being unavailable - Jonas' code will return a tempfail if the
database is unavailable, so if the first thing you do is rename the file, all
should be well while it is being processed, and it will immediately come back
into action when the new file is installed.
Best Wishes,
Paul.
__________________________________________________
Paul Murphy
Head of Informatics
Ionix Pharmaceuticals Ltd
418 Science Park, Cambridge, CB4 0PA
Tel. 01223 433741
Fax. 01223 433788
_______________________________________________________________________
DISCLAIMER:
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to which they
are addressed. If you have received this email in error please contact
the sender or the Ionix IT Helpdesk on +44 (0) 1223 433741
_______________________________________________________________________
More information about the MIMEDefang
mailing list