spam.m4: Apply Exim's header validation to incoming messages.
[exim-config] / spam.m4
diff --git a/spam.m4 b/spam.m4
index 705fbee..d1b7c50 100644 (file)
--- a/spam.m4
+++ b/spam.m4
@@ -116,6 +116,9 @@ data_spam:
        ## If the client is trusted, don't bother with any of this.
        accept   hosts = +trusted
 
+       ## Check header validity.
+       require  verify = header_syntax
+
        ## Check the message for spam, comparing to the configured limit.
        deny     spam = exim:true
                 message = Tinned meat product detected ($spam_score)