Testsuite: separate cases for TLS resumption with/out OCSP
[users/heiko/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/${bless:$local_part}
82   user =        CALLER
83
84 tsmtp:
85   driver =      smtp
86   hosts =       127.0.0.1
87   port =        PORT_D
88   allow_localhost
89 .ifndef OPTION
90 .ifdef BAD
91   arc_sign =    $primary_hostname : sel : MISSING_KEY
92 .else
93   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
94 .endif
95 .endif
96
97 tmlist:
98   driver =      smtp
99   hosts =       127.0.0.1
100   port =        PORT_D
101   allow_localhost
102   transport_filter =    /bin/cat - DIR/aux-fixed/TESTNUM.mlistfooter
103 .ifndef OPTION
104   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
105 .endif
106
107 # End