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 spool_directory = DIR/spool
10 log_file_path = DIR/spool/log/%slog
12 gecos_name = CALLER_NAME
16 acl_not_smtp = check_local_message
17 acl_smtp_auth = check_auth
18 acl_smtp_connect = check_connect
19 acl_smtp_data = check_message
20 acl_smtp_etrn = check_etrn
21 acl_smtp_expn = check_expn
22 acl_smtp_helo = check_helo
23 acl_smtp_mail = check_mail
24 acl_smtp_mailauth = check_mailauth
25 acl_smtp_quit = check_quit
26 acl_smtp_predata = check_predata
27 acl_smtp_rcpt = check_recipient
28 acl_smtp_vrfy = check_vrfy
32 auth_advertise_hosts = a.a.h
37 bounce_return_body = false
38 no_bounce_return_message
39 return_size_limit = 12K
40 bounce_return_size_limit = 10K
41 callout_domain_negative_expire = 1h
42 callout_domain_positive_expire = 1d
43 callout_negative_expire = 5h
44 callout_positive_expire = 1w
45 callout_random_local_part = xxx\
49 check_spool_inodes = 0
53 daemon_startup_retries = 3
54 daemon_startup_sleep = 8s
56 delay_warning_condition = ${if match{$h_precedence:}{(?i)bulk|list}{no}{yes}}
57 deliver_drop_privilege
58 deliver_queue_load_max = 6.2
60 dns_again_means_nonexist = *.esri.com:jeni.com
61 dns_check_names_pattern = ^.*$
68 errors_reply_to = postmaster@cam.ac.uk
69 extra_local_interfaces = 1.2.3.4
70 no_extract_addresses_remove_arguments
73 freeze_tell = postmaster
74 headers_charset = UTF-8
76 header_line_maxsize = 2K
77 helo_accept_junk_hosts =
80 helo_verify_hosts = localhost
81 helo_try_verify_hosts = 1.2.3.4
84 host_reject_connection = 10.9.8.7
85 hosts_connection_nolog = 127.0.0.1
86 hosts_treat_as_local =
87 ignore_bounce_errors_after = 2m
88 ignore_fromline_hosts = a.b.c.d
92 local_from_prefix = *-
93 local_from_suffix = =*
95 local_scan_timeout = 10s
97 localhost_number = "3 "
105 +incoming_interface \
107 +lost_incoming_connection \
109 +received_recipients \
112 +return_path_on_delivery \
113 +sender_on_delivery \
124 max_username_length = 8
125 message_body_visible = 500
126 message_id_header_domain = a.b.c
127 message_id_header_text = x.y.z
129 message_size_limit = 500K
132 percent_hack_domains =
133 pipelining_advertise_hosts = *.b.c
134 pid_file_path = /some/thing
135 no_preserve_message_logs
136 primary_hostname = some.host.name
138 process_log_path = /a/b/c/d
140 qualify_domain = some.dom.ain
141 qualify_recipient = some.dom.ain
142 queue_domains = a.b.c
143 queue_list_requires_admin
145 no_queue_only_override
146 queue_only_file = /var/spool/exim/queue_only
147 queue_only_load = 8.2
148 no_queue_run_in_order
150 queue_smtp_domains = x.y.z
152 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}}
153 received_headers_max = 30
154 recipient_unqualified_hosts = localhost:some.host.name
156 no_recipients_max_reject
157 remote_max_parallel = 1
158 remote_sort_domains =
159 retry_data_expire = 24h
160 retry_interval_max = 3d
163 sender_unqualified_hosts = localhost:some.host.name
164 smtp_accept_keepalive
166 smtp_accept_max_nonmail = 40
167 smtp_accept_max_nonmail_hosts = ! *.b.c
168 smtp_accept_max_per_connection = 20
169 smtp_accept_max_per_host = 4
170 smtp_accept_queue = 0
171 smtp_accept_queue_per_connection = 10
172 smtp_active_hostname = x.y.z
174 smtp_max_synprot_errors = 11
175 smtp_max_unknown_commands = 10
176 smtp_ratelimit_hosts = *
177 smtp_ratelimit_mail = 1, 1s, 2, 10s
178 smtp_ratelimit_rcpt = 10, 2s, 5, 5m
179 smtp_accept_reserve = 0
180 smtp_banner = ${primary_hostname} ESMTP Exim ${version_number} #${compile_number} ${tod_full}
181 smtp_check_spool_space
182 smtp_connect_backlog = 5
185 smtp_load_reserve = 2
186 smtp_receive_timeout = 1m
188 smtp_return_error_details
189 no_split_spool_directory
190 no_strip_excess_angle_brackets
191 no_strip_trailing_dot
192 no_syslog_duplication
193 syslog_facility = uucp
194 syslog_processname = mta-exim
196 system_filter = /home/exim/test/filter
197 system_filter_directory_transport =
198 system_filter_file_transport =
199 system_filter_group = mail
200 system_filter_pipe_transport =
201 system_filter_reply_transport =
202 system_filter_user = 99
204 timeout_frozen_after = 7d
207 trusted_users = ${readfile{DIR/aux-fixed/TESTNUM.trusted}{:}}
208 unknown_login = unknownlogin
209 unknown_username = Exim Testing
210 untrusted_set_sender = *
211 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?
212 uucp_from_sender = $1
213 warn_message_file = /home/exim/test/warnmsg_file
214 write_rejectlog = false
217 # ----- Routers -----
221 # The manualroute router
225 address_data = domainlist address data
226 cannot_route_message = can't route this address
233 no_fail_verify_recipient
234 no_fail_verify_sender
235 fallback_hosts = localhost
239 host_find_failed = freeze
245 pass_router = manualroute2
246 redirect_router = manualroute2
248 route_data = ${lookup{$local_part}lsearch{/}}
249 router_home_directory = /usr
259 # Manualroute2 router, for mutually exclusive options
263 domains = ! +local_domains
264 route_list = ^fax(\.cl(\.cam(\.ac\.uk)?)?)?$ cl.cam.ac.uk; \
265 *.uucp britain.eu.net
267 # The redirect router, in "alias" mode
271 address_data = aliasfile address data
277 data = ${lookup{$local_part}lsearch{/etc/aliases}}
279 directory_transport = dummy
283 no_fail_verify_recipient
284 no_fail_verify_sender
286 file_transport = dummy
295 include_directory = /i/n/c
298 no_local_part_prefix_optional
300 no_local_part_suffix_optional
304 pipe_transport = dummy
305 no_qualify_preserve_domain
307 qualify_domain = xxxx
308 redirect_router = aliasfile2
313 sieve_vacation_directory = /thing/thong
314 sieve_subaddress = rhubarb
315 sieve_useraddress = custard
316 no_skip_syntax_errors
318 transport_current_directory =
319 transport_home_directory =
326 # Aliasfile2 for mutually exclusive options
337 # The redirect router in "forward" mode
349 directory_transport = dummy
353 no_fail_verify_recipient
354 no_fail_verify_sender
357 file_transport = dummy
360 forbid_filter_existstest
361 no_forbid_filter_logwrite
364 forbid_filter_readfile
365 forbid_filter_readsocket
377 local_part_prefix = xxx-
378 local_part_prefix_optional
380 no_local_part_suffix_optional
387 pipe_transport = dummy
388 no_qualify_preserve_domain
389 redirect_router = aliasfile2
390 reply_transport = dummy
394 no_skip_syntax_errors
395 syntax_errors_text = rhubarb
397 transport_current_directory =
398 transport_home_directory =
417 no_fail_verify_recipient
418 no_fail_verify_sender
421 headers_add = X-added: by localuser
425 no_local_part_prefix_optional
427 no_local_part_suffix_optional
431 redirect_router = smartuser
434 transport = ${if eq{$local_part}{caller}{local_mbx_delivery}{local_delivery}}
435 transport_current_directory =
436 transport_home_directory =
443 # The redirect router in "smartuser" mode
454 no_fail_verify_recipient
455 no_fail_verify_sender
457 file_transport = dummy
466 no_local_part_prefix_optional
468 no_local_part_suffix_optional
472 pipe_transport = dummy
473 qualify_preserve_domain
474 redirect_router = localuser
486 # ----- Transports -----
488 # Dummy transport, to refer back to
496 # Appendfile Transport
509 create_file = anywhere
513 directory_mode = 0700
516 file = /home/$local_part/inbox
517 file_format = "From : appendfile"
520 headers_add = X-original-domain: $original_domain\nX-original-localp: $original_local_part
522 headers_rewrite = a@b c@d
523 lock_fcntl_timeout = 10s
527 lockfile_timeout = 30m
529 mailbox_filecount = 9999
530 message_size_limit = 1M
534 message_prefix = From ${if def:return_path{$return_path}{MAILER-DAEMON}} ${tod_bsdinbox}\n
536 no_quota_is_inclusive
537 quota_size_regex = (\d+)$
538 quota_warn_message = "A warning message"
539 quota_warn_threshold =
544 shadow_condition = $h_return-receipt-to
545 shadow_transport = dummy
548 transport_filter_timeout = 10s
554 # For options that are mutually exclusive with those above
559 directory_file = afilename
560 quota_directory = /some/directory
575 authenticated_sender = abcde
576 authenticated_sender_force = true
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