Question regarding IPBlock

Julian Field MailScanner at
Fri Mar 4 17:19:16 GMT 2005

    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Marcel Blenkers wrote:

>Hi there and sorry for the late answer..
>On Thu, 24 Feb 2005, Kai Schaetzl wrote:
>>Marcel Blenkers wrote on         Thu, 24 Feb 2005 14:36:33 +0100:
>>>use the
>>>access-file with makemap to create the access.db?
>>makemap is what gets used for creating access.db. If you want to run it
>>yourself, just do.
>guess you got me wrong here ;)
>The Script IPBlock written by Julian and usable as extra script just adds
>the ips, which should be blocked, into the access.db-file.
>Means, there is no way to see the blocked ips within the access-file.
Yes there is.
makemap -u hash access

>So my question was really, if the script could be changed, to insert the
>blocked ips into the access-file, and then use makemap to generate the
>access.db itself.
>So every admin could check the access-file itself, delete the ip if
>needed, generate the new access.db with makemap and so those ips which are
>blocked, could be unblocked the easy way.. =)
>Currently the admin only gets the chance to see which ips are blocked, as
>he (or shee) is looking into the mail-og and searches for the String
>blocked by Mailscanner.
The reason I wrote it the way I did is because you need to be able to
(once an hour) remove all the IP addresses that were added by
MailScanner, but leave all the entries that you put in the access map by
hand. The easiest way to do that is to leave the text version alone, and
add temporary IPs to the db file. Then hourly you simply rebuild the db
file from the text file.

If you can come up with a better system for doing this easily and
efficiently (or better than mine) then please suggest it.

Julian Field
MailScanner thanks transtec Computers for their support
Buy the MailScanner book at

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

Support MailScanner development - buy the book off the website!

More information about the MailScanner mailing list