OpenSSL: fix non-DANE build
[exim.git] / test / confs / 4565
1 # Exim test configuration 4565
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 =      arc_oldest_pass <$arc_oldest_pass>
28         logwrite =      domains:        <$arc_domains>
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 redir:
48   driver =      redirect
49   data =        ${substr_1:$local_part}@$domain
50   redirect_router = fwd
51
52 fwd:
53   driver =      accept
54   transport =   tsmtp
55
56 # ----- Transports -----
57
58 begin transports
59
60 tfile:
61   driver =      appendfile
62   file =        DIR/test-mail/$local_part
63   create_file = DIR/test-mail
64   user =        CALLER
65
66 tsmtp:
67   driver =      smtp
68   hosts =       127.0.0.1
69   port =        PORT_D
70   allow_localhost
71   dkim_domain = $primary_hostname
72   dkim_selector = sel
73   dkim_private_key = DIR/aux-fixed/dkim/dkim.private
74 .ifndef OPTION
75   arc_sign =    $primary_hostname : sel : DIR/aux-fixed/dkim/dkim.private
76 .endif
77
78 # End