Hi,

A couple of weeks back I mailed asking about filter a specific user, using either filter_sender of filter_recipient

I ended up opting for the filter_recipient, partly because I already had a filter present for this, and also it allows both sender and recipient to be checked. However, it's not working.

I have:

sub filter_recipient
{
   my($recipient, $sender, $ip, $host, $first, $helo,
      $rcpt_mailer, $rcpt_host, $rcpt_addr) = @_;

   if($sender =~ /^<[EMAIL PROTECTED]>?$/i) {
      if($recipient =~ /^<[EMAIL PROTECTED]>?$/i) {
         return ('ACCEPT_AND_NO_MORE_FILTERING', "ok");
      }
      return ('CONTINUE', "ok");
   }
}

However, the senders messages are still being checked and blocked because of an attachment within them.

I am having to unquarantine these messages daily at the moment.

Can someone possibly shed some light as to why it's not working.

Cheers,

Richard

--
Richard Whelan
Senior Systems Administrator
PIPEX

Direct:  +44 (0) 1865 381568
Mobile:  +44 (0) 7786 276020

website: http://www.pipex.net/

This e-mail is subject to: http://www.pipex.net/disclaimer.html

_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to