[Mimedefang] Rejecting some recipients

Matthew.van.Eerde at hbinc.com Matthew.van.Eerde at hbinc.com
Thu Sep 15 18:20:24 EDT 2005


Jeff Grossman wrote:
> Sorry for the run on message before.  I have MIMEDefang set up with
> the md_check_against_smtp_server setting.

Is it possible the SMTP server check is what's causing the timeout?

If it's only fifteen, I'd just hardcode this into your mimedefang-filter (untested:)

my @reject_to =
(
	'first at example.com', # note lowercase
	'second at example.com',
	...
	'fifteenth at example.com',
);

my %reject = map { ($_ => 1) } @reject_to;

Then in filter_recipient

my $email = lc $sender;
$email =~ s/^<//;
$email =~ s/>$//;

if ($reject{$email})
{
	# reject
}

if (md_check_against_smtp_server(...)) {
...

-- 
Matthew.van.Eerde (at) hbinc.com               805.964.4554 x902
Hispanic Business Inc./HireDiversity.com       Software Engineer




More information about the MIMEDefang mailing list