From 50cb88ba01bb863cd7124f208226dd4d1f7116d4 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 14 Nov 2012 15:24:06 -0500 Subject: [PATCH] whitelist: added debug log message & std plugin entries. --- plugins/whitelist | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/whitelist b/plugins/whitelist index 2e0ccb7..43aace4 100644 --- a/plugins/whitelist +++ b/plugins/whitelist @@ -94,6 +94,12 @@ automatically allow relaying from that IP. =cut +use strict; +use warnings; + +use lib 'lib'; +use Qpsmtpd::Constants; + my $VERSION = 0.02; # Default is to merge whitelists in per_recipient mode @@ -144,6 +150,7 @@ sub check_host { return OK; } } + $self->log(LOGDEBUG, "skip: $ip is not whitelisted"); return DECLINED; }