[Mimedefang] [Fwd: Internal mails are blocked-PROBLEM]

Joseph Brennan brennan at columbia.edu
Tue Jul 27 15:26:08 EDT 2004



--On Tuesday, July 27, 2004 3:16 PM -0400 Vivek Kumar <vivekk at gorave.net> 
wrote:

> Hi,
>
> I forgot to mention in my previous mail that I have added following code
> in mimedefang-filter:
>
> sub filter_relay($$$){
>   my ($hostip,$hostname,$helo) = @_;
>   my $internal_net1 = "191.0.0";
>   my $internal_net2 = "191.0.1";
>   $hostip=~  /^(\d+\.\d+\.\d+)./ ;
>   my $mailip = $1;

# right here, add
    syslog(TEST,"mailip is $mailip");


>   if($mailip eq $internal_net1 || $mailip eq $internal_net2) {
>                 return("ACCEPT_AND_NO_MORE_FILTERING","It's from us it
> gotta
> be good");
>                 }
>   return("CONTINUE","");
>   }



See what it says $mailip is.

Joseph Brennan
Academic Technologies Group, Academic Information Systems (AcIS)
Columbia University in the City of New York



More information about the MIMEDefang mailing list