On Thu Oct 16, 2008 at 22:09:42 +0100, Steve Kemp wrote:

>   I can do the testing in rcpt_pre.  This means that any rejections
>  will show up as 501 errors, but that is a thing I can live with.

  I'd like to suggest this patch, to address the issue:

--
--- /home/skx/qpsmtpd-0.40/lib/Qpsmtpd/SMTP.pm  2007-05-30 16:49:54.000000000 
+0100
+++ SMTP.pm 2008-10-16 22:29:44.000000000 +0100
@@ -424,6 +424,9 @@
 sub rcpt_pre_respond {
   my ($self, $rc, $msg, $args) = @_;
   my ($rcpt, $param) = @$args;
+  if ($rc == DENY) {
+   return $self->respond(500, ( @$msg[0] || "invalid recipient"  ) );
+  }
   if ($rc == OK) {
     $rcpt = shift @$msg;
   }
--

Steve
-- 
Managed Anti-Spam Service
http://mail-scanning.com/

Reply via email to