X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=test%2Fscripts%2F4600-SPF%2F4601;h=5e6602ab02926087b407a81cdf508ebb4b16cb20;hb=4c7f095f4f32a2259017fa5acab6b1278af9e702;hp=ab434611c962e52de987495434baf1dea9c440ec;hpb=6372d4c990f39ba6ad84a91af0a3a61a63bd50a3;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/test/scripts/4600-SPF/4601 b/test/scripts/4600-SPF/4601 index ab434611c..5e6602ab0 100644 --- a/test/scripts/4600-SPF/4601 +++ b/test/scripts/4600-SPF/4601 @@ -1,12 +1,5 @@ # 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:PORT_S **** client 127.0.0.1 PORT_D @@ -31,3 +24,14 @@ quit **** # killdaemon +# +# +# +exim -be +eDNS_NOMATCH none ${lookup {fred@v6.test.ex} spf {HOSTIPV4}} +eDNS_AGAIN temperror ${lookup {fred@test.again.dns} spf {HOSTIPV4}} +multiple rr permerror ${lookup {fred@double.example.com} spf {8.8.8.8}} +multi + non-spf permerror ${lookup {fred@doubleplus.example.com} spf {8.8.8.8}} +uppercase in v= pass ${lookup {fred@uppercase.example.com} spf {HOSTIPV4}} +only non-spf txt none ${lookup {fred@test.ex} spf {HOSTIPV4}} +****