[Rspamd-Users] Disabling Rspam for some users/domains does not work as intended (for me)
Kaze.pl
kaze at kaze.pl
Fri Aug 28 09:59:33 UTC 2026
Hello,
I'm using external service as a spam-filter with all the logic, rules
(also with help of rspamd).
Mails are scanned on external host processed mark as spam or not, then
they hit my mail server where there is also rspamd.
I would love to disable rspamd for all incoming/outgoing emails from
mail server so they wont be marked as spam when the logic on external
server marked it as NOT SPAM.
Now the fun begins (for me), because the more I thing I nailed it
(according to docs, internet examples) the more I see that my config
does not work.
Every file is inside /etc/rspamd/
---
settings.conf
settings {
.include(try=true,priority=1,duplicate=merge)
"$LOCAL_CONFDIR/local.d/settings.conf"
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/settings.conf"
}
---
---
local.d/settings.conf
authenticated {
priority = 90; # tried 10, tried HIGH
authenticated = yes; # this should work for all outgoing
emails because they are authenticated
apply {
groups_enabled = ["dkim", "spf"];# dkin and spf for
outgoing are ok
subject = "%s";
}
}
incoming {
priority = 90; # tried 10, tried HIGH
authenticated = no; # this should be trigger for any incoming
emails
apply {
want_spam = yes;
subject = "%s";
}
}
---
local.d/users.conf
settings {
authenticated {
priority = 10;
authenticated = yes;
apply "default" {
symbols_disabled = [];
groups_disabled = ["rbl", "spf"];
}
}
whitelist {
priority = 5;
rcpt = "postmaster";
rcpt = "hostmaster";
rcpt = "abuse";
want_spam = yes;
}
.include(try=true; glob=true) "$LOCAL_CONFDIR/local.d/users/*.conf"
.include(try=true; priority=1,duplicate=merge)
"$LOCAL_CONFDIR/local.d/users.local.conf"
}
---
local.d/users/example.com.conf
ispc_spamfilter_user_13 {
priority = 15;
rcpt = "@example.com"; # this should trigger for every email
that is send to anyone from @example.com domain.
want_spam = yes; # this should disable mail scanning
}
---
local.d/greylist.conf # this one works flawles behacuse i dont see any
greylisting on history tab anymore
enabled = false;
---
In theory this should work, right ? they only part of this config that
works is disabling greylisting, which points me that I'm inside proper
config dir.
I tried with level=debug but I'm unable to see anything useful for me,
massive log about loading and settings keys and they scanning my mails
and adding headers - which should not be the case as it should be skipped !
I'm pulling my hairs out another day, so maybe someone more knowledge
with rspamd could point me in right direction ?
More information about the Users
mailing list