]> source.dussan.org Git - rspamd.git/commitdiff
[Test] SPF uppercase elements 3201/head
authorkorgoth1 <vladislav.stakhov@gmail.com>
Sun, 29 Dec 2019 14:41:29 +0000 (17:41 +0300)
committerkorgoth1 <vladislav.stakhov@gmail.com>
Sun, 29 Dec 2019 14:41:29 +0000 (17:41 +0300)
test/functional/cases/117_spf.robot
test/functional/configs/plugins.conf

index 59f2667cd3c1b2e2c276437d1bca265b1cdc28c9..08733471b7194048b1cef4927565f3682f711a59 100644 (file)
@@ -131,6 +131,11 @@ SPF EXTERNAL RELAY
   ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/external_relay.eml
   Should contain  ${result.stdout}  R_SPF_ALLOW (1.00)[+ip4:37.48.67.26]
 
+SPF UPPERCASE
+  ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/dmarc/bad_dkim1.eml
+  ...  -i  8.8.8.8  -F  x@fail11.org.org.za
+  Check Rspamc  ${result}  R_SPF_ALLOW
+
 *** Keywords ***
 SPF Setup
   ${PLUGIN_CONFIG} =  Get File  ${TESTDIR}/configs/dmarc.conf
index b55f3a35c68014e9e156e4c33417c83c65868503..025f6c55f0b32db080b5c2c6b1d2b32f27661241 100644 (file)
@@ -208,6 +208,11 @@ options = {
           type = "txt";
           replies = ["v=spf1 redirect=fail5.org.org.za"];
         },
+        {
+          name = "fail11.org.org.za",
+          type = "txt";
+          replies = ["v=sPF1 ip4:8.8.8.8 -all"];
+        },
         {
           name = "fail5.org.org.za",
           type = "txt";