diff -Nur qpsmtpd-0.84.old/plugins/dnsbl qpsmtpd-0.84.bz8327/plugins/dnsbl --- qpsmtpd-0.84.old/plugins/dnsbl 2014-12-26 14:51:29.018215638 +0100 +++ qpsmtpd-0.84.bz8327/plugins/dnsbl 2014-12-26 15:13:01.032091806 +0100 @@ -179,6 +179,27 @@ } my $note = $self->process_sockets; + +# Check for whitelisthelo from whitelist_soft + my $whitehelo = $connection->notes('whitelisthelo'); + if ($whitehelo) { + $self->log(LOGINFO, "Whitelisthelo found $whitehelo"); + return OK; + } + else { + $self->log(LOGINFO, "Whitelisthelo not found"); + } + +# Check for whitelistsender from whitelist_soft + my $whitesender = $transaction->notes('whitelistsender'); + if ($whitesender) { + $self->log(LOGINFO, "Whitelistsender found $whitesender"); + return OK; + } + else { + $self->log(LOGINFO, "Whitelistsender not found"); + } + my $whitelist = $connection->notes('whitelisthost'); if ( $note ) { if ( $rcpt->user =~ /^(?:postmaster|abuse|mailer-daemon|root)$/i ) {