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