Import Debian changes 4.89-2+deb9u4
[hcoop/debian/exim4.git] / debian / debconf / conf.d / acl / 40_exim4-config_check_data
index 1b371d2..abfa164 100644 (file)
@@ -8,6 +8,15 @@
 
 acl_check_data:
 
+  # Deny if the message contains an overlong line.  Per the standards
+  # we should never receive one such via SMTP.
+  #
+  .ifndef IGNORE_SMTP_LINE_LENGTH_LIMIT
+  deny    message    = maximum allowed line length is 998 octets, \
+                       got $max_received_linelength
+          condition  = ${if > {$max_received_linelength}{998}}
+  .endif
+
   # Deny unless the address list headers are syntactically correct.
   #
   # If you enable this, you might reject legitimate mail.