ARC: fix signing when DKIM-signing is also being done
[exim.git] / test / confs / 4562
CommitLineData
0c2250d1
JH
1# Exim test configuration 4562
2
3SERVER=
4VALUE=
5INSERT=
6
7.include DIR/aux-var/std_conf_prefix
8
9primary_hostname = test.ex
10
11# ----- Main settings -----
12
13acl_smtp_rcpt = accept
14acl_smtp_data = check_data
15
16log_selector = +received_recipients +dkim_verbose
17queue_only
18
19# ----- ACL -----
20begin acl
21
22check_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
38begin routers
39
40d1:
41 driver = accept
42 local_parts = ^a
43 transport = tfile
44
45redir:
46 driver = redirect
47 data = ${substr_1:$local_part}@$domain
48 redirect_router = fwd
49
50fwd:
51 driver = accept
52 transport = tsmtp
53
54# ----- Transports -----
55
56begin transports
57
58tfile:
59 driver = appendfile
60 file = DIR/test-mail/$local_part
61 user = CALLER
62
63tsmtp:
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