[Mimedefang] checking sender

cc cc at belfordhk.com
Tue Aug 26 21:58:01 EDT 2003


Jim McCullars wrote:

> 
> 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
> 

If I add md_graphdefang_log('IP:',$ip) before the above line,
I get nothing in the log.    Do I need to explicitly grab
the $ip from the $entity?

Should this be in the filter() or filter_begin()?


Thanks





More information about the MIMEDefang mailing list