ARC: add $arc_oldest_pass variable, for verify
[users/jgh/exim.git] / test / confs / 4560
1 # Exim test configuration 4560
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         logwrite =      domains:        <$arc_domains>
28         logwrite =      arc_oldest_pass <$arc_oldest_pass>
29         condition =     ${if def:arc_state_reason}
30         logwrite =      reason:         <$arc_state_reason>
31
32 .ifdef OPTION
33   accept
34 .else
35   accept add_header =   :at_start:${authresults {$primary_hostname}}
36 .endif
37   
38 # ----- Routers -----
39
40 begin routers
41
42 d1:
43   driver = accept
44   local_parts = ^a
45   transport = tfile
46
47 r2:
48   driver =      redirect
49   local_parts = ^m
50   data =        ${substr_1:$local_part}@$domain
51   redirect_router = mlist
52
53 redir:
54   driver =      redirect
55   data =        ${substr_1:$local_part}@$domain
56   redirect_router = fwd
57
58 fwd:
59   driver =      accept
60   transport =   tsmtp
61
62 mlist:
63   driver =      accept
64   transport =   tmlist
65
66 # ----- Transports -----
67
68 begin transports
69
70 tfile:
71   driver =      appendfile
72   file =        DIR/test-mail/$local_part
73   user =        CALLER
74
75 tsmtp:
76   driver =      smtp
77   hosts =       127.0.0.1
78   port =        PORT_D
79   allow_localhost
80 .ifndef OPTION
81   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
82 .endif
83
84 tmlist:
85   driver =      smtp
86   hosts =       127.0.0.1
87   port =        PORT_D
88   allow_localhost
89   transport_filter =    /bin/cat - DIR/aux-fixed/TESTNUM.mlistfooter
90 .ifndef OPTION
91   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
92 .endif
93
94 # End