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.
9 host_lookup_order = bydns
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 bounce_return_linesize_limit = 997
43 callout_domain_negative_expire = 1h
44 callout_domain_positive_expire = 1d
45 callout_negative_expire = 5h
46 callout_positive_expire = 1w
47 callout_random_local_part = xxx\
51 check_spool_inodes = 0
55 daemon_startup_retries = 3
56 daemon_startup_sleep = 8s
59 delay_warning_condition = ${if match{$h_precedence:}{(?i)bulk|list}{no}{yes}}
60 deliver_drop_privilege
61 deliver_queue_load_max = 6.2
63 dns_again_means_nonexist = *.esri.com:jeni.com
64 dns_check_names_pattern = ^.*$
71 errors_reply_to = postmaster@cam.ac.uk
72 extra_local_interfaces = 1.2.3.4
73 no_extract_addresses_remove_arguments
76 freeze_tell = postmaster
77 headers_charset = UTF-8
79 header_line_maxsize = 2K
80 helo_accept_junk_hosts =
83 helo_verify_hosts = localhost
84 helo_try_verify_hosts = 1.2.3.4
87 host_reject_connection = 10.9.8.7
88 hosts_connection_nolog = 127.0.0.1
89 hosts_treat_as_local =
90 ignore_bounce_errors_after = 2m
91 ignore_fromline_hosts = a.b.c.d
95 local_from_prefix = *-
96 local_from_suffix = =*
99 localhost_number = "3 "
107 +incoming_interface \
109 +lost_incoming_connection \
111 +received_recipients \
114 +return_path_on_delivery \
115 +sender_on_delivery \
126 max_username_length = 8
127 message_body_visible = 500
128 message_id_header_domain = a.b.c
129 message_id_header_text = x.y.z
131 message_size_limit = 500K
134 percent_hack_domains =
135 pipelining_advertise_hosts = *.b.c
136 pid_file_path = /some/thing
137 no_preserve_message_logs
138 primary_hostname = some.host.name
140 process_log_path = /a/b/c/d
142 qualify_domain = some.dom.ain
143 qualify_recipient = some.dom.ain
144 queue_domains = a.b.c
145 queue_list_requires_admin
147 no_queue_only_override
148 queue_only_file = /var/spool/exim/queue_only
149 queue_only_load = 8.2
150 no_queue_run_in_order
151 queue_run_max = ${if = {1}{1} {5}{10}}
152 queue_smtp_domains = x.y.z
154 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}}
155 received_headers_max = 30
156 recipient_unqualified_hosts = localhost:some.host.name
158 no_recipients_max_reject
159 remote_max_parallel = 1
160 remote_sort_domains =
161 retry_data_expire = 24h
162 retry_interval_max = 3d
165 sender_unqualified_hosts = localhost:some.host.name
166 smtp_accept_keepalive
168 smtp_accept_max_nonmail = 40
169 smtp_accept_max_nonmail_hosts = ! *.b.c
170 smtp_accept_max_per_connection = 20
171 smtp_accept_max_per_host = 4
172 smtp_accept_queue = 0
173 smtp_accept_queue_per_connection = 10
174 smtp_active_hostname = x.y.z
176 smtp_max_synprot_errors = 11
177 smtp_max_unknown_commands = 10
178 smtp_ratelimit_hosts = *
179 smtp_ratelimit_mail = 1, 1s, 2, 10s
180 smtp_ratelimit_rcpt = 10, 2s, 5, 5m
181 smtp_accept_reserve = 0
182 smtp_banner = ${primary_hostname} ESMTP Exim ${version_number} #${compile_number} ${tod_full}
183 smtp_check_spool_space
184 smtp_connect_backlog = 5
187 smtp_load_reserve = 2
188 smtp_receive_timeout = 1m
190 smtp_return_error_details
191 no_split_spool_directory
192 no_strip_excess_angle_brackets
193 no_strip_trailing_dot
194 no_syslog_duplication
195 syslog_facility = uucp
197 syslog_processname = mta-exim
199 system_filter = /home/exim/test/filter
200 system_filter_directory_transport =
201 system_filter_file_transport =
202 system_filter_group = MAILGROUP
203 system_filter_pipe_transport =
204 system_filter_reply_transport =
205 system_filter_user = 99
207 timeout_frozen_after = 7d
209 tls_advertise_hosts =
211 trusted_users = ${readfile{DIR/aux-fixed/TESTNUM.trusted}{:}}
212 unknown_login = unknownlogin
213 unknown_username = Exim Testing
214 untrusted_set_sender = *
215 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?
216 uucp_from_sender = $1
217 warn_message_file = /home/exim/test/warnmsg_file
218 write_rejectlog = false
221 # ----- Routers -----
225 # The manualroute router
229 address_data = domainlist address data
230 cannot_route_message = can't route this address
237 no_fail_verify_recipient
238 no_fail_verify_sender
239 fallback_hosts = localhost
243 host_find_failed = freeze
249 pass_router = manualroute2
250 redirect_router = manualroute2
252 route_data = ${lookup{$local_part}lsearch{/}}
253 router_home_directory = /usr
263 # Manualroute2 router, for mutually exclusive options
267 domains = ! +local_domains
268 route_list = ^fax(\.cl(\.cam(\.ac\.uk)?)?)?$ cl.cam.ac.uk; \
269 *.uucp britain.eu.net
271 # The redirect router, in "alias" mode
275 address_data = aliasfile address data
281 data = ${lookup{$local_part}lsearch{/etc/aliases}}
283 directory_transport = dummy
287 no_fail_verify_recipient
288 no_fail_verify_sender
290 file_transport = dummy
299 include_directory = /i/n/c
302 no_local_part_prefix_optional
304 no_local_part_suffix_optional
308 pipe_transport = dummy
309 no_qualify_preserve_domain
311 qualify_domain = xxxx
312 redirect_router = aliasfile2
317 sieve_vacation_directory = /thing/thong
318 sieve_subaddress = rhubarb
319 sieve_useraddress = custard
320 no_skip_syntax_errors
322 transport_current_directory =
323 transport_home_directory =
330 # Aliasfile2 for mutually exclusive options
341 # The redirect router in "forward" mode
353 directory_transport = dummy
357 no_fail_verify_recipient
358 no_fail_verify_sender
361 file_transport = dummy
364 forbid_filter_existstest
365 no_forbid_filter_logwrite
368 forbid_filter_readfile
369 forbid_filter_readsocket
381 local_part_prefix = xxx-
382 local_part_prefix_optional
384 no_local_part_suffix_optional
390 owngroups = MAILGROUP
391 pipe_transport = dummy
392 no_qualify_preserve_domain
393 redirect_router = aliasfile2
394 reply_transport = dummy
398 no_skip_syntax_errors
399 syntax_errors_text = rhubarb
401 transport_current_directory =
402 transport_home_directory =
421 no_fail_verify_recipient
422 no_fail_verify_sender
425 headers_add = X-added: by localuser
429 no_local_part_prefix_optional
431 no_local_part_suffix_optional
435 redirect_router = smartuser
438 transport = ${if eq{$local_part}{caller}{local_mbx_delivery}{local_delivery}}
439 transport_current_directory =
440 transport_home_directory =
447 # The redirect router in "smartuser" mode
458 no_fail_verify_recipient
459 no_fail_verify_sender
461 file_transport = dummy
470 no_local_part_prefix_optional
472 no_local_part_suffix_optional
476 pipe_transport = dummy
477 qualify_preserve_domain
478 redirect_router = localuser
490 # ----- Transports -----
492 # Dummy transport, to refer back to
500 # Appendfile Transport
513 create_file = anywhere
517 directory_mode = 0700
520 file = /home/$local_part/inbox
521 file_format = "From : appendfile"
524 headers_add = X-original-domain: $original_domain\nX-original-localp: $original_local_part
526 headers_rewrite = a@b c@d
527 lock_fcntl_timeout = 10s
531 lockfile_timeout = 30m
533 mailbox_filecount = 9999
534 message_size_limit = 1G
538 message_prefix = From ${if def:return_path{$return_path}{MAILER-DAEMON}} ${tod_bsdinbox}\n
540 no_quota_is_inclusive
541 quota_size_regex = (\d+)$
542 quota_warn_message = "A warning message"
543 quota_warn_threshold =
548 shadow_condition = $h_return-receipt-to
549 shadow_transport = dummy
552 transport_filter_timeout = 10s
558 # For options that are mutually exclusive with those above
563 directory_file = afilename
564 quota_directory = /some/directory
579 authenticated_sender = abcde
580 authenticated_sender_force = true
584 connection_max_messages = 0
590 no_dns_search_parents
592 fallback_hosts = localhost
597 helo_data = some.text
599 hosts_avoid_esmtp = x.y.z
601 hosts_max_try_hardlimit = 20
604 hosts_require_auth = *
606 interface = 127.0.0.1
610 retry_include_ip_address