Robert Spier wrote:

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.)


Except it's not an empty MIME body; it is no header or body data at all. But you did lead me to the appropriate citation (from RFC-2822 3.6):


   The only required header fields are the origination date field and
   the originator address field(s).  All other header fields are
   syntactically optional.

Consequently, the test should be expanded to refuse any message which does not include either FROM:/SENDER: and DATE:. Of course, this is a problem because dspam doesn't add a DATE: field when sending template messages (like quarantine full), so I'll have to fix that before applying a more robust change.

John

Reply via email to