From 4f6bbb37e87d83d62840a53763d1273f9737a601 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 19 Aug 2019 14:23:11 +0100 Subject: [PATCH] Testsuite: DNS lookup notes --- test/scripts/4600-SPF/4600 | 4 ++++ test/scripts/4650-DMARC/4650 | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) 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 **** -- 2.25.1