[exim-cvs] Testsuite: SPF testcase additions

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Exim Git Commits Mailing List
日付:  
To: exim-cvs
題目: [exim-cvs] Testsuite: SPF testcase additions
Gitweb: https://git.exim.org/exim.git/commitdiff/b17ea87dd9582c2fb0e637c246211fb5328065be
Commit:     b17ea87dd9582c2fb0e637c246211fb5328065be
Parent:     1c519e07b908a314ce7bdfceb6baa9e18e302dfc
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Dec 28 17:44:28 2019 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Sat Dec 28 17:47:44 2019 +0000


    Testsuite: SPF testcase additions
---
 test/dnszones-src/db.example.com | 4 ++++
 test/scripts/4600-SPF/4601       | 5 +++++
 2 files changed, 9 insertions(+)


diff --git a/test/dnszones-src/db.example.com b/test/dnszones-src/db.example.com
index 6b35113..b12d9a6 100644
--- a/test/dnszones-src/db.example.com
+++ b/test/dnszones-src/db.example.com
@@ -28,6 +28,10 @@ example.com.    TXT     v=spf1 -all
 double        TXT    v=spf1 include:_spf.google.com ~all
         TXT    v=spf1 +a +mx -all


+doubleplus    TXT    v=spf1 include:_spf.google.com ~all
+        TXT    google-site-verification=q-4MSVLjluQIsBztu5jzJBxAcJXzNcHAk0jHTZEamB8
+        TXT    v=spf1 +a +mx -all
+
 uppercase    TXT    v=sPf1 +all


; Alias A record for the local host, under the name "server1"
diff --git a/test/scripts/4600-SPF/4601 b/test/scripts/4600-SPF/4601
index 6012cfd..72ef10d 100644
--- a/test/scripts/4600-SPF/4601
+++ b/test/scripts/4600-SPF/4601
@@ -25,8 +25,13 @@ quit
#
killdaemon
#
+# SERVFAIL -> temperror
# A multiple spf-RR return should get permerror
+# - and not crash with non-spf txt records
+# v=spf1 is casr-insensitive
exim -be
+${lookup {fred@???} spf {HOSTIPV4}}
${lookup {fred@???} spf {8.8.8.8}}
+${lookup {fred@???} spf {8.8.8.8}}
${lookup {fred@???} spf {HOSTIPV4}}
****