> 
> > I wonder if it would be more appropriate to add this to Qpsmtpd/SMTP.pm instead...
> 
> +  if ( $size == 0 ) { # empty message
> +    $self->respond(554, "No data received")
> +    and return $self->disconnect;
> +  }
> +

I'm pretty sure that an empty body is valid RFC2821.

Server SMTP systems SHOULD NOT reject messages based on perceived
defects in the RFC 822 or MIME [12] message header or message body.

(Although that's probably not the best excerpt.)

Reply via email to