Docs: tweak ARC description
[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         logwrite =      reason:         <$arc_state_reason>
30         logwrite =      lh_A-R:         <$lh_Authentication-Results:>
31         logwrite =      lh-ams:         <$lh_ARC-Authentication-Results:>
32 #       logwrite =      oldest-p-ams:   <${listextract {$arc_oldest_pass} {$lh_ARC-Authentication-Results:}}>
33         logwrite =      oldest-p-ams:   <${reduce {$lh_ARC-Authentication-Results:} \
34                                                 {} \
35                                                 {${if = {$arc_oldest_pass} \
36                                                         {${extract {i}{${extract {1}{;}{$item}}}}} \
37                                                         {$item} {$value}}} \
38                                         }>
39
40 .ifdef OPTION
41   accept
42 .else
43   accept add_header =   :at_start:${authresults {$primary_hostname}}
44 .endif
45   
46 # ----- Routers -----
47
48 begin routers
49
50 d1:
51   driver = accept
52   local_parts = ^a
53   transport = tfile
54
55 r2:
56   driver =      redirect
57   local_parts = ^m
58   data =        ${substr_1:$local_part}@$domain
59   redirect_router = mlist
60
61 redir:
62   driver =      redirect
63   data =        ${substr_1:$local_part}@$domain
64   redirect_router = fwd
65
66 fwd:
67   driver =      accept
68   transport =   tsmtp
69
70 mlist:
71   driver =      accept
72   transport =   tmlist
73
74 # ----- Transports -----
75
76 begin transports
77
78 tfile:
79   driver =      appendfile
80   file =        DIR/test-mail/$local_part
81   user =        CALLER
82
83 tsmtp:
84   driver =      smtp
85   hosts =       127.0.0.1
86   port =        PORT_D
87   allow_localhost
88 .ifndef OPTION
89 .ifdef BAD
90   arc_sign =    $primary_hostname : sel : MISSING_KEY
91 .else
92   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
93 .endif
94 .endif
95
96 tmlist:
97   driver =      smtp
98   hosts =       127.0.0.1
99   port =        PORT_D
100   allow_localhost
101   transport_filter =    /bin/cat - DIR/aux-fixed/TESTNUM.mlistfooter
102 .ifndef OPTION
103   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
104 .endif
105
106 # End