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