John Peacock wrote:
I wonder if it would be more appropriate to add this to Qpsmtpd/SMTP.pm instead...
like this:
=== lib/Qpsmtpd/SMTP.pm
==================================================================
--- lib/Qpsmtpd/SMTP.pm (revision 420)
+++ lib/Qpsmtpd/SMTP.pm (local)
@@ -480,6 +480,11 @@
#$self->log(LOGDEBUG, "size is at $size\n") unless ($i % 300);
}+ if ( $size == 0 ) { # empty message
+ $self->respond(554, "No data received")
+ and return $self->disconnect;
+ }
+
$self->log(LOGDEBUG, "max_size: $max_size / size: $size");$self->transaction->header($header);
The only question I have is whether a forced disconnect it warranted.
John
