testsuite: tidy runtest
[exim.git] / test / confs / 4560
index 1012a38970af15b9575414b5783f52a6dde923b7..8c5864b9a5f48a38017d4d80bead453e72ff637b 100644 (file)
@@ -1,6 +1,8 @@
 # Exim test configuration 4560
 
 SERVER=
 # Exim test configuration 4560
 
 SERVER=
+VALUE=
+INSERT=
 
 .include DIR/aux-var/std_conf_prefix
 
 
 .include DIR/aux-var/std_conf_prefix
 
@@ -13,12 +15,29 @@ acl_smtp_data = check_data
 
 log_selector = +received_recipients +dkim_verbose
 queue_only
 
 log_selector = +received_recipients +dkim_verbose
 queue_only
+queue_run_in_order
 
 # ----- ACL -----
 begin acl
 
 check_data:
 
 # ----- ACL -----
 begin acl
 
 check_data:
-  warn !verify =       arc
+  warn !verify =       arc VALUE
+       INSERT
+
+  warn logwrite =      arc_state:      <$arc_state>
+       logwrite =      domains:        <$arc_domains>
+       logwrite =      arc_oldest_pass <$arc_oldest_pass>
+       logwrite =      reason:         <$arc_state_reason>
+       logwrite =      lh_A-R:         <$lh_Authentication-Results:>
+       logwrite =      lh-ams:         <$lh_ARC-Authentication-Results:>
+#      logwrite =      oldest-p-ams:   <${listextract {$arc_oldest_pass} {$lh_ARC-Authentication-Results:}}>
+       logwrite =      oldest-p-ams:   <${reduce {$lh_ARC-Authentication-Results:} \
+                                               {} \
+                                               {${if = {$arc_oldest_pass} \
+                                                       {${extract {i}{${extract {1}{;}{$item}}}}} \
+                                                       {$item} {$value}}} \
+                                       }>
+
 .ifdef OPTION
   accept
 .else
 .ifdef OPTION
   accept
 .else
@@ -59,21 +78,25 @@ begin transports
 
 tfile:
   driver =     appendfile
 
 tfile:
   driver =     appendfile
-  file =       DIR/test-mail/$local_part
+  file =       DIR/test-mail/${bless:$local_part}
   user =       CALLER
 
 tsmtp:
   driver =     smtp
   user =       CALLER
 
 tsmtp:
   driver =     smtp
-  hosts =      HOSTIPV4
+  hosts =      127.0.0.1
   port =       PORT_D
   allow_localhost
 .ifndef OPTION
   port =       PORT_D
   allow_localhost
 .ifndef OPTION
+.ifdef BAD
+  arc_sign =   $primary_hostname : sel : MISSING_KEY
+.else
   arc_sign =   $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
 .endif
   arc_sign =   $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
 .endif
+.endif
 
 tmlist:
   driver =     smtp
 
 tmlist:
   driver =     smtp
-  hosts =      HOSTIPV4
+  hosts =      127.0.0.1
   port =       PORT_D
   allow_localhost
   transport_filter =   /bin/cat - DIR/aux-fixed/TESTNUM.mlistfooter
   port =       PORT_D
   allow_localhost
   transport_filter =   /bin/cat - DIR/aux-fixed/TESTNUM.mlistfooter