exim: Set the spamassassin profile to "spamd".
[matthijs/servers/drsnuggles.git] / etc / exim4 / conf.d / acl / 40_exim4-config_check_data
index 9933c39e05f9addb6909cee712c3c6709933312a..a1b7024cec9ce32af61b3b10b2ba4577504e25bf 100644 (file)
@@ -29,18 +29,18 @@ acl_check_data:
     # Only scan messages that are small, since spam is hardly ever big (and
     # scanning big messages costs lots of resources
     condition = ${if <{$message_size}{80k}}
-    # Check using spamassasin's default profile (the name "default" should just
-    # be any non-existing profile to get the default configuration). This
-    # condition will always succeed, since spam assassin is configured with a
-    # very low (even negative) threshold.
-    spam = default
+    # Check using spamassasin, running as the "spamd" user.
+    # This condition will always succeed, since spam assassin is configured
+    # with a very low (even negative) threshold.
+    spam = spamd
     # Add spam headers (these will be added even when the next condition fails
     # and the message is not denied).
     add_header = X-Spam-Score: $spam_score ($spam_bar)
     add_header = X-Spam-Report: $spam_report
-    # Reject any messages with a spam score of more than 20. This is fairly
-    # high, but we don't like really rejecting messages.
-    condition = ${if >{$spam_score_int}{20}}
+    # Reject any messages with a spam score of more than 20 ($spam_score_int is
+    # $spam_score * 10). This is fairly high, but we don't like really
+    # rejecting messages.
+    condition = ${if >{$spam_score_int}{200}}
 
   # accept otherwise
   accept