diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-07-18 13:13:27 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-07-18 13:13:27 +0100 |
commit | 180eb573d8d56b5c39313f389cda762122adb6b3 (patch) | |
tree | 3abd6abb1f4f7f928af7bc20b2fe9d9f33c8c502 /test | |
parent | f8b0fd41a3b6335d86e9fa3ee25e1e5b12df1c7b (diff) | |
download | rspamd-180eb573d8d56b5c39313f389cda762122adb6b3.tar.gz rspamd-180eb573d8d56b5c39313f389cda762122adb6b3.zip |
[Test] Add test for SPF +all
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/001_merged/117_spf.robot | 6 | ||||
-rw-r--r-- | test/functional/configs/merged-local.conf | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/cases/001_merged/117_spf.robot b/test/functional/cases/001_merged/117_spf.robot index dda35f671..a8b35a8c9 100644 --- a/test/functional/cases/001_merged/117_spf.robot +++ b/test/functional/cases/001_merged/117_spf.robot @@ -155,3 +155,9 @@ SPF UPPERCASE ... IP=8.8.8.8 From=x@fail11.org.org.za ... Settings=${SETTINGS_SPF} Expect Symbol R_SPF_ALLOW + +SPF PLUSALL + Scan File ${RSPAMD_TESTDIR}/messages/dmarc/bad_dkim1.eml + ... IP=8.8.8.8 From=x@plusall.com + ... Settings=${SETTINGS_SPF} + Expect Symbol R_SPF_PLUSALL diff --git a/test/functional/configs/merged-local.conf b/test/functional/configs/merged-local.conf index 75b9f0554..2d914b075 100644 --- a/test/functional/configs/merged-local.conf +++ b/test/functional/configs/merged-local.conf @@ -229,6 +229,11 @@ options = { replies = ["v=spf1 -all"]; }, { + name = "plusall.com", + type = "txt"; + replies = ["v=spf1 +all"]; + }, + { name = "fail4.org.org.za", type = "txt"; replies = ["v=spf1 redirect=asdfsfewewrredfs"]; |