OpenSSL: fix tls_out_ocsp under resumption
[users/jgh/exim.git] / test / confs / 0900
1 # Exim test configuration 0900
2 SERVER=
3 SRV=
4 LIST=
5 ALLOW=
6
7 exim_path = EXIM_PATH
8 keep_environment =
9 host_lookup_order = bydns
10 spool_directory = DIR/spool
11 log_file_path = DIR/spool/log/SERVER%slog
12 gecos_pattern = ""
13 gecos_name = CALLER_NAME
14 chunking_advertise_hosts = *
15 tls_advertise_hosts = ${if eq {SRV}{tls} {*}}
16 .ifdef _HAVE_REQTLS
17 tls_advertise_requiretls = :
18 .endif
19 .ifdef _HAVE_PIPE_CONNECT
20 pipelining_connect_advertise_hosts = :
21 .endif
22 .ifdef _HAVE_DMARC
23 dmarc_tld_file =
24 .endif
25
26
27 # ----- Main settings -----
28
29 primary_hostname = testhost.test.ex
30 domainlist local_domains = @ : test.ex
31
32 acl_smtp_rcpt = check_recipient
33 acl_smtp_data_prdr = check_prdr
34 acl_smtp_data = check_data
35 trusted_users = CALLER
36 queue_only
37 smtp_receive_timeout = 2s
38
39 .ifdef _HAVE_DKIM
40 log_selector = +received_recipients +dkim_verbose
41 .else
42 log_selector = +received_recipients
43 .endif
44
45 .ifdef _OPT_MAIN_TLS_CERTIFICATE
46 tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
47 tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
48 .endif
49
50 ALLOW
51
52 # ----- ACL -----
53
54 begin acl
55
56 check_recipient:
57   accept hosts = :
58   accept domains = +local_domains
59   deny   message = relay not permitted
60
61 check_prdr:
62   accept local_parts = good
63   deny
64
65 check_data:
66   warn   message = X-acl-message-linecount: $message_linecount
67   accept
68
69 # ----- Routers -----
70
71 begin routers
72
73 to_server:
74   driver = accept
75   condition =   ${if !eq {SERVER}{server}}
76   transport =   remote_smtp${if eq {SRV}{dkim} {_dkim}}
77   errors_to =   ""
78
79 fail_remote_domains:
80   driver = redirect
81   domains = ! +local_domains
82   data = :fail: unrouteable mail domain "$domain"
83
84 localuser:
85   driver = accept
86   check_local_user
87   transport = local_delivery
88   headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid
89
90
91 # ----- Transports -----
92
93 begin transports
94
95 local_delivery:
96   driver = appendfile
97   delivery_date_add
98   envelope_to_add
99   file = DIR/test-mail/$local_part
100   headers_add = "X-body-linecount: $body_linecount\n\
101                  X-message-linecount: $message_linecount\n\
102                  X-received-count: $received_count"
103   return_path_add
104
105 remote_smtp:
106   driver = smtp
107   hosts =       127.0.0.1
108   port =        PORT_S
109   allow_localhost
110   command_timeout = 2s
111   final_timeout = 2s
112
113 remote_smtp_dkim:
114   driver = smtp
115   hosts =       127.0.0.1
116   port =        PORT_S
117   allow_localhost
118   command_timeout = 2s
119   final_timeout = 2s
120
121 .ifdef _HAVE_DKIM
122 .ifdef SRV
123   dkim_domain =         test.ex
124   dkim_selector =       sel
125   dkim_private_key =    DIR/aux-fixed/dkim/dkim.private
126 .ifndef HEADERS_MAXSIZE
127   dkim_sign_headers =   LIST
128 .endif
129 .endif
130 .endif
131
132 # ----- Retry -----
133
134 begin retry
135 * * F,30m,5m;
136 # End