From 7cbe2e4724e463cf732edd95ac34f955a136dd1c Mon Sep 17 00:00:00 2001 Message-Id: <7cbe2e4724e463cf732edd95ac34f955a136dd1c.1719328384.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sat, 11 May 2024 13:20:54 +0100 Subject: [PATCH] spam.m4: Skip SpamAssassin check for mail from relay clients. Organization: Straylight/Edgeware From: Mark Wooding 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spam.m4 b/spam.m4 index c51bc36..4570210 100644 --- 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. -- [mdw]