badrcptto: smite matches with -2 karma
useful for (reject=>naughty) + spam filter training
This commit is contained in:
parent
e7f9f3bf21
commit
d5f1f3f72b
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user