diff --git a/config/dnsbl_zones b/config.sample/dnsbl_zones similarity index 100% rename from config/dnsbl_zones rename to config.sample/dnsbl_zones diff --git a/config/rhsbl_zones b/config.sample/rhsbl_zones similarity index 100% rename from config/rhsbl_zones rename to config.sample/rhsbl_zones diff --git a/qpsmtpd b/qpsmtpd index 284aee9..aeeffca 100755 --- a/qpsmtpd +++ b/qpsmtpd @@ -12,7 +12,7 @@ # package QPsmtpd; -$QPsmtpd::VERSION = "0.03"; +$QPsmtpd::VERSION = "0.04"; use strict; $| = 1; use Mail::Address (); @@ -58,8 +58,8 @@ while () { sub dispatch { my ($cmd) = lc shift; - respond(553, $state{dnsbl_blocked}) - if $state{dnsbl_blocked} and ($cmd ne "helo" and $cmd ne "ehlo"); + respond(553, $state{dnsbl_blocked}), return 1 + if $state{dnsbl_blocked} and ($cmd eq "mail" or $cmd eq "rcpt"); if (exists $commands{$cmd}) { my ($result) = eval "&$cmd";