I use md to reject all incoming html email but I want to manually whitelist
some email addresses. I found instructions at:
http://lists.roaringpenguin.com/pipermail/mimedefang/2005-January/025810.html
but they're not working so I must be doing something wrong. My md-filter
contains this:
--------------
# Detect and load Perl modules
detect_and_load_perl_modules();
$IncomingWhitelist{'whitelisteddomain.com'} = 1;
$IncomingWhitelist{'[email protected]'} = 1;
sub filter_recipient {
my @senderparts = split(/@/, $sender);
my $senderdom = $senderparts[1];
$senderdom =~ s/[<>]//g;
if (
(exists $IncomingWhitelist{lc($sender)}) ||
(exists $IncomingWhitelist{lc($senderdom)}) ||
(exists $IncomingWhitelist{lc($recipient)}) )
{
return ('ACCEPT_AND_NO_MORE_FILTERING', "ok");
}
}
sub filter {
my($entity, $name, $ext, $type) = @_;
if ($type =~ /text.html/i) {
return action_bounce("HTML mail not allowed here, plain text
only.");
}
}
<snip>
the global html rejection works fine but email from
[email protected] should be allowed through however it gets
rejected just like the rest. Any ideas appreciated.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang