ARC: fix crash on signing with missing key file
[exim.git] / test / confs / 4562
1 # Exim test configuration 4562
2
3 SERVER=
4 VALUE=
5 INSERT=
6
7 .include DIR/aux-var/std_conf_prefix
8
9 primary_hostname = test.ex
10
11 # ----- Main settings -----
12
13 acl_smtp_rcpt = accept
14 acl_smtp_data = check_data
15
16 log_selector = +received_recipients +dkim_verbose
17 queue_only
18
19 # ----- ACL -----
20 begin acl
21
22 check_data:
23   warn  !verify =       arc VALUE
24         INSERT
25
26   warn  logwrite =      arc_state: <$arc_state>
27         condition =     ${if def:arc_state_reason}
28         logwrite =      reason:    <$arc_state_reason>
29
30 .ifdef OPTION
31   accept
32 .else
33   accept add_header =   :at_start:${authresults {$primary_hostname}}
34 .endif
35   
36 # ----- Routers -----
37
38 begin routers
39
40 d1:
41   driver = accept
42   local_parts = ^a
43   transport = tfile
44
45 redir:
46   driver =      redirect
47   data =        ${substr_1:$local_part}@$domain
48   redirect_router = fwd
49
50 fwd:
51   driver =      accept
52   transport =   tsmtp
53
54 # ----- Transports -----
55
56 begin transports
57
58 tfile:
59   driver =      appendfile
60   file =        DIR/test-mail/$local_part
61   user =        CALLER
62
63 tsmtp:
64   driver =      smtp
65   hosts =       127.0.0.1
66   port =        PORT_D
67   allow_localhost
68   dkim_domain = $primary_hostname
69   dkim_selector = sel
70   dkim_private_key = DIR/aux-fixed/dkim/dkim.private
71 .ifndef OPTION
72   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
73 .endif
74
75 # End