IFFROMNETWORK
NAME
iffromnetwork -- check if an incoming mail comes from a given network
SYNOPSIS
iffromnetwork {-l local-network} {network}
DESCRIPTION
iffromnetwork scans the headers of a message in the standard input for
the first ``Received'' line, and attempts to match the IP address of the
server that contacted the local mail server against the given networks.
To exclude ``Received'' lines from relays in the local network, -l
may be used to specify local networks.
All networks are to be specified in CIDR notation.
If the message came from one of the networks, iffromnetwork exits 0,
otherwise 100. If no ``Received'' line is found, iffromnetwork exits 100.
AUTHOR
Andreas F. Borchert, http://dotqmailutils.sourceforge.net/
converted to HTML: 2008/03/29
Thanks to Sourceforge
for hosting this package.
Andreas
F. Borchert, March 29th, 2008