]> source.dussan.org Git - rspamd.git/commitdiff
[Test] SPF PERMFAIL REDIRECT WITHOUT SPF 3177/head
authorkorgoth1 <vladislav.stakhov@gmail.com>
Thu, 5 Dec 2019 18:52:33 +0000 (21:52 +0300)
committerkorgoth1 <vladislav.stakhov@gmail.com>
Thu, 5 Dec 2019 18:52:33 +0000 (21:52 +0300)
test/functional/cases/117_spf.robot
test/functional/messages/dmarc/bad_dkim4.eml [new file with mode: 0644]

index 2ac6997b69afcf686209d76657d8db1d865f28d0..309a0aaef409bf9631ad07d018b74277bd3ae065 100644 (file)
@@ -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 (file)
index 0000000..6d57aaf
--- /dev/null
@@ -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
+
+