- # 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
- # Add spam headers (these will be added even when the next condition fails
- # and the message is not denied).
+ # Check using spamassasin, running as the "spamd" user.
+ spam = spamd
+ # Don't reject to some trusted hosts, since they will only generate
+ # useless delivery failures to innocent people. We check this after the
+ # spamcheck, so the next rule can still the spam headers properly.
+ !hosts = +dont_reject_spam_hosts
+
+ # Accept any other messages, but add spam headers.
+ accept