Fix HAVE_LOCAL_SCAN build. Bug 2457
[users/jgh/exim.git] / test / confs / 0478
index d9fd0a5ce162173357eedae8e832a6ee7b938f08..cfb9a17b1af20023eb263121231fc0f5eb642c75 100644 (file)
@@ -27,7 +27,9 @@ begin transports
 t1:
   driver = smtp
   port = PORT_D
-  hosts = ${if eq {$sender_host_address}{}{$local_part}{V4NET.0.0.2}}
+  hosts = ${if !eq {$sender_host_address}{} {V4NET.0.0.2} \
+               {${if eq {127.0.0.1}{$local_part} {127.0.0.1} \
+               {${if eq {V4NET.0.0.1}{$local_part} {V4NET.0.0.1}}}}}}
   allow_localhost
   connect_timeout = 1s