Custom function white/black list bug?
Kai Schaetzl
maillists at conactive.com
Sat May 20 13:31:17 IST 2006
Richard Lynch wrote on Fri, 19 May 2006 22:32:11 -0400:
> I'm using the by domain whitelist/blacklist custom functions. I'm
> trying to whitelist a particular "To:" address (abuse at our_domain). I've
> put that entry into the /etc/MailScanner/spam.bydomain/whitelist/default
> file.
I'm not aware of this functionality besides the SQL custom functions (see
below), but it very much looks like "spam.bydomain" will be getting used
for the To domain. So, it's intended not to be used for single to
addresses.
However, when someone sends a spam report to our abuse address it
> gets flagged as spam and gets deleted. I'm not sure if this is a bug or
> not. Perhaps this facility was designed only for the "From:" address
> and not the "To:" address.
It was designed for the To *and* the From address. At least that is how the
SQLBlackWhitelist.pm works. I'm not sure what the "domain
whitelist/blacklist custom functions" is, I wasn't aware of such a thing.
You might try:
$to $from yes
> return 1 if $BlackWhite->{'default'}{$from};
> return 1 if $BlackWhite->{'default'}{$fromdomain};
> return 1 if $BlackWhite->{'default'}{$ip};
"default" is actually the wildcard for "To: *"
The whole stuff in SQLBlackWhitelist.pm looks a bit different and seems to
have been stripped down for those "by domain" functions.
return 1 if $BlackWhite->{$to}{$from};
return 1 if
$BlackWhite->{$to}{$fromdomain};
return 1 if $BlackWhite->{$to}{$ip};
return 1 if $BlackWhite->{$to}{'default'};
return 1 if
$BlackWhite->{$todomain}{$from};
return 1 if
$BlackWhite->{$todomain}{$fromdomain};
return 1 if
$BlackWhite->{$todomain}{$ip};
return 1 if
$BlackWhite->{$todomain}{'default'};
return 1 if
$BlackWhite->{'default'}{$from};
return 1 if
$BlackWhite->{'default'}{$fromdomain};
return 1 if
$BlackWhite->{'default'}{$ip};
(the box is an LF, the file I've got has Unix linebreaks, sorry).
Kai
--
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conac
More information about the MailScanner
mailing list