ARC: add $arc_domains variable, for verify pass
[users/jgh/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         logwrite =      domains:   <$arc_domains>
30
31 .ifdef OPTION
32   accept
33 .else
34   accept add_header =   :at_start:${authresults {$primary_hostname}}
35 .endif
36   
37 # ----- Routers -----
38
39 begin routers
40
41 d1:
42   driver = accept
43   local_parts = ^a
44   transport = tfile
45
46 redir:
47   driver =      redirect
48   data =        ${substr_1:$local_part}@$domain
49   redirect_router = fwd
50
51 fwd:
52   driver =      accept
53   transport =   tsmtp
54
55 # ----- Transports -----
56
57 begin transports
58
59 tfile:
60   driver =      appendfile
61   file =        DIR/test-mail/$local_part
62   user =        CALLER
63
64 tsmtp:
65   driver =      smtp
66   hosts =       127.0.0.1
67   port =        PORT_D
68   allow_localhost
69   dkim_domain = $primary_hostname
70   dkim_selector = sel
71   dkim_private_key = DIR/aux-fixed/dkim/dkim.private
72 .ifndef OPTION
73   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
74 .endif
75
76 # End