From: Jeremy Harris Date: Mon, 19 Aug 2019 13:23:11 +0000 (+0100) Subject: Testsuite: DNS lookup notes X-Git-Tag: exim-4.93-RC0~96 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4f6bbb37e87d83d62840a53763d1273f9737a601;p=exim.git Testsuite: DNS lookup notes --- diff --git a/test/scripts/4600-SPF/4600 b/test/scripts/4600-SPF/4600 index 582394879..8490288e1 100644 --- a/test/scripts/4600-SPF/4600 +++ b/test/scripts/4600-SPF/4600 @@ -3,6 +3,10 @@ # The 127.0.0.1 source addr seems to be a builtin in the spf library; no dns lookup is done. # HOSTIPV4 does get a series of lookups (see server debug output to verify that). # +# The libspf2 object stack is built with an exim-specific DNS lookup base object, +# so the testsuite intercept to fakedns works. Be careful of names and addresses +# used, as nonhandled lookups are passed on to real DNS. +# exim -bd -DSERVER=server -oX PORT_D:PORT_S:PORT_N **** client 127.0.0.1 PORT_S diff --git a/test/scripts/4650-DMARC/4650 b/test/scripts/4650-DMARC/4650 index 85d9e51cc..5526a8bbe 100644 --- a/test/scripts/4650-DMARC/4650 +++ b/test/scripts/4650-DMARC/4650 @@ -1,11 +1,10 @@ # acl variables and authresults # -# SPF is a problem. 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. +# +# SPF and DMARC lookups in DNS are diverted into the testsuite fakedns handling. +# Be careful with envelope-domains used for testcases, as real DNS lookups will be done +# for names not provided for in fakedns. # exim -bd -DSERVER=server -oX PORT_D ****