diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-07-17 15:35:18 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-07-17 15:35:18 +0100 |
commit | f8b0fd41a3b6335d86e9fa3ee25e1e5b12df1c7b (patch) | |
tree | 6076787299388db90e99ba35c6f5d314c576b16a /src/libserver/spf.c | |
parent | 27b858776562a743a6036d5f6e1ee022d2006f79 (diff) | |
download | rspamd-f8b0fd41a3b6335d86e9fa3ee25e1e5b12df1c7b.tar.gz rspamd-f8b0fd41a3b6335d86e9fa3ee25e1e5b12df1c7b.zip |
[Feature] Treat SPF +all in a special way
Issue: #4996
Diffstat (limited to 'src/libserver/spf.c')
-rw-r--r-- | src/libserver/spf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/spf.c b/src/libserver/spf.c index 32c020bf3..afd77294b 100644 --- a/src/libserver/spf.c +++ b/src/libserver/spf.c @@ -1418,7 +1418,7 @@ parse_spf_all(struct spf_record *rec, struct spf_addr *addr) /* Disallow +all */ if (addr->mech == SPF_PASS) { - addr->flags |= RSPAMD_SPF_FLAG_INVALID; + addr->flags |= RSPAMD_SPF_FLAG_INVALID | RSPAMD_SPF_FLAG_PLUSALL; msg_notice_spf("domain %s allows any SPF (+all), ignore SPF record completely", rec->sender_domain); } |