Expand max_rcpt option on smtp transport. Bug 2946
[exim.git] / test / confs / 0285
index 8b0ada1f1ae5d7a338758a15ab65cfec161b040e..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,10 +31,17 @@ all:
 begin transports
 
 smtp:
-  driver = smtp
-  port = PORT_S
+  driver =     smtp
+  port =       PORT_S
   hosts_try_fastopen = :
-  max_rcpt = 2
+  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