INSTALL
Run make install

UNINSTALL
Run make uninstall

SYNOPSIS
iprange2access first_ip_in_range [ - ] last_ip_in_range [ -d [ -v ]
               [ -e errorcode ] [ -m message ] ] [ -V ] [ -h ]

DESCRIPTION
Sendmail is one of the oldest mail servers for Unix. By default, Sendmail
reads access lists from /etc/mail/access file. That file have role of
configuration file used for defining mail or IP addresses which should be
denied. Beside mail and IP addresses which could be defined in that file,
the whole ranges of IP addresses could be defined too. Wrestling with spam,
sometimes requires entering a huge number of lines which defines some range
of IP addresses. After I entered 7557th line manually (it seems that I am
very patience man), I decided that it is the time for writing script which
will make this hard job a lot easier. So, I wrote script which can take range
of IP addresses and output lines in format acceptable for sendmail access
file. The script is written in perl. IPrange2access requires NetAddr::IP perl
module which could be found on CPAN pages. Thanks to Daniel Spiljar
<dspiljar@world.std.com> for helping me with perl. Thanks to him, this script
is written in perl. At the first place I intended to wrote the script in bash.
I believe that I would spent a little more time and much more lines of code.
In the iprange2access distribution you will find two perl scripts.
iprange2access script will work with older perl and does not use any additional
perl modules while iprange2access2 will work only with perl >= 5.8.0 and the
NetAddr::IP perl module installed. By writing those scripts I was actually
learning perl. This is the main reason for having two scripts which are doing
the same thing. By running make install, only iprange2access script will be
installed. I you want to use iprange2access2, just copy the iprange2access2
script to /usr/local/bin directory.

OPTIONS
-d	This option will tell to script to generate a deny line (format
	acceptable for sendmail access) Without this option, script will
	output only IP addresses in range.
-v	This option will result with prepending line #<IP range> on the top
	and appending line #</IP range> to the end of output. This is useful
	for recognize IP ranges in sendmail access file. This option make sens
	only if parameter -d is used too.
-e errorcode	This option can override default errorcode which will be used
		if script is started with -d parameter. Default errorcode is
		571.
-m message	This option can override default message with reason of
		bouncing mail from some IP address. This option make sens
		only if parameter -d is used too. Default message is: Because
		of previous SPAM activity from your domain, we reject your
		mail.
-V	This option indicates that iprange2access should print version and
	exit.
-h	This option indicates that iprange2access should print usage screen
	and exit.

