- # 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 ($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}}
+ # 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