[Mimedefang] filter in & out

kamal kamalnee at cse.iitk.ac.in
Fri Apr 9 17:03:23 EDT 2004


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');
>         }
> }



More information about the MIMEDefang mailing list