[Rspamd-Users] SPF module not found
Daniel Lysfjord
lysfjord.daniel at smokepit.net
Fri Sep 25 13:04:10 UTC 2020
"J. Fahrner via Users" <users at lists.rspamd.com> skrev 25. september 2020 kl. 14:00:
> Hi,
> when I try to enable the SPF module as described her:
> https://rspamd.com/doc/configuration/options.html
>
> filters = "chartable,dkim,spf,regexp,fuzzy_check";
> in local.d/options.inc
>
> I get the error:
> 2020-09-25 13:49:53 #0(main) <78yhxw>; cfg; rspamd_init_filters: requested unknown module spf
>
> What's the correct way to enable SPF checks?
>
> Jochen
>
> --
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users
Pretty sure the SPF module is enabled by default, confirmed by https://rspamd.com/doc/modules/
I have no custom config regarding spf, and the module is doing its job:
# grep -Ri spf * | grep -v "#"
composites.conf: SPF_FAIL_FORWARDING {
composites.conf: expression = "g:forwarding & (R_SPF_SOFTFAIL | R_SPF_FAIL)";
composites.conf: expression = "DMARC_POLICY_ALLOW & (R_SPF_SOFTFAIL | R_SPF_FAIL | R_DKIM_REJECT)";
composites.conf: expression = "R_DKIM_NA & R_SPF_NA & DMARC_NA & ARC_NA";
composites.conf: description = "Authenticating message via SPF/DKIM/DMARC/ARC not possible";
composites.conf: VIOLATED_DIRECT_SPF {
composites.conf: description = "Has no Received (or no trusted received relays) and SPF policy fails or soft fails";
composites.conf: expression = "(R_SPF_FAIL | R_SPF_SOFTFAIL) & (RCVD_COUNT_ZERO | RCVD_NO_TLS_LAST)";
local.d/composites.conf:FROM_NEQ_ENVFROM_FORGED_SENDER_R_SPF_NA {
local.d/composites.conf: expression = "FROM_NEQ_ENVFROM and FORGED_SENDER and R_SPF_NA and !FORGED_SENDER_MAILLIST";
modules.d/whitelist.conf: "WHITELIST_SPF" = {
modules.d/whitelist.conf: valid_spf = true;
modules.d/whitelist.conf: "$LOCAL_CONFDIR/local.d/maps.d/spf_whitelist.inc.local",
modules.d/whitelist.conf: "${DBDIR}/spf_whitelist.inc.local",
modules.d/whitelist.conf: "fallback+file://${CONFDIR}/maps.d/spf_whitelist.inc"
modules.d/whitelist.conf: inverse_symbol = "BLACKLIST_SPF";
modules.d/whitelist.conf: "WHITELIST_SPF_DKIM" = {
modules.d/whitelist.conf: valid_spf = true;
modules.d/whitelist.conf: "https://maps.rspamd.com/rspamd/spf_dkim_whitelist.inc.zst",
modules.d/whitelist.conf: "$LOCAL_CONFDIR/local.d/maps.d/spf_dkim_whitelist.inc.local",
modules.d/whitelist.conf: "${DBDIR}/spf_dkim_whitelist.inc.local",
modules.d/whitelist.conf: "fallback+file://${CONFDIR}/maps.d/spf_dkim_whitelist.inc"
modules.d/whitelist.conf: inverse_symbol = "BLACKLIST_SPF_DKIM";
modules.d/spf.conf:spf {
modules.d/spf.conf: spf_cache_size = 2k;
modules.d/spf.conf: spf_cache_expire = 1d;
modules.d/spf.conf: .include(try=true,priority=5) "${DBDIR}/dynamic/spf.conf"
modules.d/spf.conf: .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/spf.conf"
modules.d/spf.conf: .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/spf.conf"
scores.d/policies_group.conf:description = "SPF, DKIM, DMARC, ARC";
scores.d/policies_group.conf: "R_SPF_FAIL" {
scores.d/policies_group.conf: description = "SPF verification failed";
scores.d/policies_group.conf: groups = ["spf"];
scores.d/policies_group.conf: "R_SPF_SOFTFAIL" {
scores.d/policies_group.conf: description = "SPF verification soft-failed";
scores.d/policies_group.conf: groups = ["spf"];
scores.d/policies_group.conf: "R_SPF_NEUTRAL" {
scores.d/policies_group.conf: description = "SPF policy is neutral";
scores.d/policies_group.conf: groups = ["spf"];
scores.d/policies_group.conf: "R_SPF_ALLOW" {
scores.d/policies_group.conf: description = "SPF verification allows sending";
scores.d/policies_group.conf: groups = ["spf"];
scores.d/policies_group.conf: "R_SPF_DNSFAIL" {
scores.d/policies_group.conf: description = "SPF DNS failure";
scores.d/policies_group.conf: groups = ["spf"];
scores.d/policies_group.conf: description = "DMARC permit policy with DKIM/SPF failure";
scores.d/whitelist_group.conf: "WHITELIST_SPF" {
scores.d/whitelist_group.conf: description = "Mail comes from the whitelisted domain and has a valid SPF policy";
scores.d/whitelist_group.conf: "BLACKLIST_SPF" {
scores.d/whitelist_group.conf: description = "Mail comes from the whitelisted domain and has no valid SPF policy";
scores.d/whitelist_group.conf: "WHITELIST_SPF_DKIM" {
scores.d/whitelist_group.conf: description = "Mail comes from the whitelisted domain and has valid SPF and DKIM policies";
scores.d/whitelist_group.conf: "BLACKLIST_SPF_DKIM" {
scores.d/whitelist_group.conf: description = "Mail comes from the whitelisted domain and has no valid SPF policy or a bad DKIM signature";
More information about the Users
mailing list