Expand max_rcpt option on smtp transport. Bug 2946
[exim.git] / test / confs / 0285
index f0871a56508d58fdc7b92eb1e472f0e4b0955283..20ec0263aeb345fad8bef5ac8ae96e3944382621 100644 (file)
@@ -23,7 +23,7 @@ all:
   driver = manualroute
   route_list = * 127.0.0.1 byname
   self = send
-  transport = smtp
+  transport = ${if eq {$domain}{test.ex} {smtp}{magic_smtp}}
 
 
 # ----- Transports -----
@@ -31,9 +31,17 @@ all:
 begin transports
 
 smtp:
-  driver = smtp
-  port = PORT_S
-  max_rcpt = 2
+  driver =     smtp
+  port =       PORT_S
+  hosts_try_fastopen = :
+  max_rcpt =   2
+  connection_max_messages = 3
+
+magic_smtp:
+  driver =     smtp
+  port =       PORT_S
+  hosts_try_fastopen = :
+  max_rcpt =   ${if match {$domain}{magic(\\d+)} {$1} {2}}
   connection_max_messages = 3