X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/743c4c9f5a8ecd10fb91fff283d949ca9d12e2fb..4533e306fc21e0dc3cce32db0e2bfa146a5dd78c:/test/scripts/4600-SPF/4601 diff --git a/test/scripts/4600-SPF/4601 b/test/scripts/4600-SPF/4601 index 096b64e24..6012cfdeb 100644 --- a/test/scripts/4600-SPF/4601 +++ b/test/scripts/4600-SPF/4601 @@ -1,15 +1,8 @@ # lookup string-expansion # -# It is rather difficult to properly test spf. We use libspf2 to do the work, and it -# does the DNS lookups, so we cannot intercept them in the testsuite's usual fashion -# to provide values for testcases. -# -# For now just check that what should be working syntax does not cause us to fall over. -# Be careful with envelope-domains used for testcases, as real DNS lookups will be done. -# -exim -bd -DSERVER=server -oX PORT_D +exim -bd -DSERVER=server -oX PORT_D:PORT_S **** -client HOSTIPV4 PORT_D +client 127.0.0.1 PORT_D ??? 220 helo testclient ??? 250 @@ -19,7 +12,7 @@ rcpt to: ??? 250 quit **** -client 127.0.0.1 PORT_D +client 127.0.0.1 PORT_S ??? 220 helo testclient ??? 250 @@ -31,3 +24,9 @@ quit **** # killdaemon +# +# A multiple spf-RR return should get permerror +exim -be +${lookup {fred@double.example.com} spf {8.8.8.8}} +${lookup {fred@uppercase.example.com} spf {HOSTIPV4}} +****