Testsuite: Use explicit interface for send to localhost
[users/heiko/exim.git] / test / confs / 0227
index 2f2178185d1ed6fb7ddcd965fe9a2f04d4678db1..063ced4819e41aa274752ad6e2a0644eb9d823e3 100644 (file)
@@ -26,25 +26,19 @@ check_recipient:
           control  = no_multiline_responses
   accept  hosts    = V4NET.0.0.4
   deny    hosts    = V4NET.0.0.1
-          log_message = ($sender_verify_failure) R:$router_name
          !verify   = sender/callout=no_cache
   deny    hosts    = V4NET.0.0.3
-          log_message = ($recipient_verify_failure) R:$router_name
          !verify   = recipient/callout=no_cache
-  warn    logwrite = verify recipient used R:$router_name
   deny    hosts    = V4NET.0.0.5
-          log_message = ($sender_verify_failure) R:$router_name
          !verify   = sender/callout=no_cache/check_postmaster
   require verify   = sender
-          logwrite = verify sender used R:$router_name
   accept  domains  = +local_domains
   deny    message  = relay not permitted
 
 check_data:
   deny    hosts = V4NET.0.0.4
-          log_message = header_sender R:$router_name
          !verify = header_sender/callout=no_cache
-  accept logwrite = verify header_sender used R:$router_name
+  accept
 
 
 # ----- Routers -----
@@ -88,6 +82,7 @@ begin transports
 smtp:
   driver = smtp
   port = PORT_S
+  interface = ${if eq {$host}{127.0.0.1} {127.0.0.1}}
 
 lmtp:
   driver = smtp