[Mimedefang] Problems with append_boilerplate()

Jason Englander jason at englanders.cc
Mon Jan 6 14:10:01 EST 2003


On Mon, 6 Jan 2003, Richardson  M. wrote:

> if ( ($RelayAddr =~ "^192\.168\.10") && ($Sender =~

If you only want to match on 192.168.10.*, use this instead:

$RelayAddr =~ /^192\.168\.10\./

If you leave the last . out, then it'll match:

192.168.10.*
192.168.100.*
192.168.101.*
...

> Does $RelayAddr resemble the originating mailserver or should i use another
> in the if{} statement ?

>From 'man mimedefang-filter':

       $RelayAddr
              The  IP  address of the sending relay (as a string consisting of
              four dot-separated  decimal  numbers.)   One  potential  use  of
              $RelayAddr is to limit mailing to certain lists to people within
              your organization.

-- 
Jason Englander <jason at englanders.cc>
394F 7E02 C105 7268 777A  3F5A 0AC0 C618 0675 80CA




More information about the MIMEDefang mailing list