aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkorgoth1 <vladislav.stakhov@gmail.com>2019-12-05 21:52:33 +0300
committerkorgoth1 <vladislav.stakhov@gmail.com>2019-12-05 21:52:33 +0300
commit0fd10b75e3343a5b7ee0c6bb7845710363808dfa (patch)
treef97bd5dd57fa0ef6f4ebaae7437225f58a9323e4 /test
parentd10951d927a559bb983192c210b89bf2a42b6660 (diff)
downloadrspamd-0fd10b75e3343a5b7ee0c6bb7845710363808dfa.tar.gz
rspamd-0fd10b75e3343a5b7ee0c6bb7845710363808dfa.zip
[Test] SPF PERMFAIL REDIRECT WITHOUT SPF
Diffstat (limited to 'test')
-rw-r--r--test/functional/cases/117_spf.robot5
-rw-r--r--test/functional/messages/dmarc/bad_dkim4.eml17
2 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/cases/117_spf.robot b/test/functional/cases/117_spf.robot
index 2ac6997b6..309a0aaef 100644
--- a/test/functional/cases/117_spf.robot
+++ b/test/functional/cases/117_spf.robot
@@ -122,6 +122,11 @@ SPF PTRS
#... -i 98.138.91.168 -F foo@crazyspf.cacophony.za.org
#Check Rspamc ${result} R_SPF_ALLOW
+SPF PERMFAIL REDIRECT WITHOUT SPF
+ ${result} = Scan Message With Rspamc ${TESTDIR}/messages/dmarc/bad_dkim4.eml
+ ... -i 192.0.2.1 -F a@fail1.org.org.za
+ Check Rspamc ${result} R_SPF_PERMFAIL
+
*** Keywords ***
SPF Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/dmarc.conf
diff --git a/test/functional/messages/dmarc/bad_dkim4.eml b/test/functional/messages/dmarc/bad_dkim4.eml
new file mode 100644
index 000000000..6d57aaf5b
--- /dev/null
+++ b/test/functional/messages/dmarc/bad_dkim4.eml
@@ -0,0 +1,17 @@
+Date: Tue, 09 Aug 2016 10:01:27 +0200
+Message-ID: <20160809100127@rspamd.tk>
+From: Rspamd <a@fail1.org.org.za>
+To: foo@rspamd.tk
+Subject: hello
+Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
+MIME-Version: 1.0
+Content-Disposition: inline
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yoni.za.org; s=testdkim1;
+ t=1470729879; h=from:subject:date:message-id:to:mime-version:content-type;
+ bh=7HkRgYnNru3SR2EWfgWU8yhM0MOH6ZZrPoEIgNIh8wc=;
+ b=kTIV4jcgv9sWFh2JFrS/+PcNxiloituqjmHHqeJOTfa+/9C+Er8BjnMysTJyYVq36Gnv0OZDgLr3Yy4YP5Lzbt1M9ZdN5cJqO7yn1N7wyaGfkt++b09rIYBy5Dkk7OWyP3cDThqDzv8C9heSvqBSEsirFsbt3Wx2g/hWiJlnjew=
+
+
+hello
+
+