ARC: fix crash on signing with missing key file
[exim.git] / test / confs / 4560
index 881b2d7266e8a3bb4788f266fa7215236d1a65f6..5dda8244c8f84be203bea03df647e4bfbe0a6487 100644 (file)
@@ -23,6 +23,10 @@ check_data:
   warn !verify =       arc VALUE
        INSERT
 
   warn !verify =       arc VALUE
        INSERT
 
+  warn logwrite =      arc_state: <$arc_state>
+       condition =     ${if def:arc_state_reason}
+       logwrite =      reason:    <$arc_state_reason>
+
 .ifdef OPTION
   accept
 .else
 .ifdef OPTION
   accept
 .else
@@ -72,8 +76,12 @@ tsmtp:
   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