badrcptto: smite matches with -2 karma

useful for (reject=>naughty) + spam filter training
This commit is contained in:
Matt Simerson 2013-03-23 01:04:03 -04:00
parent 79a5c3d7ae
commit 3b71f06682

View File

@ -64,6 +64,7 @@ sub hook_rcpt {
my ($bad, $reason) = split /\s+/, $line, 2;
next if ! $bad;
if ( $self->is_match( $to, lc($bad), $host ) ) {
$self->adjust_karma( -2 );
if ( $reason ) {
return (DENY, "mail to $bad not accepted here");
}