1 # Exim test configuration 0001
3 # This configuration sets every option that is not dependent on optional code
4 # in the binary, except for exim_user and exim_group, because setting them can
5 # mess up the creation of the spool directory etc.
8 host_lookup_order = bydns
9 rfc1413_query_timeout = 0s
10 spool_directory = DIR/spool
11 log_file_path = DIR/spool/log/%slog
13 gecos_name = CALLER_NAME
17 acl_not_smtp = check_local_message
18 acl_smtp_auth = check_auth
19 acl_smtp_connect = check_connect
20 acl_smtp_data = check_message
21 acl_smtp_etrn = check_etrn
22 acl_smtp_expn = check_expn
23 acl_smtp_helo = check_helo
24 acl_smtp_mail = check_mail
25 acl_smtp_mailauth = check_mailauth
26 acl_smtp_quit = check_quit
27 acl_smtp_predata = check_predata
28 acl_smtp_rcpt = check_recipient
29 acl_smtp_vrfy = check_vrfy
33 auth_advertise_hosts = a.a.h
38 bounce_return_body = false
39 no_bounce_return_message
40 return_size_limit = 12K
41 bounce_return_size_limit = 10K
42 callout_domain_negative_expire = 1h
43 callout_domain_positive_expire = 1d
44 callout_negative_expire = 5h
45 callout_positive_expire = 1w
46 callout_random_local_part = xxx\
50 check_spool_inodes = 0
54 daemon_startup_retries = 3
55 daemon_startup_sleep = 8s
57 delay_warning_condition = ${if match{$h_precedence:}{(?i)bulk|list}{no}{yes}}
58 deliver_drop_privilege
59 deliver_queue_load_max = 6.2
61 dns_again_means_nonexist = *.esri.com:jeni.com
62 dns_check_names_pattern = ^.*$
69 errors_reply_to = postmaster@cam.ac.uk
70 extra_local_interfaces = 1.2.3.4
71 no_extract_addresses_remove_arguments
74 freeze_tell = postmaster
75 headers_charset = UTF-8
77 header_line_maxsize = 2K
78 helo_accept_junk_hosts =
81 helo_verify_hosts = localhost
82 helo_try_verify_hosts = 1.2.3.4
85 host_reject_connection = 10.9.8.7
86 hosts_connection_nolog = 127.0.0.1
87 hosts_treat_as_local =
88 ignore_bounce_errors_after = 2m
89 ignore_fromline_hosts = a.b.c.d
93 local_from_prefix = *-
94 local_from_suffix = =*
96 local_scan_timeout = 10s
98 localhost_number = "3 "
106 +incoming_interface \
108 +lost_incoming_connection \
110 +received_recipients \
113 +return_path_on_delivery \
114 +sender_on_delivery \
125 max_username_length = 8
126 message_body_visible = 500
127 message_id_header_domain = a.b.c
128 message_id_header_text = x.y.z
130 message_size_limit = 500K
133 percent_hack_domains =
134 pipelining_advertise_hosts = *.b.c
135 pid_file_path = /some/thing
136 no_preserve_message_logs
137 primary_hostname = some.host.name
139 process_log_path = /a/b/c/d
141 qualify_domain = some.dom.ain
142 qualify_recipient = some.dom.ain
143 queue_domains = a.b.c
144 queue_list_requires_admin
146 no_queue_only_override
147 queue_only_file = /var/spool/exim/queue_only
148 queue_only_load = 8.2
149 no_queue_run_in_order
151 queue_smtp_domains = x.y.z
153 received_header_text = Received: ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}{${if def:sender_ident {from ${sender_ident} }}${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}by ${primary_hostname} ${if def:received_protocol {with ${received_protocol}}} (Exim ${version_number} #${compile_number})\n\tid ${message_id}${if def:received_for {\n\tfor $received_for}}
154 received_headers_max = 30
155 recipient_unqualified_hosts = localhost:some.host.name
157 no_recipients_max_reject
158 remote_max_parallel = 1
159 remote_sort_domains =
160 retry_data_expire = 24h
161 retry_interval_max = 3d
164 sender_unqualified_hosts = localhost:some.host.name
165 smtp_accept_keepalive
167 smtp_accept_max_nonmail = 40
168 smtp_accept_max_nonmail_hosts = ! *.b.c
169 smtp_accept_max_per_connection = 20
170 smtp_accept_max_per_host = 4
171 smtp_accept_queue = 0
172 smtp_accept_queue_per_connection = 10
173 smtp_active_hostname = x.y.z
175 smtp_max_synprot_errors = 11
176 smtp_max_unknown_commands = 10
177 smtp_ratelimit_hosts = *
178 smtp_ratelimit_mail = 1, 1s, 2, 10s
179 smtp_ratelimit_rcpt = 10, 2s, 5, 5m
180 smtp_accept_reserve = 0
181 smtp_banner = ${primary_hostname} ESMTP Exim ${version_number} #${compile_number} ${tod_full}
182 smtp_check_spool_space
183 smtp_connect_backlog = 5
186 smtp_load_reserve = 2
187 smtp_receive_timeout = 1m
189 smtp_return_error_details
190 no_split_spool_directory
191 no_strip_excess_angle_brackets
192 no_strip_trailing_dot
193 no_syslog_duplication
194 syslog_facility = uucp
195 syslog_processname = mta-exim
197 system_filter = /home/exim/test/filter
198 system_filter_directory_transport =
199 system_filter_file_transport =
200 system_filter_group = mail
201 system_filter_pipe_transport =
202 system_filter_reply_transport =
203 system_filter_user = 99
205 timeout_frozen_after = 7d
208 trusted_users = ${readfile{DIR/aux-fixed/TESTNUM.trusted}{:}}
209 unknown_login = unknownlogin
210 unknown_username = Exim Testing
211 untrusted_set_sender = *
212 uucp_from_pattern = ^From\s+(\S+)\s+(?:[a-zA-Z]{3},?\s+)?(?:[a-zA-Z]{3}\s+\d?\d|\d?\d\s+[a-zA-Z]{3}\s+\d\d(?:\d\d)?)\s+\d\d?:\d\d?
213 uucp_from_sender = $1
214 warn_message_file = /home/exim/test/warnmsg_file
215 write_rejectlog = false
218 # ----- Routers -----
222 # The manualroute router
226 address_data = domainlist address data
227 cannot_route_message = can't route this address
234 no_fail_verify_recipient
235 no_fail_verify_sender
236 fallback_hosts = localhost
240 host_find_failed = freeze
246 pass_router = manualroute2
247 redirect_router = manualroute2
249 route_data = ${lookup{$local_part}lsearch{/}}
250 router_home_directory = /usr
260 # Manualroute2 router, for mutually exclusive options
264 domains = ! +local_domains
265 route_list = ^fax(\.cl(\.cam(\.ac\.uk)?)?)?$ cl.cam.ac.uk; \
266 *.uucp britain.eu.net
268 # The redirect router, in "alias" mode
272 address_data = aliasfile address data
278 data = ${lookup{$local_part}lsearch{/etc/aliases}}
280 directory_transport = dummy
284 no_fail_verify_recipient
285 no_fail_verify_sender
287 file_transport = dummy
296 include_directory = /i/n/c
299 no_local_part_prefix_optional
301 no_local_part_suffix_optional
305 pipe_transport = dummy
306 no_qualify_preserve_domain
308 qualify_domain = xxxx
309 redirect_router = aliasfile2
314 sieve_vacation_directory = /thing/thong
315 sieve_subaddress = rhubarb
316 sieve_useraddress = custard
317 no_skip_syntax_errors
319 transport_current_directory =
320 transport_home_directory =
327 # Aliasfile2 for mutually exclusive options
338 # The redirect router in "forward" mode
350 directory_transport = dummy
354 no_fail_verify_recipient
355 no_fail_verify_sender
358 file_transport = dummy
361 forbid_filter_existstest
362 no_forbid_filter_logwrite
365 forbid_filter_readfile
366 forbid_filter_readsocket
378 local_part_prefix = xxx-
379 local_part_prefix_optional
381 no_local_part_suffix_optional
388 pipe_transport = dummy
389 no_qualify_preserve_domain
390 redirect_router = aliasfile2
391 reply_transport = dummy
395 no_skip_syntax_errors
396 syntax_errors_text = rhubarb
398 transport_current_directory =
399 transport_home_directory =
418 no_fail_verify_recipient
419 no_fail_verify_sender
422 headers_add = X-added: by localuser
426 no_local_part_prefix_optional
428 no_local_part_suffix_optional
432 redirect_router = smartuser
435 transport = ${if eq{$local_part}{caller}{local_mbx_delivery}{local_delivery}}
436 transport_current_directory =
437 transport_home_directory =
444 # The redirect router in "smartuser" mode
455 no_fail_verify_recipient
456 no_fail_verify_sender
458 file_transport = dummy
467 no_local_part_prefix_optional
469 no_local_part_suffix_optional
473 pipe_transport = dummy
474 qualify_preserve_domain
475 redirect_router = localuser
487 # ----- Transports -----
489 # Dummy transport, to refer back to
497 # Appendfile Transport
510 create_file = anywhere
514 directory_mode = 0700
517 file = /home/$local_part/inbox
518 file_format = "From : appendfile"
521 headers_add = X-original-domain: $original_domain\nX-original-localp: $original_local_part
523 headers_rewrite = a@b c@d
524 lock_fcntl_timeout = 10s
528 lockfile_timeout = 30m
530 mailbox_filecount = 9999
531 message_size_limit = 1M
535 message_prefix = From ${if def:return_path{$return_path}{MAILER-DAEMON}} ${tod_bsdinbox}\n
537 no_quota_is_inclusive
538 quota_size_regex = (\d+)$
539 quota_warn_message = "A warning message"
540 quota_warn_threshold =
545 shadow_condition = $h_return-receipt-to
546 shadow_transport = dummy
549 transport_filter_timeout = 10s
555 # For options that are mutually exclusive with those above
560 directory_file = afilename
561 quota_directory = /some/directory
576 authenticated_sender = abcde
580 connection_max_messages = 0
586 no_dns_search_parents
588 fallback_hosts = localhost
593 helo_data = some.text
595 hosts_avoid_esmtp = x.y.z
597 hosts_max_try_hardlimit = 20
600 hosts_require_auth = *
602 interface = 127.0.0.1
606 retry_include_ip_address