[Mimedefang] Ignoring Filtering to Individual Recpients

Joseph Brennan brennan at columbia.edu
Wed Jun 25 10:01:20 EDT 2008

>    Yes, if there were 5 recipients and postmaster was one of them, all
> would get the unfiltered email.

This can be solved by doing it another way.  Here's one possibility.

You could examine @Recipients in filter_begin.  As I understand it
you want to exempt from filtering if there is one recipient and
that recipient is one special case.  Therefore something like this:

$exempt = '';
if (@Recipients = 1 && $Recipient[0] =~ /exemptedaddress\@yourdomain/) {
	$exempt = 1;

Then you can test for $exempt.  Wrap selected routines in an 'if' or
'unless' that tests $exempt, or just put this at the start of filter:

return action_accept if ($exempt);

Joseph Brennan
Lead Email Systems Engineer
Columbia University Information Technology

More information about the MIMEDefang mailing list