[Mimedefang] MX -> 127.0.0.1

Matthew.van.Eerde at hbinc.com Matthew.van.Eerde at hbinc.com
Mon Sep 12 17:45:00 EDT 2005


KAM wrote:
> New version  now at
> http://www.pccc.com/downloads/MIMEDefang/contrib/check_primary_mx_stub.pl
> which takes into account much more of the cases you stated.  Thanks
> for the feedback and I've added some comments inline below.

Beautiful.

One nitpick:

  #172.16/12
  if ($ip =~ /^172\.16\./) { # not complete
    #return 1;
  }

True enough, but actually 172.16/12 includes 172.16-31...

  #172.16/12
  if ($ip =~ /^172\.(16|17|18|19|2[0-9]|30|31)\./) { # messy?
    #return 1;
  }

-- 
Matthew.van.Eerde (at) hbinc.com               805.964.4554 x902
Hispanic Business Inc./HireDiversity.com       Software Engineer




More information about the MIMEDefang mailing list