Testsuite: unbreak testcase
[exim.git] / test / confs / 0900
CommitLineData
7e3ce68e 1# Exim test configuration 0900
e027f545 2SERVER=
fbbd45ff 3SRV=
6acd9fcf 4LIST=
0b20855c 5ALLOW=
7e3ce68e
JH
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 = *
fbbd45ff 15tls_advertise_hosts = ${if eq {SRV}{tls} {*}}
8ac90765
JH
16.ifdef _HAVE_REQTLS
17tls_advertise_requiretls = :
18.endif
ee8b8090
JH
19.ifdef _HAVE_PIPE_CONNECT
20pipelining_connect_advertise_hosts = :
21.endif
590fd9ee
JH
22.ifdef _HAVE_DMARC
23dmarc_tld_file =
24.endif
7e3ce68e
JH
25
26
27# ----- Main settings -----
28
c7cb9a4a 29primary_hostname = testhost.test.ex
48f1c853 30domainlist local_domains = @ : test.ex
7e3ce68e
JH
31
32acl_smtp_rcpt = check_recipient
0b20855c 33acl_smtp_data_prdr = check_prdr
7e3ce68e 34acl_smtp_data = check_data
7e3ce68e
JH
35trusted_users = CALLER
36queue_only
37smtp_receive_timeout = 2s
2c47372f
JH
38
39.ifdef _HAVE_DKIM
40log_selector = +received_recipients +dkim_verbose
41.else
48f1c853 42log_selector = +received_recipients
2c47372f 43.endif
7e3ce68e 44
d29a84b5 45.ifdef _OPT_MAIN_TLS_CERTIFICATE
e7621e83
JH
46tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
47tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail}
d29a84b5 48.endif
7e3ce68e 49
0b20855c
JH
50ALLOW
51
7e3ce68e
JH
52# ----- ACL -----
53
54begin acl
55
56check_recipient:
57 accept hosts = :
58 accept domains = +local_domains
59 deny message = relay not permitted
60
0b20855c
JH
61check_prdr:
62 accept local_parts = good
63 deny
64
7e3ce68e
JH
65check_data:
66 warn message = X-acl-message-linecount: $message_linecount
67 accept
68
7e3ce68e
JH
69# ----- Routers -----
70
71begin routers
72
e027f545
JH
73to_server:
74 driver = accept
75 condition = ${if !eq {SERVER}{server}}
8ac90765 76 transport = remote_smtp${if eq {SRV}{dkim} {_dkim}}
e027f545
JH
77 errors_to = ""
78
7e3ce68e
JH
79fail_remote_domains:
80 driver = redirect
81 domains = ! +local_domains
82 data = :fail: unrouteable mail domain "$domain"
83
84localuser:
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
93begin transports
94
95local_delivery:
96 driver = appendfile
97 delivery_date_add
98 envelope_to_add
0d2e392e 99 file = DIR/test-mail/${bless:$local_part}
7e3ce68e
JH
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
e027f545
JH
105remote_smtp:
106 driver = smtp
107 hosts = 127.0.0.1
108 port = PORT_S
277b9979 109 hosts_try_fastopen = :
e027f545
JH
110 allow_localhost
111 command_timeout = 2s
112 final_timeout = 2s
113
48f1c853
JH
114remote_smtp_dkim:
115 driver = smtp
116 hosts = 127.0.0.1
117 port = PORT_S
277b9979 118 hosts_try_fastopen = :
48f1c853
JH
119 allow_localhost
120 command_timeout = 2s
121 final_timeout = 2s
122
1ccc4edf 123.ifdef _HAVE_DKIM
8ac90765 124.ifdef SRV
48f1c853
JH
125 dkim_domain = test.ex
126 dkim_selector = sel
127 dkim_private_key = DIR/aux-fixed/dkim/dkim.private
128.ifndef HEADERS_MAXSIZE
6acd9fcf 129 dkim_sign_headers = LIST
48f1c853 130.endif
9960d1e5 131.endif
1ccc4edf 132.endif
48f1c853 133
e027f545
JH
134# ----- Retry -----
135
136begin retry
137* * F,30m,5m;
7e3ce68e 138# End