[Mimedefang] checking sender

Jim McCullars jim at info.uah.edu
Tue Aug 26 10:08:01 EDT 2003


On Tue, 26 Aug 2003, cc wrote:

> How would I go about in checking whether the
> sender is local or not?
>
> I thought using the $ip ne 192.168.10.0/24 is
> ok, but it doesn't work.

   If that is the string you tested, then no, it won't work.  It looks
like you may be behind a NAT server, so this may work:

	if ($ip !~ /^192\.168/) {
           #  the mail is coming from an external source

   HTH...

Jim





More information about the MIMEDefang mailing list