#
exim -DSERVER=server -bd -oX PORT_D
****
-exim userx@test.ex
-hosts: 127.0.0.1
+exim user4@h1.test.ex
+
+1
interface: <; ::1 ; HOSTIPV4
****
-exim userx@test.ex
-hosts: <; ::1
+#
+# This tries to send to ::1 from HOSTIPV6 - which is ok until HOSTIPV6
+# is a link-local addr (with a scope-id specifying the link). Then,
+# it seems, ::1 is not on that link (for Linux, at least). The connect
+# times out and the testcase fails.
+exim user6@h2.test.ex
+
+2
interface: <; HOSTIPV6 ; HOSTIPV4
****
-exim userx@test.ex
-hosts: <; ::1
+exim user6@h3.test.ex
+
+3
interface: <; ${if eq{0}{1}{HOSTIPV6}fail}
****
-exim userx@test.ex
-hosts: <; ::1
+exim user6@h4.test.ex
+
+4
interface: <; ${if eq{0}{1}{HOSTIPV6}{ }}
****
-exim userx@test.ex
-hosts: <; ::1
+exim user6@h5.test.ex
+
+5
interface: <; ${if
****
exim -qf