adding the MX_SENDER_CHECK=yes was the final change to make it all work!
Thanks to all for the advice and syntax help.
:)  i think mimedefang is a great program

On Fri, 2004-04-09 at 17:03, kamal wrote:
> Also make sure that MX_RELAY_CHECK=yes is set in case you do it in 
> filter_relay and MX_SENDER_CHECK=yes is set in case you do this in 
> filter_sender.
> These settings go in /etc/sysconfig/mimedefang or /etc/init.d/mimedefang 
> depending on your installation
> Yes, filter_relay makes more sense, sorry for wrong advice earlier. 
> Though filter_sender serves the purpose equally well :-)
> 
> david wrote:
> > My perl is not great, but I added the below.
> > Have not had luck yet.  Could I be putting this in the wrong section 
> > of the mimedefang-filter ?  I ran the reread.  I have tried different
> > kinds of re's without luck, including filtering on hostname sender and
> > IP. also adding "^ and $"  eg. /^some-text$/   and /n+  (note: syntax may be
> > wrong in this email just going from memory)
> > 
> > sub filter_sender {
> >         my ($sender, $ip, $hostname, $helo) = @_;
> >         if ($ip =~ /192.168.1.*/i) {  
> >                 return ('ACCEPT_AND_NO_MORE_FILTERING');
> >         }
> > }



All information contained in this email is confidential and may be used by the intended recipient only.
