chiark / gitweb /
spam.m4: Skip SpamAssassin check for mail from relay clients.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 11 May 2024 12:20:54 +0000 (13:20 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 11 May 2024 12:20:54 +0000 (13:20 +0100)
The expectation is that relay clients use us as their primary path for
delivering mail to external users.  If we're going to allow them to do
that, it doesn't seem right to subject it to spam checks -- particularly
since there isn't a receiving user to set a spam score limit.

No, I'm not completely sure about this.

spam.m4

diff --git a/spam.m4 b/spam.m4
index c51bc36a390978b5a8aaabbd3455ffb1c9d0163a..4570210930834f4296b70361d6b0f02825bc9dd6 100644 (file)
--- a/spam.m4
+++ b/spam.m4
@@ -81,7 +81,7 @@ skip_spam_check:
        ## If the client is trusted, or this is a new submission, don't
        ## bother with any of this.  We will have verified the sender
        ## fairly aggressively before granting this level of trust.
-       accept   hosts = +trusted
+       accept   hosts = CONF_relay_clients
        accept   condition = ${if eq{$acl_c_mode}{submission}}
 
        ## If all domains have disabled spam checking then don't check.