Commit e24af0e8 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Fixed logging when Quotas which are not matched

parent 4b773c73
......@@ -453,20 +453,22 @@ sub check {
# Setup result
if (!defined($verdict)) {
return CBP_CONTINUE;
} elsif ($verdict eq "") {
$server->maillog("module=Quotas, action=none, host=%s, helo=%s, from=%s, to=%s, reason=no_verdict",
$sessionData->{'ClientAddress'},
$sessionData->{'Helo'},
$sessionData->{'Sender'},
$sessionData->{'Recipient'});
return CBP_CONTINUE;
} if ($verdict =~ /^defer$/i) {
} elsif ($verdict =~ /^defer$/i) {
$server->maillog("module=Quotas, action=defer, host=%s, helo=%s, from=%s, to=%s, reason=verdict",
$sessionData->{'ClientAddress'},
$sessionData->{'Helo'},
$sessionData->{'Sender'},
$sessionData->{'Recipient'});
return $server->protocol_response(PROTO_DEFER,$verdict_data);
} if ($verdict =~ /^hold$/i) {
} elsif ($verdict =~ /^hold$/i) {
$server->maillog("module=Quotas, action=hold, host=%s, helo=%s, from=%s, to=%s, reason=verdict",
$sessionData->{'ClientAddress'},
$sessionData->{'Helo'},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment