diff options
Diffstat (limited to 'test/confs')
687 files changed, 34257 insertions, 0 deletions
diff --git a/test/confs/0000 b/test/confs/0000 new file mode 100644 index 000000000..25474a063 --- /dev/null +++ b/test/confs/0000 @@ -0,0 +1,12 @@ +# Exim test configuration 0000 + +# This configuration is used when the test script is finding out what features +# are in the Exim binary. It needs to discover where the test suite's spool +# directory is going to be. + +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# End diff --git a/test/confs/0001 b/test/confs/0001 new file mode 100644 index 000000000..7f7fb4a1e --- /dev/null +++ b/test/confs/0001 @@ -0,0 +1,612 @@ +# Exim test configuration 0001 + +# This configuration sets every option that is not dependent on optional code +# in the binary, except for exim_user and exim_group, because setting them can +# mess up the creation of the spool directory etc. + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +accept_8bitmime +acl_not_smtp = check_local_message +acl_smtp_auth = check_auth +acl_smtp_connect = check_connect +acl_smtp_data = check_message +acl_smtp_etrn = check_etrn +acl_smtp_expn = check_expn +acl_smtp_helo = check_helo +acl_smtp_mail = check_mail +acl_smtp_mailauth = check_mailauth +acl_smtp_quit = check_quit +acl_smtp_predata = check_predata +acl_smtp_rcpt = check_recipient +acl_smtp_vrfy = check_vrfy +admin_groups = 1234 +allow_mx_to_ip +allow_utf8_domains +auth_advertise_hosts = a.a.h +auto_thaw = 1d +bi_command = +bounce_message_file = +bounce_message_text = +bounce_return_body = false +no_bounce_return_message +return_size_limit = 12K +bounce_return_size_limit = 10K +callout_domain_negative_expire = 1h +callout_domain_positive_expire = 1d +callout_negative_expire = 5h +callout_positive_expire = 1w +callout_random_local_part = xxx\ + xx +check_log_inodes = 0 +check_log_space = 0 +check_spool_inodes = 0 +check_spool_space = 0 +daemon_smtp_port = +daemon_smtp_ports = +daemon_startup_retries = 3 +daemon_startup_sleep = 8s +delay_warning = 1d +delay_warning_condition = ${if match{$h_precedence:}{(?i)bulk|list}{no}{yes}} +deliver_drop_privilege +deliver_queue_load_max = 6.2 +delivery_date_remove +dns_again_means_nonexist = *.esri.com:jeni.com +dns_check_names_pattern = ^.*$ +dns_ipv4_lookup = * +dns_retrans = 0s +dns_retry = 0 +drop_cr +envelope_to_remove +errors_copy = +errors_reply_to = postmaster@cam.ac.uk +extra_local_interfaces = 1.2.3.4 +no_extract_addresses_remove_arguments +finduser_retries = 0 +allow_domain_literals +freeze_tell = postmaster +headers_charset = UTF-8 +header_maxsize = 2M +header_line_maxsize = 2K +helo_accept_junk_hosts = +helo_allow_chars = _ +helo_lookup_domains = +helo_verify_hosts = localhost +helo_try_verify_hosts = 1.2.3.4 +hold_domains = +host_lookup = a.b.c.d +host_reject_connection = 10.9.8.7 +hosts_connection_nolog = 127.0.0.1 +hosts_treat_as_local = +ignore_bounce_errors_after = 2m +ignore_fromline_hosts = a.b.c.d +ignore_fromline_local +keep_malformed = 4d +no_local_from_check +local_from_prefix = *- +local_from_suffix = =* +local_interfaces = +local_scan_timeout = 10s +local_sender_retain +localhost_number = "3 " +log_selector = \ + +address_rewrite \ + -all \ + +all_parents \ + +arguments \ + -connection_reject \ + -delay_delivery \ + +incoming_interface \ + +incoming_port \ + +lost_incoming_connection \ + -queue_run \ + +received_recipients \ + +received_sender \ + -retry_defer \ + +return_path_on_delivery \ + +sender_on_delivery \ + +size_reject \ + -skip_delivery \ + +smtp_confirmation \ + +smtp_connection \ + +smtp_syntax_error \ + +subject \ + +tls_cipher \ + +tls_peerdn +log_timezone +lookup_open_max = 16 +max_username_length = 8 +message_body_visible = 500 +message_id_header_domain = a.b.c +message_id_header_text = x.y.z +no_message_logs +message_size_limit = 500K +mua_wrapper +never_users = root:0 +percent_hack_domains = +pipelining_advertise_hosts = *.b.c +pid_file_path = /some/thing +no_preserve_message_logs +primary_hostname = some.host.name +no_print_topbitchars +process_log_path = /a/b/c/d +prod_requires_admin +qualify_domain = some.dom.ain +qualify_recipient = some.dom.ain +queue_domains = a.b.c +queue_list_requires_admin +no_queue_only +no_queue_only_override +queue_only_file = /var/spool/exim/queue_only +queue_only_load = 8.2 +no_queue_run_in_order +queue_run_max = 5 +queue_smtp_domains = x.y.z +receive_timeout = 0s +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}} +received_headers_max = 30 +recipient_unqualified_hosts = localhost:some.host.name +recipients_max = 0 +no_recipients_max_reject +remote_max_parallel = 1 +remote_sort_domains = +retry_data_expire = 24h +retry_interval_max = 1d +return_path_remove +rfc1413_hosts = +sender_unqualified_hosts = localhost:some.host.name +smtp_accept_keepalive +smtp_accept_max = 20 +smtp_accept_max_nonmail = 40 +smtp_accept_max_nonmail_hosts = ! *.b.c +smtp_accept_max_per_connection = 20 +smtp_accept_max_per_host = 4 +smtp_accept_queue = 0 +smtp_accept_queue_per_connection = 10 +smtp_active_hostname = x.y.z +no_smtp_enforce_sync +smtp_max_synprot_errors = 11 +smtp_max_unknown_commands = 10 +smtp_ratelimit_hosts = * +smtp_ratelimit_mail = 1, 1s, 2, 10s +smtp_ratelimit_rcpt = 10, 2s, 5, 5m +smtp_accept_reserve = 0 +smtp_banner = ${primary_hostname} ESMTP Exim ${version_number} #${compile_number} ${tod_full} +smtp_check_spool_space +smtp_connect_backlog = 5 +smtp_etrn_command = +smtp_etrn_serialize +smtp_load_reserve = 2 +smtp_receive_timeout = 1m +smtp_reserve_hosts = +smtp_return_error_details +no_split_spool_directory +no_strip_excess_angle_brackets +no_strip_trailing_dot +no_syslog_duplication +syslog_facility = uucp +syslog_processname = mta-exim +no_syslog_timestamp +system_filter = /home/exim/test/filter +system_filter_directory_transport = +system_filter_file_transport = +system_filter_group = mail +system_filter_pipe_transport = +system_filter_reply_transport = +system_filter_user = 99 +tcp_nodelay = false +timeout_frozen_after = 7d +timezone = EDT +trusted_groups = 42 +trusted_users = ${readfile{DIR/aux-fixed/TESTNUM.trusted}{:}} +unknown_login = unknownlogin +unknown_username = Exim Testing +untrusted_set_sender = * +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? +uucp_from_sender = $1 +warn_message_file = /home/exim/test/warnmsg_file +write_rejectlog = false + + +# ----- Routers ----- + +begin routers + +# The manualroute router + +manualroute: + driver = manualroute + address_data = domainlist address data + cannot_route_message = can't route this address + caseful_local_part + condition = + debug_print = + disable_logging + domains = + errors_to = + no_fail_verify_recipient + no_fail_verify_sender + fallback_hosts = localhost + group = mail + headers_add = + headers_remove = + host_find_failed = freeze + hosts_randomize + no_initgroups + local_parts = + more + no_pass_on_timeout + pass_router = manualroute2 + redirect_router = manualroute2 + require_files = + route_data = ${lookup{$local_part}lsearch{/}} + router_home_directory = /usr + self = freeze + senders = + transport = smtp + no_unseen + user = root + no_verify_only + verify_recipient + verify_sender + +# Manualroute2 router, for mutually exclusive options + +manualroute2: + driver = manualroute + domains = ! +local_domains + route_list = ^fax(\.cl(\.cam(\.ac\.uk)?)?)?$ cl.cam.ac.uk; \ + *.uucp britain.eu.net + +# The redirect router, in "alias" mode + +alias: + driver = redirect + address_data = aliasfile address data + allow_fail + allow_freeze + caseful_local_part + no_check_ancestor + condition = + data = ${lookup{$local_part}lsearch{/etc/aliases}} + debug_print = + directory_transport = dummy + domains = + errors_to = + expn + no_fail_verify_recipient + no_fail_verify_sender + fallback_hosts = + file_transport = dummy + forbid_blackhole + no_forbid_file + forbid_include + no_forbid_pipe + group = 100 + headers_add = + headers_remove = + hide_child_in_errmsg + include_directory = /i/n/c + no_initgroups + local_part_prefix = + no_local_part_prefix_optional + local_part_suffix = + no_local_part_suffix_optional + local_parts = + more + no_one_time + pipe_transport = dummy + no_qualify_preserve_domain + no_repeat_use + qualify_domain = xxxx + redirect_router = aliasfile2 + require_files = + retry_use_local_part + no_rewrite + senders = + sieve_vacation_directory = /thing/thong + sieve_subaddress = rhubarb + sieve_useraddress = custard + no_skip_syntax_errors + syntax_errors_to = + transport_current_directory = + transport_home_directory = + no_unseen + user = 100 + no_verify_only + verify_recipient + verify_sender + +# Aliasfile2 for mutually exclusive options + +aliasfile2: + driver = redirect + allow_defer + caseful_local_part + check_group + check_owner + file = /some/file + retry_use_local_part + +# The redirect router in "forward" mode + +forward: + driver = redirect + allow_filter + forbid_exim_filter + forbid_sieve_filter + caseful_local_part + check_ancestor + check_local_user + condition = + debug_print = + directory_transport = dummy + domains = + errors_to = + expn + no_fail_verify_recipient + no_fail_verify_sender + fallback_hosts = + file = //.forward2 + file_transport = dummy + no_forbid_file + forbid_blackhole + forbid_filter_existstest + no_forbid_filter_logwrite + forbid_filter_dlfunc + forbid_filter_lookup + forbid_filter_readfile + forbid_filter_readsocket + forbid_filter_reply + forbid_filter_run + no_forbid_include + no_forbid_pipe + group = mail + headers_add = + headers_remove = + hide_child_in_errmsg + no_ignore_eacces + no_ignore_enotdir + no_initgroups + local_part_prefix = xxx- + local_part_prefix_optional + local_part_suffix = + no_local_part_suffix_optional + local_parts = + modemask = 022 + more + no_one_time + owners = root + owngroups = mail + pipe_transport = dummy + no_qualify_preserve_domain + redirect_router = aliasfile2 + reply_transport = dummy + require_files = + rewrite + senders = + no_skip_syntax_errors + syntax_errors_text = rhubarb + syntax_errors_to = + transport_current_directory = + transport_home_directory = + no_unseen + user = root + no_verify_only + no_verify_recipient + no_verify_sender + +# The accept router + +localuser: + driver = accept + no_address_test + caseful_local_part + check_local_user + condition = + debug_print = + domains = + errors_to = + expn + no_fail_verify_recipient + no_fail_verify_sender + fallback_hosts = + group = mail + headers_add = X-added: by localuser + headers_remove = + no_initgroups + local_part_prefix = + no_local_part_prefix_optional + local_part_suffix = + no_local_part_suffix_optional + local_parts = + no_log_as_local + more + redirect_router = smartuser + require_files = + senders = + transport = ${if eq{$local_part}{caller}{local_mbx_delivery}{local_delivery}} + transport_current_directory = + transport_home_directory = + no_unseen + user = 99 + no_verify_only + verify_recipient + verify_sender + +# The redirect router in "smartuser" mode + +smartuser: + driver = redirect + caseful_local_part + condition = + data = user@domain + debug_print = + domains = + errors_to = + expn + no_fail_verify_recipient + no_fail_verify_sender + fallback_hosts = + file_transport = dummy + forbid_file + forbid_pipe + group = mail + headers_add = + headers_remove = + hide_child_in_errmsg + no_initgroups + local_part_prefix = + no_local_part_prefix_optional + local_part_suffix = + no_local_part_suffix_optional + local_parts = abcd + log_as_local + more + pipe_transport = dummy + qualify_preserve_domain + redirect_router = localuser + require_files = + retry_use_local_part + no_rewrite + senders = + no_unseen + user = root + no_verify_only + verify_recipient + verify_sender + + +# ----- Transports ----- + +# Dummy transport, to refer back to + +begin transports + +dummy: + driver = pipe + disable_logging + +# Appendfile Transport + +appendfile: + driver = appendfile + allow_fifo + no_allow_symlink + batch_max = 100 + batch_id = rhubarb + body_only + no_check_group + no_check_owner + check_string = abcd + create_directory + create_file = anywhere + current_directory = + debug_print = + delivery_date_add + directory_mode = 0700 + envelope_to_add + escape_string = xyz + file = /home/$local_part/inbox + file_format = "From : appendfile" + no_file_must_exist + group = mail + headers_add = X-original-domain: $original_domain\nX-original-localp: $original_local_part + headers_remove = + headers_rewrite = a@b c@d + lock_fcntl_timeout = 10s + lock_interval = 3s + lock_retries = 10 + lockfile_mode = 0600 + lockfile_timeout = 30m + mailbox_size = 1000 + mailbox_filecount = 9999 + message_size_limit = 1M + mode = 0600 + mode_fail_narrower + no_notify_comsat + message_prefix = From ${if def:return_path{$return_path}{MAILER-DAEMON}} ${tod_bsdinbox}\n + quota = + no_quota_is_inclusive + quota_size_regex = (\d+)$ + quota_warn_message = "A warning message" + quota_warn_threshold = + rcpt_include_affixes + retry_use_local_part + return_path = xxxx + return_path_add + shadow_condition = $h_return-receipt-to + shadow_transport = dummy + message_suffix = \n + transport_filter = + transport_filter_timeout = 10s + no_use_crlf + use_fcntl_lock + use_lockfile + user = root + +# For options that are mutually exclusive with those above + +appendfile2: + driver = appendfile + directory = /etc + directory_file = afilename + quota_directory = /some/directory + quota = 1M + quota_filecount = 10 + use_bsmtp + +# Ditto + +appendfile4: + driver = appendfile + directory = /etc + +# Smtp transport + +smtp: + driver = smtp + authenticated_sender = abcde + no_allow_localhost + command_timeout = 5m + connect_timeout = 0s + connection_max_messages = 0 + data_timeout = 5m + debug_print = + delay_after_cutoff + no_delivery_date_add + dns_qualify_single + no_dns_search_parents + no_envelope_to_add + fallback_hosts = localhost + final_timeout = 10m + no_gethostbyname + headers_add = + headers_remove = + helo_data = some.text + hosts = localhost + hosts_avoid_esmtp = x.y.z + hosts_max_try = 10 + hosts_max_try_hardlimit = 20 + hosts_override + hosts_randomize + hosts_require_auth = * + hosts_try_auth = * + interface = 127.0.0.1 + max_rcpt = 0 + multi_domain + port = 25 + retry_include_ip_address + no_return_path_add + serialize_hosts = + size_addition = -1 + transport_filter = + +# End diff --git a/test/confs/0002 b/test/confs/0002 new file mode 100644 index 000000000..6f02fafa7 --- /dev/null +++ b/test/confs/0002 @@ -0,0 +1,45 @@ +# Exim test configuration 0002 + +LENCHECK= +PTBC= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist dlist = *.aa.bb : ^\Nxxx +hostlist hlist = V4NET.11.12.13 : iplsearch;DIR/aux-fixed/0002.iplsearch +headers_charset = iso-8859-8 + +acl_smtp_connect = connect${substr_-1_1:$sender_host_address} +acl_smtp_rcpt = accept +acl_smtp_data = check_data + +PTBC +LENCHECK + +# ----- ACL ----- + +begin acl + +connect0: + accept + +connect1: + deny hosts = partial-lsearch;DIR/aux-fixed/0002.lsearch + +connect2: + deny hosts = net-lsearch;DIR/aux-fixed/0002.lsearch + +check_data: + warn logwrite = Subject is: "$h_subject:" + deny message = reply_address=<$reply_address> + +# End diff --git a/test/confs/0003 b/test/confs/0003 new file mode 100644 index 000000000..53ae39052 --- /dev/null +++ b/test/confs/0003 @@ -0,0 +1,28 @@ +# Exim test configuration 0003 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +acl_smtp_rcpt = check_recipient +domainlist local_domains = test.ex +smtp_accept_max_nonmail = 1000 + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + deny senders = a@b.c : X@Y.Z : ^\\Dx@e\\.f : ^\\DY@G\\.H :\ + lsearch*@;DIR/aux-fixed/0003.rej.lsearch :\ + @@lsearch*;DIR/aux-fixed/0003.rej.bydomain + accept domains = +local_domains + deny message = relay not permitted + +# End diff --git a/test/confs/0004 b/test/confs/0004 new file mode 100644 index 000000000..606ab5133 --- /dev/null +++ b/test/confs/0004 @@ -0,0 +1,28 @@ +# Exim test configuration 0004 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +acl_smtp_rcpt = check_recipient +domainlist local_domains = test.ex +smtp_accept_max_nonmail = 1000 + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + deny senders = +caseful: a@b.c : X@Y.Z : ^\\Dx@e\\.f : ^\\DY@G\\.H :\ + lsearch*@;DIR/aux-fixed/0003.rej.lsearch :\ + @@lsearch*;DIR/aux-fixed/0003.rej.bydomain + accept domains = +local_domains + deny message = relay not permitted + +# End diff --git a/test/confs/0005 b/test/confs/0005 new file mode 100644 index 000000000..d4e976e81 --- /dev/null +++ b/test/confs/0005 @@ -0,0 +1,66 @@ +# Exim test configuration 0005 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = @ + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_data +message_id_header_domain = ${if eq{0}{0}{some.domain}} +message_id_header_text = ${if eq{0}{0}{a@b[c]}} +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +local_domains + deny message = relay not permitted + +check_data: + warn message = X-acl-message-linecount: $message_linecount + accept + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + +localuser: + driver = accept + check_local_user + transport = local_delivery + headers_add = X-local-user: uid=$local_user_uid gid=$local_user_gid + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + headers_add = "X-body-linecount: $body_linecount\n\ + X-message-linecount: $message_linecount\n\ + X-received-count: $received_count" + return_path_add + +# End diff --git a/test/confs/0006 b/test/confs/0006 new file mode 100644 index 000000000..d362deec3 --- /dev/null +++ b/test/confs/0006 @@ -0,0 +1,52 @@ +# Exim test configuration 0006 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +system_aliases: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/0006-aliases}} + file_transport = address_file + retry_use_local_part + +localuser: + driver = accept + check_local_user + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + headers_add = \nMessage Headers:\n$message_headers\n + +address_file: + driver = appendfile + delivery_date_add + envelope_to_add + return_path_add + +# End diff --git a/test/confs/0007 b/test/confs/0007 new file mode 100644 index 000000000..1dc7f574b --- /dev/null +++ b/test/confs/0007 @@ -0,0 +1,16 @@ +# Exim test configuration 0007 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = HOSTNAME + + +# End diff --git a/test/confs/0008 b/test/confs/0008 new file mode 100644 index 000000000..2c6b34189 --- /dev/null +++ b/test/confs/0008 @@ -0,0 +1,38 @@ +# Exim test configuration 0008 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = @ +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + check_local_user + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + +# End diff --git a/test/confs/0009 b/test/confs/0009 new file mode 100644 index 000000000..0d944c9da --- /dev/null +++ b/test/confs/0009 @@ -0,0 +1,38 @@ +# Exim test configuration 0009 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = @ +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + check_local_user + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + +# End diff --git a/test/confs/0010 b/test/confs/0010 new file mode 100644 index 000000000..f39a50b8b --- /dev/null +++ b/test/confs/0010 @@ -0,0 +1,39 @@ +# Exim test configuration 0010 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = @ +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + check_local_user + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + + +# End diff --git a/test/confs/0011 b/test/confs/0011 new file mode 100644 index 000000000..ca101e0e1 --- /dev/null +++ b/test/confs/0011 @@ -0,0 +1,39 @@ +# Exim test configuration 0011 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = @ +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + check_local_user + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + + +# End diff --git a/test/confs/0012 b/test/confs/0012 new file mode 100644 index 000000000..4e1d4730b --- /dev/null +++ b/test/confs/0012 @@ -0,0 +1,42 @@ +# Exim test configuration 0012 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = @ + + +# ----- Routers ----- + +begin routers + +system_aliases: + driver = redirect + data = ${if eq {$local_part}{blackhole}{:blackhole:}} + +localuser: + driver = accept + check_local_user + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + + +# End diff --git a/test/confs/0013 b/test/confs/0013 new file mode 100644 index 000000000..70cd8d6ed --- /dev/null +++ b/test/confs/0013 @@ -0,0 +1,17 @@ +# Exim test configuration 0013 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +hostlist relay_hosts = "XXXX" and junk + +# End diff --git a/test/confs/0014 b/test/confs/0014 new file mode 100644 index 000000000..c7dbdb804 --- /dev/null +++ b/test/confs/0014 @@ -0,0 +1,106 @@ +# Exim test configuration 0014 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : myhost.test.ex +domainlist relay_domains = test.ex + +acl_smtp_rcpt = check_recipient + +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + require verify = sender + accept domains = +local_domains + accept domains = +relay_domains + deny message = relay not permitted + + +# ----- Rewrite ----- + +begin rewrite + +*@*.one.two $1@one.two +abcd@^qu aaa@bbb +*pqr@^qu(.*) 1=$1@zz$2 +hhhh@h.h.h.h "${if eq {$h_to:}{x@y}{yes}{no}}@j.j.j" + +######################################################## +# Fancy example of a supposed outgoing gateway rewrite # +######################################################## + +# No rewrite unless domain is *.plc.example + +^(?>.*)(?<!\.plc\.example) * + +# Handle root specially except envelope to + +root@*.plc.example "admin@plc.example (root@$1)" whFq + +# Failure in envelope sender is bad - should fail to verify + +*@*.plc.example ${lookup{$local_part@$2}lsearch\ + {DIR/aux-fixed/0014.usernames}\ + {$value}{"$1@$2.plc.example-is-not-known"}}@plc.example Fq + +# Use envelope for failing header sender + +*@*.plc.example "${lookup{$local_part@$2}lsearch\ + {DIR/aux-fixed/0014.usernames}{$value@plc.example}\ + {$sender_address}}" fsrq + +# Other failures => `unknown' +*@*.plc.example "${lookup{$local_part@$2}lsearch\ + {DIR/aux-fixed/0014.usernames}{$value}{unknown}}@plc.example" + + +# ----- Routers ----- + +begin routers + +fail: + driver = manualroute + domains = *.plc.example + fail_verify + route_list = * + verify_only + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + allow_fail + data = :fail: Unrouteable mail domain "$domain" + +userx: + driver = accept + local_parts = userx + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + message_suffix = + user = CALLER + +# End diff --git a/test/confs/0015 b/test/confs/0015 new file mode 100644 index 000000000..fbfa534df --- /dev/null +++ b/test/confs/0015 @@ -0,0 +1,116 @@ +# Exim test configuration 0015 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +convert_to_real_name: + driver = redirect + allow_defer + data = "\ + $local_part_prefix${lookup{$local_part}\ + lsearch{DIR/aux-fixed/0015.realnames}{$value}fail}@$domain" + local_part_prefix = *+ + local_part_prefix_optional + retry_use_local_part + +#system_aliases: +# driver = redirect +# allow_defer +# data = ${lookup{$local_part}lsearch{DIR/aux-fixed/0015.aliases}} +# retry_use_local_part + +userforward: + driver = redirect + allow_filter + local_parts = userx + user = CALLER + file = DIR/aux-fixed/0015.filter.$local_part + local_part_prefix = *+ + local_part_prefix_optional + pipe_transport = address_pipe + reply_transport = address_reply + +localuser_b: + driver = accept + local_parts = userx : CALLER + local_part_prefix = B+ + transport = local_delivery_b + +localuser_s: + driver = accept + local_part_prefix = S+ + transport = delivery_s + +localuser_sb: + driver = accept + local_parts = userx : CALLER + local_part_prefix = *+ + local_part_prefix_optional + local_part_suffix = -B + transport = local_delivery_b + +localuser_ss: + driver = accept + local_part_suffix = -S + transport = delivery_s + +localuser: + driver = accept + local_parts = userx : CALLER + local_part_prefix = *+ + local_part_prefix_optional + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + user = CALLER + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + headers_add = X-local_part: $local_part\n\ + X-local_part_prefix: $local_part_prefix + +local_delivery_b: + driver = appendfile + user = CALLER + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + use_bsmtp + headers_add = X-local_part: $local_part\n\ + X-local_part_prefix: $local_part_prefix + +delivery_s: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + +address_reply: + driver = autoreply + +address_pipe: + driver = pipe + +# End diff --git a/test/confs/0016 b/test/confs/0016 new file mode 100644 index 000000000..2d5a9dfc2 --- /dev/null +++ b/test/confs/0016 @@ -0,0 +1,53 @@ +# Exim test configuration 0016 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +userforward: + driver = redirect + allow_filter + user = CALLER + local_parts = userx : CALLER + file = DIR/aux-fixed/0016.filter.$local_part + local_part_suffix = +* + local_part_suffix_optional + reply_transport = address_reply + +localuser: + driver = accept + local_parts = userx : CALLER + local_part_suffix = +* + local_part_suffix_optional + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + user = CALLER + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + +address_reply: + driver = autoreply + +# End diff --git a/test/confs/0017 b/test/confs/0017 new file mode 100644 index 000000000..48c3e9c4d --- /dev/null +++ b/test/confs/0017 @@ -0,0 +1,28 @@ +# Exim test configuration 0017 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_etrn = check_etrn + +# ----- ACL ----- + +begin acl + +check_etrn: + deny hosts = 10.9.8.7 + sender_domains = some.domain + + deny hosts = 10.9.8.8 + senders = x@y + + accept hosts = localhost + +# End diff --git a/test/confs/0018 b/test/confs/0018 new file mode 100644 index 000000000..7d6437a6d --- /dev/null +++ b/test/confs/0018 @@ -0,0 +1,26 @@ +# Exim test configuration 0018 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_etrn = check_etrn +no_smtp_etrn_serialize +log_selector = -etrn + +# ----- ACL ----- + +begin acl + +check_etrn: + deny hosts = !localhost + warn log_message = accepted $smtp_command + accept + +# End diff --git a/test/confs/0019 b/test/confs/0019 new file mode 100644 index 000000000..442ada688 --- /dev/null +++ b/test/confs/0019 @@ -0,0 +1,20 @@ +# Exim test configuration 2409 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_etrn = accept +log_selector = \ + +smtp_syntax_error \ + +smtp_protocol_error +recipients_max = 5 +smtp_max_synprot_errors = 1000 + +# End diff --git a/test/confs/0020 b/test/confs/0020 new file mode 100644 index 000000000..c31f5e6d9 --- /dev/null +++ b/test/confs/0020 @@ -0,0 +1,31 @@ +# Exim test configuration 0020 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +acl_smtp_connect = check_connect + +# Note that we use an explicit address in the 10.250.0.0/16 network, because +# that is what is used by the testing code in Exim when it generates 2048 IP +# addresses for the absurdly multi-homed host. + +host_lookup = 10.250.104.0/21 + + +# ----- ACL ----- + +begin acl + +check_connect: + accept hosts = 10.250.104.0/21 + +# End diff --git a/test/confs/0021 b/test/confs/0021 new file mode 100644 index 000000000..902d5f369 --- /dev/null +++ b/test/confs/0021 @@ -0,0 +1,90 @@ +# Exim test configuration 0021 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +addresslist ok_senders = ok@somewhere : ok@test1 : ok@test3 +domainlist ok_sender_domains = somewhere : test1 : test3 + +acl_not_smtp = not_smtp_${if eq{$sender_address}{}\ + {test1}{${domain:$sender_address}}} + +acl_smtp_connect = connect +acl_smtp_helo = helo +acl_smtp_mail = mail +acl_smtp_rcpt = rcpt + +qualify_domain = test.ex +trusted_users = CALLER + + +# ----- ACLs ----- + +begin acl + +not_smtp_test1: + accept senders = : ok@test1 + verify = sender + deny message = don't like sender $sender_address + +not_smtp_test2: + accept hosts = 1.2.3.4 + +not_smtp_test3: + accept verify = reverse_host_lookup + +not_smtp_test4: + accept verify = certificate + +connect: + deny hosts = : 10.9.8.7 + drop log_message = forcibly dropped + hosts = 10.9.8.9 + accept logwrite = $sender_host_address accepted by connect ACL + +helo: + warn message = xxx: can't add this header + log_message = This warning is from a HELO ACL (command $smtp_command) + accept condition = ${if eq{$smtp_command_argument}{a.b.c}{yes}{no}} + +mail: + warn message = added header line + senders = ok@test3 + accept senders = ok@test1 : ok@test3 + verify = sender + logwrite = :main,reject: mail accepted + +rcpt: + accept senders = +ok_senders + sender_domains = +ok_sender_domains + logwrite = :panic: rcpt accepted + +# ----- Routers ----- + +begin routers + +accept: + driver = accept + local_parts = !bad + transport = appendfile + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0022 b/test/confs/0022 new file mode 100644 index 000000000..2ec64d848 --- /dev/null +++ b/test/confs/0022 @@ -0,0 +1,100 @@ +# Exim test configuration 0022 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +hostlist some_hosts = net-lsearch;DIR/aux-var/TESTNUM.hosts + +acl_smtp_rcpt = $local_part +log_selector = +smtp_connection +hosts_connection_nolog = : 127.0.0.1 +qualify_domain = test.ex + + +# ----- ACLs ----- + +begin acl + +accept: + accept + +# Check "warn" with and without messages + +warn_empty: + warn + accept + +warn_log: + warn log_message = warn log message + accept + +warn_user: + warn message = warn user message + accept + +drop: + drop message = forcibly dropped + +nested_drop: + accept endpass + acl = drop + +nested_drop_require: + require acl = drop + +defer: + defer message = forcibly deferred + +defer_senders: + defer senders = : + +delay_accept: + accept delay = 1s + +delay_warn: + warn delay = 1s + accept + +freeze: + accept control = freeze + +queue_only: + accept control = queue_only + +host_check: + deny hosts = net-lsearch;DIR/aux-var/TESTNUM.hosts + message = host data >$host_data< + +host_check2: + deny message = host data >$host_data< + hosts = +some_hosts + + +# ----- Routers ----- + +begin routers + +accept: + driver = accept + transport = appendfile + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0023 b/test/confs/0023 new file mode 100644 index 000000000..62e444a5d --- /dev/null +++ b/test/confs/0023 @@ -0,0 +1,265 @@ +# Exim test configuration 0023 + +LOG_SELECTOR= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +addresslist ok_senders = ok@ok.ok + +domainlist local_domains = test.ex : *.test.ex +domainlist relay_domains = relay.test.ex + +hostlist ok9_hosts = 9.9.9.9 + +LOG_SELECTOR + +qualify_domain = test.ex +trusted_users = CALLER + +# Use first three components of address to select ACL +acl_smtp_rcpt = acl_${sg{${tr{$sender_host_address}{.}{_}}}{^(.*)_.*\$}{\$1}} +acl_smtp_data = data_acl + +# ----- ACLs ----- + +begin acl + +data_acl: + warn condition = ${if def:h_x-rcpt-added:{yes}{no}} + message = X-data-added: Header added at data time + warn senders = rcpttest@test.ex + message = X-data-rcpt-count: $rcpt_count\n\ + X-data-rcpt-defer-count: $rcpt_defer_count\n\ + X-data-rcpt-fail-count: $rcpt_fail_count + warn message = X-message-body-size: $message_body_size + accept + +acl_1_2_3: + require domains = !nopass + + require message = $local_part@$domain shall not pass + domains = !wontpass + + deny message = domain explicitly denied + log_message = DOMAIN EXPLICITLY DENIED + domains = deny.test.ex + + accept domains = +local_domains + endpass + message = $domain gets refused + domains = !refuse.test.ex + + # Double to check caching + accept domains = +relay_domains + accept domains = +relay_domains + +acl_5_6_7: + accept domains = lsearch;DIR/aux-fixed/TESTNUM.doms + local_parts = $domain_data + +acl_5_6_8: + accept senders = user1@domain1 : domain2 : +ok_senders + +acl_5_6_11: + accept condition = ${if match{$local_part}{^x}{yes}{no}} + deny message = "local part of wrong type\n(quotes are literal) + +acl_5_6_12: + accept hosts = 5.6.12.1 + endpass + message = failed nested acl + acl = acl_5_6_12A + accept + +acl_5_6_12A: + accept domains = ok + +acl_5_6_13: + accept acl = DIR/aux-fixed/TESTNUM.acl1 + +acl_8_8_8: + accept acl = acl_8_8_8 + +acl_9_9_9: + accept hosts = +ok9_hosts + deny message = don't like this host + hosts = 9.9.9.0/26 + accept hosts = 9.9.9.0/24 + +acl_V4NET_0_0: + require verify = reverse_host_lookup + accept + +acl_V4NET_11_12: + deny message = host in DNS list $dnslist_domain: $dnslist_text + log_message = DNSLIST ($dnslist_domain: $dnslist_text) + dnslists = rbl.test.ex + accept + +acl_20_20_20: + accept endpass + message = sender verify failure + verify = sender + message = recipient verify failure + verify = recipient + +acl_21_21_21: + accept + verify = sender + verify = recipient + +acl_22_22_22: + accept recipients = x@y + +acl_23_23_23: + deny hosts = 23.23.23.0 + message = sender must verify + !verify = sender + accept + +acl_24_24_24: + warn message = X-Warn: sender didn't verify + condition = yes + +acl_25_25_25: + deny message = denying domains=x + domains = x + +acl_26_26_26: + deny senders = : + message = bounce messages can have only one recipient + condition = ${if > {$recipients_count}{0}{yes}{no}} + accept + +# Force host list expansion failure +acl_27_27_27: + deny hosts = ${if eq {1}{0}{}fail} + accept + +acl_28_28_28: + accept sender_domains = : okdomain + +acl_29_29_29: + deny dnslists = test.ex/$sender_address_domain + accept + +acl_30_30_30: + deny message = domain=$dnslist_domain\n\ + value=$dnslist_value\n\ + text="$dnslist_text" + dnslists = test.ex=V4NET.0.0.1,127.0.0.2/$sender_address_domain + accept + +# This one tests what happens when a lookup key gets too long +acl_31_31_31: + deny dnslists = test.ex/$sender_address_domain+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+extra+END + accept + +# Settings of $domain and $local_part +acl_32_32_32: + warn message = Start: domain=$domain local_part=$local_part + + warn local_parts = userx-vs + message = Vs: domain=$domain local_part=$local_part + verify = sender + + warn message = Vr: domain=$domain local_part=$local_part + verify = recipient + + accept + +acl_33_33_33: + accept endpass + message = sender verify failure + verify = sender/no_details + message = recipient verify failure + verify = recipient + +# Incomplete DNS lookups +acl_44_44_44: + warn dnslists = test.again.dns + warn dnslists = +include_unknown : test.again.dns + warn dnslists = +exclude_unknown : test.again.dns + warn dnslists = +defer_unknown : test.again.dns + accept + +# Adding header at RCPT time and testing at DATA time +acl_55_55_55: + warn message = X-rcpt-added: An added header at RCPT time + accept + +acl_56_56_56: + warn message = X-Warn: $local_part + condition = ${substr_5:$local_part} + accept + +acl_56_56_57: + accept message = denied by condition + condition = ${substr_5:$local_part} + +acl_56_56_58: + warn message = xx: rcpt_count = $rcpt_count\n \ + rcpt_defer_count = $rcpt_defer_count\n \ + rcpt_fail_count = $rcpt_fail_count\n \ + recipients_count = $recipients_count\n \ + local_part = $local_part + accept local_parts = ^ok + +acl_56_56_59: + accept message = ACL message for verification failure\n \ + Original was >$acl_verify_message< + verify = recipient + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t2: + driver = appendfile + file = DIR/test-mail/okbatch + user = CALLER + batch_max = 100 + envelope_to_add + +# ----- Routers ----- + +begin routers + +r0: + driver = accept + local_parts = ^ok + transport = t2 + +r1: + driver = accept + local_parts = ^userx : ^cond- + transport = t1 + +r2: + driver = redirect + local_parts = fail + allow_fail + data = :fail: here is a fail message + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0024 b/test/confs/0024 new file mode 100644 index 000000000..52a2351bc --- /dev/null +++ b/test/confs/0024 @@ -0,0 +1,88 @@ +# Exim test configuration 0024 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +domainlist relay_domains = ten-1.test.ex + +hostlist relay_hosts = V4NET.255.255.0/24 + +trusted_users = CALLER + +acl_smtp_rcpt = acl_rcpt + +# ------ ACLs ------ + +begin acl + +acl_rcpt: + accept hosts = : + + accept domains = +local_domains + local_parts = postmaster + + require verify = sender + + deny message = rejected because $sender_host_address is in a black list at $dnslist_domain\n$dnslist_text + dnslists = rbl.test.ex + + warn message = X-Warning: $sender_host_address is in a black list at $dnslist_domain ($dnslist_value) + log_message = found in $dnslist_domain + dnslists = rbl2.test.ex + + accept domains = +local_domains + endpass + verify = recipient + + require verify = recipient + + accept domains = +relay_domains + + accept hosts = 127.0.0.1 : +relay_hosts + + accept authenticated = * + + deny message = relay not permitted + + +# ------ Routers ------ + +begin routers + +r1: + driver = dnslookup + domains = ! +local_domains + transport = dev_null + no_more + +r2: + driver = accept + local_parts = userx : postmaster + transport = local_delivery + cannot_route_message = unknown user + + +# ------ Transports ------ + +begin transports + +dev_null: + driver = appendfile + file = /dev/null + user = CALLER + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0025 b/test/confs/0025 new file mode 100644 index 000000000..658dcb990 --- /dev/null +++ b/test/confs/0025 @@ -0,0 +1,63 @@ +# Exim test configuration 0025 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +domainlist relay_domains = ten-1.test.ex + +acl_smtp_rcpt = acl_local + +# ------ ACLs ------ + +begin acl + +acl_local: + # Pass on for non-remote input (should all be) + require message = this message should not occur + hosts = : + + # The redundant hosts check is just to ensure it works + accept verify = sender + verify = recipient + hosts = : + +# ------ Routers ------ + +begin routers + +r1: + driver = dnslookup + domains = ! +local_domains + transport = dev_null + no_more + +r2: + driver = accept + local_parts = userx : postmaster + transport = local_delivery + + +# ------ Transports ------ + +begin transports + +dev_null: + driver = appendfile + file = /dev/null + user = CALLER + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0026 b/test/confs/0026 new file mode 100644 index 000000000..5a0c04e13 --- /dev/null +++ b/test/confs/0026 @@ -0,0 +1,64 @@ +# Exim test configuration 0026 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = accept +acl_smtp_data = acl_data + +trusted_users = CALLER + +# ------ ACLs ------ + +begin acl + +acl_data: + deny log_message = body contains trigger + condition = ${if match{$message_body}{trigger}{yes}{no}} + require verify = header_syntax + warn message = X-warning: this is a test warning + accept senders = ! : + accept verify = header_sender + + +# ------ Routers ------ + +begin routers + +r1: + driver = dnslookup + domains = ! +local_domains + transport = dev_null + no_more + +r2: + driver = accept + local_parts = userx : postmaster + transport = local_delivery + + +# ------ Transports ------ + +begin transports + +dev_null: + driver = appendfile + file = /dev/null + user = CALLER + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0027 b/test/confs/0027 new file mode 100644 index 000000000..75ccf4ae6 --- /dev/null +++ b/test/confs/0027 @@ -0,0 +1,80 @@ +# Exim test configuration 0027 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = acl_rcpt +acl_smtp_data = $h_subject: + +trusted_users = CALLER + + +# ------ ACLs ------ + +begin acl + +userx: + deny message = deny for userx + +postmaster: + accept verify = sender + +data: + accept + +data1: + accept verify = recipient + +data2: + accept domains = a.b.c + +data3: + accept local_parts = a.b.c + +acl_rcpt: + accept endpass + acl = ${tr{$local_part}{:}{\n}} + deny message = this message should not occur + + +# ------ Routers ------ + +begin routers + +r1: + driver = dnslookup + domains = ! +local_domains + transport = dev_null + no_more + +r2: + driver = accept + local_parts = userx : postmaster + transport = local_delivery + + +# ------ Transports ------ + +begin transports + +dev_null: + driver = appendfile + file = /dev/null + user = CALLER + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0028 b/test/confs/0028 new file mode 100644 index 000000000..6cb607e3d --- /dev/null +++ b/test/confs/0028 @@ -0,0 +1,65 @@ +# Exim test configuration 0028 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = acl_rcpt +acl_smtp_data = acl_data + + +# ------ ACLs ------ + +begin acl + +acl_rcpt: + accept endpass + message = SIZE value too big + condition = ${if > {$message_size}{10}{no}{yes}} + +acl_data: + accept endpass + message = message too big - \$recipients=$recipients ($recipients_count) + condition = ${if > {$message_size}{10}{no}{yes}} + + +# ------ Routers ------ + +begin routers + +r1: + driver = dnslookup + domains = ! +local_domains + transport = dev_null + no_more + +r2: + driver = accept + local_parts = userx : postmaster + transport = local_delivery + + +# ------ Transports ------ + +begin transports + +dev_null: + driver = appendfile + file = /dev/null + user = CALLER + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0029 b/test/confs/0029 new file mode 100644 index 000000000..d0c670819 --- /dev/null +++ b/test/confs/0029 @@ -0,0 +1,54 @@ +# Exim test configuration 0029 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt + + +# ------ ACL ------ + +begin acl + +check_rcpt: + require verify = sender + verify = sender=\ + ${if eq {${domain:$sender_address}}{test.ex}\ + {${local_part:$sender_address}@abc.test.ex}\ + {$sender_address}} + accept + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + domains = test.ex : xyz.test.ex + transport = t1 + +r2: + driver = accept + domains = abc.test.ex + local_parts = ok + transport = t1 + + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = /dev/null + +# End diff --git a/test/confs/0030 b/test/confs/0030 new file mode 100644 index 000000000..553491887 --- /dev/null +++ b/test/confs/0030 @@ -0,0 +1,54 @@ +# Exim test configuration 0030 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt + + +# ------ ACL ------ + +begin acl + +check_rcpt: + accept message = <<$address_data>> + verify = recipient + message = >>$address_data<< + condition = no + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + address_data = data from accept router + local_parts = OK + transport = t1 + +# Always declines, but sets $address_data + +r2: + driver = redirect + address_data = data from redirect router + data = + + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = /dev/null + +# End diff --git a/test/confs/0031 b/test/confs/0031 new file mode 100644 index 000000000..15cd5415b --- /dev/null +++ b/test/confs/0031 @@ -0,0 +1,40 @@ +# Exim test configuration 0031 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +domainlist local_domains = *.test.ex : myhost.ex +hold_domains = !one.test.ex : *.test.ex : myhost.ex + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + check_local_user + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + +# End diff --git a/test/confs/0032 b/test/confs/0032 new file mode 100644 index 000000000..7ec81cc20 --- /dev/null +++ b/test/confs/0032 @@ -0,0 +1,47 @@ +# Exim test configuration 0032 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + check_local_user + transport = local_delivery + +others: + driver = dnslookup + transport = smtp + self = fail + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + +smtp: + driver = smtp + + +# End diff --git a/test/confs/0033 b/test/confs/0033 new file mode 100644 index 000000000..e8e995044 --- /dev/null +++ b/test/confs/0033 @@ -0,0 +1,48 @@ +# Exim test configuration 0033 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + +d1: + driver = redirect + no_check_local_user + file = DIR/aux-fixed/TESTNUM.list + forbid_file + forbid_filter_reply + forbid_pipe + one_time + retry_use_local_part + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + +# End diff --git a/test/confs/0034 b/test/confs/0034 new file mode 100644 index 000000000..5fbb0b3ba --- /dev/null +++ b/test/confs/0034 @@ -0,0 +1,23 @@ +# Exim test configuration 0034 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +queue_only + +smtp_accept_max_nonmail = 3 +smtp_accept_max_nonmail_hosts = !10.0.0.1 + +# Set this large to avoid it biting first +smtp_max_synprot_errors = 20 + +# End diff --git a/test/confs/0035 b/test/confs/0035 new file mode 100644 index 000000000..38b377b67 --- /dev/null +++ b/test/confs/0035 @@ -0,0 +1,33 @@ +# Exim test configuration 0035 + +SERVER= +SUBMISSION_OPTIONS= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_mail = a1 +acl_smtp_rcpt = accept + +queue_only +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +a1: + warn senders = ^(?!notsubmit@) + control = submissionSUBMISSION_OPTIONS + accept + +# End diff --git a/test/confs/0036 b/test/confs/0036 new file mode 100644 index 000000000..83997b39b --- /dev/null +++ b/test/confs/0036 @@ -0,0 +1,52 @@ +# Exim test configuration 0036 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +queue_only +queue_run_in_order +remote_max_parallel = 1 + + +# ----- Routers ----- + +begin routers + +server: + driver = manualroute + condition = ${if eq {SERVER}{server}{yes}{no}} + route_list = * + transport = local_delivery + +lookuphost: + driver = dnslookup + self = send + transport = send_to_server + no_more + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +send_to_server: + driver = smtp + port = PORT_D + +# End diff --git a/test/confs/0037 b/test/confs/0037 new file mode 100644 index 000000000..522694aab --- /dev/null +++ b/test/confs/0037 @@ -0,0 +1,91 @@ +# Exim test configuration 0037 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +message_body_visible = 20 +qualify_domain = test.ex +freeze_tell = postmaster +system_filter = DIR/aux-var/TESTNUM.F +system_filter_reply_transport = address_reply +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +check_vars: + driver = accept + local_parts = dff + headers_add = original_domain=$original_domain\n \ + original_local_part=$original_local_part\n \ + parent_domain=$parent_domain\n \ + parent_local_part=$parent_local_part + transport = appendfile + user = CALLER + +fail_read_filter: + driver = redirect + local_parts = readfile + allow_filter + file = DIR/aux-var/TESTNUM.f-readfile + user = CALLER + +userfilter: + driver = redirect + allow_filter + user = CALLER + no_check_local_user + router_home_directory = /usr + debug_print = \$home = >$home< + file = DIR/aux-var/TESTNUM.f-user + forbid_file + forbid_filter_existstest + forbid_filter_lookup + forbid_filter_readfile + forbid_filter_run + forbid_pipe + local_parts = ^filter- + retry_use_local_part + reply_transport = address_reply + +user_accept1: + driver = accept + local_parts = userz : abcd : postmaster + retry_use_local_part + transport = appendfile + user = CALLER + +user_accept2: + driver = accept + local_parts = userx : CALLER + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +address_reply: + driver = autoreply + never_mail = never_mail@test.ex + user = CALLER + initgroups + +# End diff --git a/test/confs/0038 b/test/confs/0038 new file mode 100644 index 000000000..497623a6d --- /dev/null +++ b/test/confs/0038 @@ -0,0 +1,42 @@ +# Exim test configuration 0038 + +RRATELIMIT=0/1h/strict +DRATELIMIT=0/1h/per_byte/strict + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt +acl_smtp_data = check_data +qualify_domain = test.ex + + +# ----- ACL ----- + +begin acl + +check_rcpt: + warn ratelimit = RRATELIMIT + log_message = RCPT: \ + sender_rate=$sender_rate \ + sender_rate_limit=$sender_rate_limit \ + sender_rate_period=$sender_rate_period + accept + +check_data: + warn ratelimit = DRATELIMIT + log_message = DATA: \ + sender_rate=$sender_rate \ + sender_rate_limit=$sender_rate_limit \ + sender_rate_period=$sender_rate_period + deny + +# End diff --git a/test/confs/0039 b/test/confs/0039 new file mode 100644 index 000000000..3d989414b --- /dev/null +++ b/test/confs/0039 @@ -0,0 +1,46 @@ +# Exim test configuration 0039 + +QDG= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +QDG + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + local_parts = r1 + data = newr1 + +r2: + driver = redirect + local_parts = r2 + data = newr2 + qualify_domain = local.test.ex + +ok: + driver = accept + transport = t1 + + +#----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = V4NET.0.0.0 + +# End diff --git a/test/confs/0040 b/test/confs/0040 new file mode 100644 index 000000000..4607d5391 --- /dev/null +++ b/test/confs/0040 @@ -0,0 +1,41 @@ +# Exim test configuration 0040 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = +received_recipients +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + headers_add = "X-interface: $interface_address" + return_path_add + user = CALLER + + +# End diff --git a/test/confs/0041 b/test/confs/0041 new file mode 100644 index 000000000..fa488e5bb --- /dev/null +++ b/test/confs/0041 @@ -0,0 +1,58 @@ +# Exim test configuration 0041 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_expn = check_expn +qualify_domain = test.ex +no_write_rejectlog + + +# ----- ACLs ----- + +begin acl + +check_expn: + accept hosts = 2.2.2.2 + +# ----- Routers ----- + +begin routers + +system_aliases: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + retry_use_local_part + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# ----- Retry ----- + +# End diff --git a/test/confs/0042 b/test/confs/0042 new file mode 100644 index 000000000..15e1e6729 --- /dev/null +++ b/test/confs/0042 @@ -0,0 +1,46 @@ +# Exim test configuration 0042 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_vrfy = accept +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# End diff --git a/test/confs/0043 b/test/confs/0043 new file mode 100644 index 000000000..b8d1c9a38 --- /dev/null +++ b/test/confs/0043 @@ -0,0 +1,68 @@ +# Exim test configuration 0043 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = exim.test.ex + +acl_smtp_rcpt = check_recipient +log_selector = +smtp_incomplete_transaction +qualify_domain = exim.test.ex + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + require verify = sender + deny message = unrouteable address + !verify = recipient + accept domains = +local_domains + deny message = relay not permitted + + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + +system_aliases: + driver = redirect + allow_defer + allow_fail + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + retry_use_local_part + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +# End diff --git a/test/confs/0044 b/test/confs/0044 new file mode 100644 index 000000000..ef431f26e --- /dev/null +++ b/test/confs/0044 @@ -0,0 +1,59 @@ +# Exim test configuration 0044 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = exim.test.ex + +acl_smtp_rcpt = check_recipient +qualify_domain = exim.test.ex + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept hosts = : + accept recipients = postmaster@exim.test.ex + accept senders = myfriend@* + deny message = host is listed in $dnslist_domain + dnslists = rbl.test.ex + require verify = sender + deny message = unrouteable address + !verify = recipient + accept domains = +local_domains + accept domains = +relay_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +# End diff --git a/test/confs/0045 b/test/confs/0045 new file mode 100644 index 000000000..d6674dcf7 --- /dev/null +++ b/test/confs/0045 @@ -0,0 +1,31 @@ +# Exim test configuration 0045 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +lookuphost: + driver = dnslookup + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# End diff --git a/test/confs/0046 b/test/confs/0046 new file mode 100644 index 000000000..554366907 --- /dev/null +++ b/test/confs/0046 @@ -0,0 +1,52 @@ +# Exim test configuration 0046 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +message_id_header_domain = test.ex +qualify_domain = test.ex +# Omit Received: so as to keep the header size fixed +received_header_text = +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +forwardfile: + driver = redirect + allow_filter + check_local_user + file = DIR/aux-fixed/TESTNUM.filter.$local_part + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + envelope_to_add + file = DIR/test-mail/$local_part + headers_add = "X-size: $message_size\n\ + X-body-size: $message_body_size\n\ + X-body: $message_body\n\ + X-tail: $message_body_end\n\ + X-local-user: uid=$local_user_uid gid=$local_user_gid" + return_path_add + user = CALLER + +# End diff --git a/test/confs/0047 b/test/confs/0047 new file mode 100644 index 000000000..7695652e2 --- /dev/null +++ b/test/confs/0047 @@ -0,0 +1,34 @@ +# Exim test configuration 0047 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +domainlist: + driver = manualroute + route_list = \ + domain1 ten-1.test.ex byname;\ + lsearch;;DIR/aux-fixed/TESTNUM.routes $value bydns;\ + ^domain(3) ten-$1.test.ex byname + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + +# End diff --git a/test/confs/0048 b/test/confs/0048 new file mode 100644 index 000000000..c0086e441 --- /dev/null +++ b/test/confs/0048 @@ -0,0 +1,61 @@ +# Exim test configuration 0048 + +MESSAGE_LOGS = true + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +message_logs = MESSAGE_LOGS + + +# ----- Routers ----- + +begin routers + +system_aliases: + driver = redirect + allow_defer + local_part_prefix = *+ + local_part_suffix = -* + local_part_prefix_optional + local_part_suffix_optional + transport_home_directory = DIR/ + data = ${lookup{$local_part}lsearch{DIR/aux-var/TESTNUM.aliases}} + pipe_transport = address_pipe + retry_use_local_part + +localuser: + driver = accept + local_parts = CALLER + transport = local_delivery + user = CALLER + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + +address_pipe: + driver = pipe + environment = "A=a:B=b : C=c : COLON=:: : ME=$local_part" + log_output + return_output + user = EXIMUSER + + +# End diff --git a/test/confs/0049 b/test/confs/0049 new file mode 100644 index 000000000..7966e0379 --- /dev/null +++ b/test/confs/0049 @@ -0,0 +1,46 @@ +# Exim test configuration 0049 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + + +# ------ ACL ------ +begin acl + +check_recipient: + accept hosts = : + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +# End diff --git a/test/confs/0050 b/test/confs/0050 new file mode 100644 index 000000000..db87e2918 --- /dev/null +++ b/test/confs/0050 @@ -0,0 +1,49 @@ +# Exim test configuration 0050 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept hosts = : + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +# End diff --git a/test/confs/0051 b/test/confs/0051 new file mode 100644 index 000000000..018aa9527 --- /dev/null +++ b/test/confs/0051 @@ -0,0 +1,52 @@ +# Exim test configuration 0051 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + +domainlist local_domains = test.ex : \ + myhost.ex : \ + bad.ex : \ + DIR/aux-fixed/TESTNUM.domains : \ + lsearch;DIR/aux-fixed/TESTNUM.notdomains + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + allow_fail + data = :fail: unrouteable mail domain "$domain" (:fail:) + +localuser: + driver = accept + local_parts = userx : CALLER + domains = test.ex : DIR/aux-fixed/TESTNUM.domains :\ + !lsearch;DIR/aux-fixed/TESTNUM.notdomains : !bad.ex + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +# End diff --git a/test/confs/0052 b/test/confs/0052 new file mode 100644 index 000000000..f483cfe6a --- /dev/null +++ b/test/confs/0052 @@ -0,0 +1,45 @@ +# Exim test configuration 0052 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +smartuser: + driver = accept + local_parts = !xx99 : ^!one\$ : !^!two\$ : *99 + retry_use_local_part + transport = local_delivery + user = CALLER + +localuser: + driver = accept + check_local_user + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + + +# End diff --git a/test/confs/0053 b/test/confs/0053 new file mode 100644 index 000000000..58f6a721b --- /dev/null +++ b/test/confs/0053 @@ -0,0 +1,45 @@ +# Exim test configuration 0053 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +aliases: + driver = redirect + allow_defer + data = ${lookup{$local_part@$domain}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + retry_use_local_part + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# End diff --git a/test/confs/0054 b/test/confs/0054 new file mode 100644 index 000000000..aaddd4963 --- /dev/null +++ b/test/confs/0054 @@ -0,0 +1,35 @@ +# Exim test configuration 0054 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +lookuphost: + driver = dnslookup + mx_domains = !ten-1.test.ex : *.test.ex + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# End diff --git a/test/confs/0055 b/test/confs/0055 new file mode 100644 index 000000000..79b2ac345 --- /dev/null +++ b/test/confs/0055 @@ -0,0 +1,65 @@ +# Exim test configuration 0055 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : myhost.ex +domainlist some_domains = ten-1.test.ex + +queue_domains = !unknown.test.ex : !^ten-\\d+\\.test\\.ex\$ : *.test.ex +queue_run_in_order +queue_smtp_domains = !+some_domains : \N^ten-\d+\.test\.ex$\N + + +# ----- Routers ----- + +begin routers + +localreally: + driver = manualroute + domains = ! +local_domains + route_list = local.test.ex + transport = local_delivery + user = CALLER + +lookuphost: + driver = dnslookup + domains = ! +local_domains + transport = smtp + no_more + cannot_route_message = $domain is not local, and can't route by DNS + +localuser: + driver = accept + local_parts = userx : CALLER + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +smtp: + driver = smtp + + +# ----- Retry ----- + + +# End diff --git a/test/confs/0056 b/test/confs/0056 new file mode 100644 index 000000000..22375d062 --- /dev/null +++ b/test/confs/0056 @@ -0,0 +1,29 @@ +# Exim test configuration 0056 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : myhost.ex +domainlist relay_domains = * + +acl_smtp_rcpt = check_recipient + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept domains = +local_domains + accept domains = +relay_domains + deny message = relay not permitted + +# End diff --git a/test/confs/0057 b/test/confs/0057 new file mode 100644 index 000000000..3dd718359 --- /dev/null +++ b/test/confs/0057 @@ -0,0 +1,47 @@ +# Exim test configuration 0057 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +domainlist local_domains = test.ex : myhost.ex : *.test.ex +domainlist relay_domains = test.ex : !* + +percent_hack_domains = ! a.test.ex : !b.test.ex : \ + !DIR/aux-fixed/TESTNUM.d1 : ! DIR/aux-fixed/TESTNUM.d2 : *.test.ex + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept domains = +local_domains + accept domains = +relay_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + +localuser: + driver = accept + local_parts = userx + verify_only + +# End diff --git a/test/confs/0058 b/test/confs/0058 new file mode 100644 index 000000000..c23b3062b --- /dev/null +++ b/test/confs/0058 @@ -0,0 +1,29 @@ +# Exim test configuration 0058 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +domainlist local_domains = test.ex : myhost.ex +hostlist relay_hosts = * + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept domains = +local_domains + accept hosts = +relay_hosts + deny message = relay not permitted + + +# End diff --git a/test/confs/0059 b/test/confs/0059 new file mode 100644 index 000000000..33cf95f52 --- /dev/null +++ b/test/confs/0059 @@ -0,0 +1,30 @@ +# Exim test configuration 0059 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +domainlist local_domains = test.ex : myhost.ex +domainlist relay_domains = test.ex +hostlist relay_hosts = !* + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept domains = +local_domains + accept domains = +relay_domains + accept hosts = +relay_hosts + deny message = relay not permitted + +# End diff --git a/test/confs/0060 b/test/confs/0060 new file mode 100644 index 000000000..9561c8ce0 --- /dev/null +++ b/test/confs/0060 @@ -0,0 +1,32 @@ +# Exim test configuration 0060 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +domainlist local_domains = test.ex : myhost.ex +domainlist relay_domains = test.ex +hostlist relay_hosts = "! V4NET.255.0.1 : !V4NET.255.0.2 : \ + !DIR/aux-var/TESTNUM.d1 : ! DIR/aux-var/TESTNUM.d2 : \ + ten-1.test.ex : ten-5-6.test.ex" + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept domains = +local_domains + accept domains = +relay_domains + accept hosts = +relay_hosts + deny message = relay not permitted + +# End diff --git a/test/confs/0061 b/test/confs/0061 new file mode 100644 index 000000000..b7f9a10c5 --- /dev/null +++ b/test/confs/0061 @@ -0,0 +1,30 @@ +# Exim test configuration 0061 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = ten-1.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +domainlist local_domains = test.ex : myhost.ex +domainlist relay_domains = test.ex +hostlist relay_hosts = @ + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept domains = +local_domains + accept domains = +relay_domains + accept hosts = +relay_hosts + deny message = relay not permitted + +# End diff --git a/test/confs/0062 b/test/confs/0062 new file mode 100644 index 000000000..e3a11ca3a --- /dev/null +++ b/test/confs/0062 @@ -0,0 +1,36 @@ +# Exim test configuration 0062 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex : myhost.ex + +domainlist relay_domains = test.ex +hostlist relay_hosts = *-2.test.ex : *-3-alias.test.ex + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept domains = +local_domains + accept domains = +relay_domains + accept hosts = +relay_hosts + deny message = relay not permitted + +check_message: + accept + +# End diff --git a/test/confs/0063 b/test/confs/0063 new file mode 100644 index 000000000..4118128fe --- /dev/null +++ b/test/confs/0063 @@ -0,0 +1,32 @@ +# Exim test configuration 0063 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : myhost.ex +domainlist relay_domains = test.ex + +hostlist relay_hosts = ^[^\\d]+2 + +acl_smtp_rcpt = check_recipient + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept domains = +local_domains + accept domains = +relay_domains + accept hosts = +relay_hosts + deny message = relay not permitted + +# End diff --git a/test/confs/0064 b/test/confs/0064 new file mode 100644 index 000000000..e824e6688 --- /dev/null +++ b/test/confs/0064 @@ -0,0 +1,29 @@ +# Exim test configuration 0064 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +domainlist local_domains = test.ex : myhost.ex +domainlist relay_domains = test.ex +hostlist relay_hosts = lsearch;DIR/aux-fixed/TESTNUM.hosts + +# ------ ACL ------ + +begin acl + +check_recipient: + accept domains = +local_domains + accept domains = +relay_domains + accept hosts = +relay_hosts + deny message = relay not permitted + +# End diff --git a/test/confs/0065 b/test/confs/0065 new file mode 100644 index 000000000..95255805c --- /dev/null +++ b/test/confs/0065 @@ -0,0 +1,34 @@ +# Exim test configuration 0065 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +domainlist local_domains = test.ex : myhost.ex +domainlist relay_domains = test.ex +hostlist relay_hosts = "1.2.3.4 : !1.2.3.0/24 : 1.2.0.0/16 : \ + net16-lsearch;DIR/aux-fixed/TESTNUM.nets : \ + net24-lsearch;DIR/aux-fixed/TESTNUM.nets : \ + net-lsearch;DIR/aux-fixed/TESTNUM.nets" + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept domains = +local_domains + accept domains = +relay_domains + accept hosts = +relay_hosts + deny message = relay not permitted + + +# End diff --git a/test/confs/0066 b/test/confs/0066 new file mode 100644 index 000000000..67da00165 --- /dev/null +++ b/test/confs/0066 @@ -0,0 +1,30 @@ +# Exim test configuration 0066 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +domainlist local_domains = test.ex : myhost.ex +domainlist relay_domains = test.ex +hostlist relay_hosts = !DIR/aux-fixed/TESTNUM.nothosts : DIR/aux-var/TESTNUM.hostnets + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept domains = +local_domains + accept domains = +relay_domains + accept hosts = +relay_hosts + deny message = relay not permitted + +# End diff --git a/test/confs/0067 b/test/confs/0067 new file mode 100644 index 000000000..0094578eb --- /dev/null +++ b/test/confs/0067 @@ -0,0 +1,40 @@ +# Exim test configuration 0067 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : myhost.ex +domainlist relay_domains = test.ex : myhost.ex + +acl_smtp_rcpt = check_recipient +smtp_accept_max_nonmail = 1000 + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept recipients = postmaster@* + deny senders = !x@b.c : *@b.c :\ + !^philip@a.b.c : ^(phil|quil)[^@]*@ :\ + !yy@lsearch;DIR/aux-fixed/TESTNUM.rej.lsearch :\ + lsearch*@;DIR/aux-fixed/TESTNUM.rej.lsearch :\ + @@lsearch*;DIR/aux-fixed/TESTNUM.rej.bydomain : \ + ! x@bb.cc : *@bb.cc :\ + ! DIR/aux-fixed/TESTNUM.not1 : !DIR/aux-fixed/TESTNUM.not2 : \ + bbb.ccc + deny senders = 1234@m.n.o : DIR/aux-fixed/TESTNUM.rejrec + accept domains = +local_domains + accept domains = +relay_domains + deny message = relay not permitted + +# End diff --git a/test/confs/0068 b/test/confs/0068 new file mode 100644 index 000000000..0300bcacc --- /dev/null +++ b/test/confs/0068 @@ -0,0 +1,17 @@ +# Exim test configuration 0068 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +recipients_max = 5 +recipients_max_reject + +# End diff --git a/test/confs/0069 b/test/confs/0069 new file mode 100644 index 000000000..469c39330 --- /dev/null +++ b/test/confs/0069 @@ -0,0 +1,40 @@ +# Exim test configuration 0069 + +LOG_SELECTOR= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : myhost.ex + +acl_smtp_rcpt = check_recipient$local_part +sender_unqualified_hosts = +include_unknown: ^ten-1\\.test\\.ex +LOG_SELECTOR + +# ------ ACL ------ + +begin acl + +check_recipientx: + accept hosts = : + deny hosts = +include_unknown : ^ten-1\\.test\\.ex + accept domains = +local_domains + deny message = relay not permitted + +check_recipienty: + accept hosts = non.existent.invalid : V4NET.0.0.13 + deny message = "Denied" + +check_recipientz: + accept hosts = +ignore_unknown : non.existent.invalid : V4NET.0.0.13 + deny message = "Denied" + +# End diff --git a/test/confs/0070 b/test/confs/0070 new file mode 100644 index 000000000..77ec017ec --- /dev/null +++ b/test/confs/0070 @@ -0,0 +1,32 @@ +# Exim test configuration 0070 + +HVH= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = rcpt +helo_verify_hosts = ten-1.test.ex : ten-3.test.ex : HVH +helo_try_verify_hosts = ten-2.test.ex +log_selector = -host_lookup_failed + + +# ----- ACL ----- + +begin acl + +rcpt: + require message = helo not verified + verify = helo + + deny message = helo did verify + +# End diff --git a/test/confs/0071 b/test/confs/0071 new file mode 100644 index 000000000..e1d76d646 --- /dev/null +++ b/test/confs/0071 @@ -0,0 +1,25 @@ +# Exim test configuration 0071 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +system_aliases: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-var/TESTNUM.aliases}} + retry_use_local_part + +# End diff --git a/test/confs/0072 b/test/confs/0072 new file mode 100644 index 000000000..368db3c51 --- /dev/null +++ b/test/confs/0072 @@ -0,0 +1,65 @@ +# Exim test configuration 0072 + +ONCE=once=DIR/spool/autolog +ONLY= +RETURN= + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +filter: + driver = redirect + local_parts = userx-filter + allow_filter + data = #Exim filter\n seen mail text "This is an autoreply." + user = EXIMUSER + + +reply: + driver = accept + retry_use_local_part + senders = ! + transport = reply + +localuser: + driver = accept + check_local_user + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +reply: + driver = autoreply + text = "Test auto reply to ${escape:$h_subject:}" + to = $reply_address + user = EXIMUSER + ONCE + RETURN + ONLY + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + + +# End diff --git a/test/confs/0073 b/test/confs/0073 new file mode 100644 index 000000000..8bc9c7c9f --- /dev/null +++ b/test/confs/0073 @@ -0,0 +1,52 @@ +# Exim test configuration 0073 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +reply: + driver = accept + retry_use_local_part + senders = ! + transport = reply + +localuser: + driver = accept + check_local_user + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +reply: + driver = autoreply + once = DIR/spool/autolog + once_repeat = ${if eq {0}{0}{4s}fail} + text = "Test auto reply to $h_subject:" + to = $reply_address + user = EXIMUSER + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + + +# End diff --git a/test/confs/0074 b/test/confs/0074 new file mode 100644 index 000000000..3fc461392 --- /dev/null +++ b/test/confs/0074 @@ -0,0 +1,54 @@ +# Exim test configuration 0074 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +forwardfile: + driver = redirect + allow_filter + user = CALLER + file = DIR/aux-var/TESTNUM.filter + reply_transport = address_reply + +abcd: + driver = redirect + local_parts = abcd + data = :blackhole: + +localuser: + driver = accept + local_parts = userx : CALLER + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +address_reply: + driver = autoreply + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# End diff --git a/test/confs/0075 b/test/confs/0075 new file mode 100644 index 000000000..2a171ea2d --- /dev/null +++ b/test/confs/0075 @@ -0,0 +1,39 @@ +# Exim test configuration 0075 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/subdir/$local_part + return_path_add + user = CALLER + + +# End diff --git a/test/confs/0076 b/test/confs/0076 new file mode 100644 index 000000000..fad78a5ca --- /dev/null +++ b/test/confs/0076 @@ -0,0 +1,46 @@ +# Exim test configuration 0076 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + no_create_directory + delivery_date_add + envelope_to_add + file = DIR/test-mail/subdir/$local_part + return_path_add + user = CALLER + +# ----- Retry ----- + +begin retry + +* * F,10m,2d + + +# End diff --git a/test/confs/0077 b/test/confs/0077 new file mode 100644 index 000000000..f5df43e10 --- /dev/null +++ b/test/confs/0077 @@ -0,0 +1,28 @@ +# Exim test configuration 0077 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : myhost.test.ex +acl_smtp_rcpt = check_recipient + + +# ------ ACL ------ + +begin acl + +check_recipient: + deny hosts = ! @ : ! localhost + accept domains = +local_domains + deny message = relay not permitted + + +# End diff --git a/test/confs/0078 b/test/confs/0078 new file mode 100644 index 000000000..870453d0b --- /dev/null +++ b/test/confs/0078 @@ -0,0 +1,54 @@ +# Exim test configuration 0078 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : myhost.test.ex + + +# ----- Routers ----- + +begin routers + +lookuphost: + driver = dnslookup + domains = ! +local_domains + no_more + self = pass + transport = remote_smtp + +self: + driver = manualroute + debug_print = "self_hostname=$self_hostname\n" + domains = ! +local_domains + host_find_failed = pass + no_more + route_list = * $local_part byname + transport = remote_smtp + +self2: + driver = manualroute + debug_print = "self_hostname=$self_hostname\n" + domains = ! +local_domains + route_list = * myhost.test.ex byname + transport = remote_smtp + no_more + + +# ----- Transports ----- + +begin transports + +remote_smtp: + driver = smtp + + +# End diff --git a/test/confs/0079 b/test/confs/0079 new file mode 100644 index 000000000..284f0b0c2 --- /dev/null +++ b/test/confs/0079 @@ -0,0 +1,92 @@ +# Exim test configuration 0079 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = exim.test.ex + +acl_smtp_rcpt = check_recipient +log_selector = +incoming_interface +qualify_domain = exim.test.ex +system_filter = DIR/aux-var/TESTNUM.filter +system_filter_file_transport = file +system_filter_reply_transport = reply +trusted_users = CALLER + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept hosts = : + warn message = X-Warning: $sender_host_address is blacklisted at $dnslist_domain + log_message = $sender_host_address is in $dnslist_domain + dnslists = rbl.test.ex + warn message = X-Warning: $sender_host_address is blacklisted at $dnslist_domain + log_message = accepting postmaster from host in $dnslist_domain + recipients = postmaster@exim.test.ex + dnslists = rbl2.test.ex + accept recipients = postmaster@exim.test.ex + deny message = host is listed in $dnslist_domain + dnslists = rbl2.test.ex + require verify = sender + deny message = unrouteable address + !verify = recipient + accept domains = +local_domains + deny message = relay not permitted + + +# ------ Routers ------ + +begin routers + +system_aliases: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + qualify_preserve_domain + retry_use_local_part + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + +caller: + driver = accept + check_local_user + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +file: + driver = appendfile + user = CALLER + +reply: + driver = autoreply + user = CALLER + + +# ----- Retry ----- + +# End diff --git a/test/confs/0080 b/test/confs/0080 new file mode 100644 index 000000000..36f94f836 --- /dev/null +++ b/test/confs/0080 @@ -0,0 +1,62 @@ +# Exim test configuration 0080 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = exim.test.ex +acl_smtp_rcpt = check_recipient + +qualify_domain = exim.test.ex + + +# ------ ACL ------- + +begin acl + +check_recipient: + accept recipients = postmaster@exim.test.ex + deny message = host is listed in $dnslist_domain + dnslists = rbl.test.ex:rbl2.test.ex + require verify = sender + deny message = unrouteable address + !verify = recipient + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +system_aliases: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + retry_use_local_part + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +# End diff --git a/test/confs/0081 b/test/confs/0081 new file mode 100644 index 000000000..23e22a2a3 --- /dev/null +++ b/test/confs/0081 @@ -0,0 +1,41 @@ +# Exim test configuration 0081 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = exim.test.ex +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + debug_print = ">$h_X-one:<\n" + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# End diff --git a/test/confs/0082 b/test/confs/0082 new file mode 100644 index 000000000..489b9d70d --- /dev/null +++ b/test/confs/0082 @@ -0,0 +1,39 @@ +# Exim test configuration 0082 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + headers_add = "Proto: $received_protocol" + return_path_add + user = CALLER + +# End diff --git a/test/confs/0083 b/test/confs/0083 new file mode 100644 index 000000000..20a106c6f --- /dev/null +++ b/test/confs/0083 @@ -0,0 +1,40 @@ +# Exim test configuration 0083 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + headers_add = "Proto: $received_protocol" + return_path_add + user = CALLER + + +# End diff --git a/test/confs/0084 b/test/confs/0084 new file mode 100644 index 000000000..395743c4b --- /dev/null +++ b/test/confs/0084 @@ -0,0 +1,39 @@ +# Exim test configuration 0084 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +smart: + driver = accept + require_files = ! DIR/aux-fixed/TESTNUM.$local_part + retry_use_local_part + verify_only + +forward: + driver = redirect + file = DIR/aux-fixed/TESTNUM.$local_part + redirect_router = localuser + require_files = DIR/aux-fixed/TESTNUM.$local_part + retry_use_local_part + +localuser: + driver = accept + local_parts = userx + verify_only + + +# End diff --git a/test/confs/0085 b/test/confs/0085 new file mode 100644 index 000000000..c2a3ebe75 --- /dev/null +++ b/test/confs/0085 @@ -0,0 +1,57 @@ +# Exim test configuration 0085 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : \ + myhost.test.ex + + +# ----- Routers ----- + +begin routers + +smart1: + driver = manualroute + caseful_local_part + domains = smart.domain + local_parts = ${lookup{$domain}lsearch{DIR/aux-fixed/TESTNUM.data}{$value}} + route_list = * + senders = ${lookup{$domain}lsearch{DIR/aux-fixed/TESTNUM.data}{$value}} + verify_only + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + allow_fail + data = :fail: unrouteable mail domain "$domain" + +smart2: + driver = accept + domains = test.ex + local_parts = ${lookup{$domain}lsearch{DIR/aux-fixed/TESTNUM.data}{$value}} + require_files = ${lookup{$domain.files}lsearch{DIR/aux-fixed/TESTNUM.data}{$value}} + retry_use_local_part + senders = ${lookup{$domain}lsearch{DIR/aux-fixed/TESTNUM.data}{$value}} + transport = dummy + verify_only + + +# ----- Transports ----- + +begin transports + +dummy: + driver = appendfile + user = CALLER + + +# End diff --git a/test/confs/0086 b/test/confs/0086 new file mode 100644 index 000000000..eb78548e6 --- /dev/null +++ b/test/confs/0086 @@ -0,0 +1,27 @@ +# Exim test configuration 0086 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +acl_smtp_data = check_message + +recipient_unqualified_hosts = V4NET.10.10.9 + +# ----- ACL ----- + +begin acl + +check_message: + require verify = header_syntax + accept + +# End diff --git a/test/confs/0087 b/test/confs/0087 new file mode 100644 index 000000000..4000be1b1 --- /dev/null +++ b/test/confs/0087 @@ -0,0 +1,51 @@ +# Exim test configuration 0087 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + require verify = sender + accept domains = +local_domains + deny message = relay not permitted + +check_message: + require verify = header_sender + accept + + +# ----- Routers ----- + +begin routers + +defer: + driver = redirect + local_parts = defer + allow_defer + data = :defer: this is a forced defer + +localuser: + driver = accept + local_parts = userx + verify_only + + +# End diff --git a/test/confs/0088 b/test/confs/0088 new file mode 100644 index 000000000..ac956d35f --- /dev/null +++ b/test/confs/0088 @@ -0,0 +1,25 @@ +# Exim test configuration 0088 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +hosts_treat_as_local = ten-1.test.ex : ten-99.test.ex + + +# ----- Routers ----- + +begin routers + +lookuphost: + driver = dnslookup + verify_only + +# End diff --git a/test/confs/0089 b/test/confs/0089 new file mode 100644 index 000000000..f075fdf95 --- /dev/null +++ b/test/confs/0089 @@ -0,0 +1,78 @@ +# Exim test configuration 0089 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = Test.ex : myhost.test.EX +domainlist relay_domains = Test.ex : Relay.one.ex + +acl_smtp_rcpt = check_recipient + +helo_allow_chars = _ +helo_accept_junk_hosts = *N-99.test.ex +sender_unqualified_hosts = *N-99.test.EX + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +local_domains + accept domains = +relay_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +manual: + driver = manualroute + caseful_local_part + domains = ! +local_domains + local_parts = XYZ + route_list = * $domain byname + transport = dummy + +lookuphost: + driver = dnslookup + domains = ! +local_domains + verify_only + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + allow_fail + data = :fail: unrouteable mail domain "$domain" + +select: + driver = accept + local_parts = ABCD + retry_use_local_part + transport = dummy + +localuser: + driver = accept + local_parts = userx + transport = dummy + + +# ----- Transports ----- + +begin transports + +dummy: + driver = smtp + + +# End diff --git a/test/confs/0090 b/test/confs/0090 new file mode 100644 index 000000000..4cb868f65 --- /dev/null +++ b/test/confs/0090 @@ -0,0 +1,48 @@ +# Exim test configuration 0090 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +respond: + driver = accept + retry_use_local_part + senders = !: + transport = respond + +localuser: + driver = accept + check_local_user + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +respond: + driver = autoreply + text = This is an autogenerated message. + to = $sender_address + user = EXIMUSER + + +# End diff --git a/test/confs/0091 b/test/confs/0091 new file mode 100644 index 000000000..1c2e05781 --- /dev/null +++ b/test/confs/0091 @@ -0,0 +1,43 @@ +# Exim test configuration 0091 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message +domainlist local_domains = test.ex : *.test.ex + +# ----- ACL ----- + +begin acl + +check_recipient: + deny hosts = ! V4NET.0.0.1 + !verify = sender + accept domains = +local_domains + deny message = relay not permitted + +check_message: + require verify = header_sender + accept + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + verify_only + + +# End diff --git a/test/confs/0092 b/test/confs/0092 new file mode 100644 index 000000000..c58115939 --- /dev/null +++ b/test/confs/0092 @@ -0,0 +1,63 @@ +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex : *.test.ex + +domainlist relay_domains = test.ex + +# Exim test configuration 0092 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +smtp_receive_timeout = 2s +receive_timeout = 2s + + +begin acl + +check_recipient: + accept hosts = : + deny message = unrouteable address + recipients = verify@test.ex + !verify = recipient + accept domains = +local_domains + accept domains = +relay_domains + deny message = relay not permitted + +check_message: + accept + + +# ----- Rewrite ----- + +# End + + + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + +# ----- Directors ----- + +forward: + driver = redirect + file = DIR/aux-fixed/non-exist + retry_use_local_part + +# End diff --git a/test/confs/0093 b/test/confs/0093 new file mode 100644 index 000000000..8d178ff79 --- /dev/null +++ b/test/confs/0093 @@ -0,0 +1,15 @@ +# Exim test configuration 0093 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# End diff --git a/test/confs/0094 b/test/confs/0094 new file mode 100644 index 000000000..f03987c34 --- /dev/null +++ b/test/confs/0094 @@ -0,0 +1,56 @@ +# Exim test configuration 0094 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +acl_smtp_rcpt = check_recipient +domainlist local_domains = test.ex + +hostlist relay_hosts = *.masq.test.ex + +host_lookup = 0.0.0.0/0 + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +local_domains + accept hosts = +relay_hosts + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = host_lookup_failed: $host_lookup_failed\n\ + host_lookup_deferred: $host_lookup_deferred + user = CALLER + + +# End diff --git a/test/confs/0095 b/test/confs/0095 new file mode 100644 index 000000000..1bd71acaa --- /dev/null +++ b/test/confs/0095 @@ -0,0 +1,71 @@ +# Exim test configuration 0095 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +usery: + driver = accept + local_parts = usery + retry_use_local_part + transport = appendfile2 + +userz: + driver = accept + local_parts = userz + retry_use_local_part + transport = appendfile3 + +localuser: + driver = accept + local_parts = userx + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + quota = $h_quota + quota_warn_threshold = $h_threshold + user = CALLER + +appendfile2: + driver = appendfile + file = DIR/test-mail/$local_part + quota = $h_quota + quota_warn_threshold = $h_threshold + user = CALLER + +appendfile3: + driver = appendfile + file = DIR/test-mail/$local_part${if eq{$sender_address}{}{.bounce}} + quota_warn_threshold = $h_threshold + user = CALLER + headers_add = X:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0096 b/test/confs/0096 new file mode 100644 index 000000000..1ee9b746f --- /dev/null +++ b/test/confs/0096 @@ -0,0 +1,49 @@ +# Exim test configuration 0096 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + headers_add = "${if def:h_x-rbl-warning: {Added: xxxx}fail}" + headers_remove = "${if def:h_x-rbl-warning: {subject}fail}" + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,2d,15m + + +# End diff --git a/test/confs/0097 b/test/confs/0097 new file mode 100644 index 000000000..c8e773fc2 --- /dev/null +++ b/test/confs/0097 @@ -0,0 +1,51 @@ +# Exim test configuration 0097 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + headers_add = "${if def:h_x-rbl-warning: {Added: by router}}" + headers_remove = "${if def:h_x-rbl-warning: {subject}}" + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + headers_add = "${if def:h_tadd: {Added: by transport}}" + headers_remove = "${if def:h_tadd: {tadd}}" + return_path_add + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,2d,15m + + +# End diff --git a/test/confs/0098 b/test/confs/0098 new file mode 100644 index 000000000..deec607e9 --- /dev/null +++ b/test/confs/0098 @@ -0,0 +1,94 @@ +# Exim test configuration 0098 + +WMF= + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +domainlist local_domains = test.ex : another.test.ex + +delay_warning = 10s:40s:10m +delay_warning_condition = ${if !eq{$domain}{another.test.ex}{yes}{no}} + +log_selector = +subject + +queue_run_in_order + +WMF + + +# ----- Routers ----- + +begin routers + +refused: + driver = manualroute + domains = ! +local_domains + route_list = connection.refused 127.0.0.1 byname + self = send + transport = smtp_connect_refused + +# The IP address is deliberately V4NET.0.0.1 so as to be unreachable +all: + driver = manualroute + domains = ! +local_domains + route_list = * V4NET.0.0.1 byname + transport = smtp + no_more + +alias: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + retry_use_local_part + +userforward: + driver = redirect + allow_filter + user = CALLER + file = DIR/aux-fixed/TESTNUM.forward + +localuser: + driver = accept + local_parts = userx : CALLER + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +smtp: + driver = smtp + connect_timeout = 1s + +smtp_connect_refused: + driver = smtp + port = PORT_N + + +# ----- Retry ----- + +begin retry + +connection.refused * F,2d,3s +* * F,2d,15m + +# End diff --git a/test/confs/0099 b/test/confs/0099 new file mode 100644 index 000000000..e35ad5fcf --- /dev/null +++ b/test/confs/0099 @@ -0,0 +1,59 @@ +# Exim test configuration 0099 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = primary.test.ex +qualify_domain = test.ex +retry_data_expire = 2s + + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + route_list = "* 127.0.0.1 byname" + self = send + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = 999 + + +# ----- Retry ----- + +begin retry + +* * senders=: G,1d,1m,1.5 +* * senders = "a@b.c : d@e.f" G,2d,2m,1.5 + +rcpt45x.test.ex rcpt_45x F,10d,2m +rcpt463.test.ex rcpt_463 F,10d,3m +rcpt4xx.test.ex rcpt_4xx F,10d,1m + +*@\N^\d * F,5d,1m +*@*.abcd.ex * F,5d,2m +*@literal.ex * F,5d,3m +*@lsearch;DIR/aux-fixed/TESTNUM.rlist2 * F,5d,4m +*@@[] * F,5d,5m +*@@ * F,5d,6m +lsearch*@;DIR/aux-fixed/TESTNUM.rlist * F,1d,3m +*.star.ex * F,3d,10m +* * F,2d,15m + +# End diff --git a/test/confs/0100 b/test/confs/0100 new file mode 100644 index 000000000..948d807c1 --- /dev/null +++ b/test/confs/0100 @@ -0,0 +1,158 @@ +# Exim test configuration 0100 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex + +# ----- Routers ----- + +begin routers + +filtered: + driver = manualroute + domains = ! +local_domains + route_list = filtered.com 127.0.0.1 byname + self = send + transport = filtered_smtp + +rest: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + +batch_localuser: + driver = accept + local_part_prefix = batch- + transport = batch_local_delivery + +mmdf_localuser: + driver = accept + local_part_prefix = mmdf- + transport = mmdf_local_delivery + +filtered_localuser: + driver = accept + local_part_prefix = filter- + transport = filtered_local_delivery + +hackfree_localuser: + driver = accept + local_parts = usery + transport = hackfree_local_delivery + +bsmtp_localuser: + driver = accept + local_parts = userz + transport = bsmtp_local_delivery + +bsmtp_localuser_filtered: + driver = accept + local_parts = userw + retry_use_local_part + transport = bsmtp_local_delivery_filtered + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + +filtered_smtp: + driver = smtp + port = PORT_S + transport_filter = /bin/sh -c "echo 'X-Filtered: just checking'; cat" + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + current_directory = / + user = CALLER + +hackfree_local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + check_string = + return_path_add + user = CALLER + current_directory = / + +bsmtp_local_delivery: + driver = appendfile + batch_max = 100 + use_bsmtp + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + current_directory = / + +bsmtp_local_delivery_filtered: + driver = appendfile + batch_max = 100 + use_bsmtp + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + transport_filter = /bin/sh -c "echo 'X-Filtered: just checking'; cat" + user = CALLER + current_directory = / + +batch_local_delivery: + driver = appendfile + batch_max = 100 + delivery_date_add + envelope_to_add + file = DIR/test-mail/CALLER + return_path_add + user = CALLER + current_directory = / + +filtered_local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + transport_filter = /bin/sh -c "echo 'X-Filtered: just checking'; cat" + current_directory = / + user = CALLER + +mmdf_local_delivery: + driver = appendfile + check_string = "\1\1\1\1\n" + escape_string = "\1\1\1\1 \n" + file = DIR/test-mail/$local_part + message_prefix = "\1\1\1\1\n" + message_suffix = "\1\1\1\1\n" + user = CALLER + current_directory = / + +# End diff --git a/test/confs/0101 b/test/confs/0101 new file mode 100644 index 000000000..7d88395b9 --- /dev/null +++ b/test/confs/0101 @@ -0,0 +1,97 @@ +# Exim test configuration 0101 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + +mmdf_localuser: + driver = accept + local_part_prefix = mmdf- + transport = mmdf_local_delivery + +filtered_localuser: + driver = accept + local_part_prefix = filter- + transport = filtered_local_delivery + +bsmtp_localuser: + driver = accept + local_parts = userz + transport = bsmtp_local_delivery + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + +local_delivery: + driver = pipe + check_string = "From " + command = /bin/sh -c 'cat >>DIR/test-mail/$local_part' + escape_string = ">From " + user = CALLER + current_directory = / + +bsmtp_local_delivery: + driver = pipe + use_bsmtp + command = /bin/sh -c 'cat >>DIR/test-mail/$local_part' + delivery_date_add + envelope_to_add + return_path_add + user = CALLER + current_directory = / + +filtered_local_delivery: + driver = pipe + command = /bin/sh -c 'cat >>DIR/test-mail/$local_part' + delivery_date_add + envelope_to_add + return_path_add + transport_filter = /bin/sh -c "echo 'X-Filtered: just checking'; cat" + user = CALLER + current_directory = / + +mmdf_local_delivery: + driver = pipe + check_string = "\1\1\1\1\n" + command = /bin/sh -c 'cat >>DIR/test-mail/$local_part' + escape_string = "\1\1\1\1 \n" + message_prefix = "\1\1\1\1\n" + message_suffix = "\1\1\1\1\n" + user = CALLER + current_directory = / + +# End diff --git a/test/confs/0102 b/test/confs/0102 new file mode 100644 index 000000000..dd17eb840 --- /dev/null +++ b/test/confs/0102 @@ -0,0 +1,92 @@ +# Exim test configuration 0102 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +batch: + driver = accept + local_part_prefix = batch- + retry_use_local_part + transport = batch_bsmtp1 + +localuser: + driver = accept + local_part_prefix = bsmtp_ : mmdf_ + local_part_prefix_optional + retry_use_local_part + transport = ${local_part_prefix}local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + file_format = "From : local_delivery :\ + MAIL : bsmtp_local_delivery :\ + \1\1\1\1\n : mmdf_local_delivery :\ + tpmissing : tpmissing" + return_path_add + user = CALLER + +bsmtp_local_delivery: + driver = appendfile + batch_max = 100 + use_bsmtp + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +mmdf_local_delivery: + driver = appendfile + check_string = "\1\1\1\1\n" + escape_string = "\1\1\1\1 \n" + file = DIR/test-mail/$local_part + message_prefix = "\1\1\1\1\n" + message_suffix = "\1\1\1\1\n" + user = CALLER + +batch_bsmtp1: + driver = appendfile + batch_max = 100 + use_bsmtp + file = DIR/test-mail/batched + file_format = "MAIL : batch_bsmtp2" + user = CALLER + +batch_bsmtp2: + driver = appendfile + batch_max = 100 + use_bsmtp + file = DIR/test-mail/batched + user = CALLER + +# ----- Retry ----- + +begin retry + +* * F,2d,2d + +# End diff --git a/test/confs/0103 b/test/confs/0103 new file mode 100644 index 000000000..7e459b427 --- /dev/null +++ b/test/confs/0103 @@ -0,0 +1,71 @@ +# Exim test configuration 0103 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : special +log_selector = +all_parents +qualify_domain = test.ex + + +# ----- Rewrite ----- + +begin rewrite + +\N^WAS...@x\.y\.zwas$ rewritten@x.y.z + + +# ----- Routers ----- + +begin routers + +special: + driver = redirect + allow_defer + allow_fail + data = $local_part + domains = special + retry_use_local_part + +accept: + driver = accept + local_parts = CALLER : wasabcwas : rewritten + retry_use_local_part + transport = appendfile + +test_no_rewrite: + driver = redirect + data = WAS${local_part}WAS + local_parts = abc@x.y.z + no_rewrite + +test_rewrite: + driver = redirect + data = WAS${local_part}WAS + local_parts = xyz@x.y.z + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5d,1d + +# End diff --git a/test/confs/0104 b/test/confs/0104 new file mode 100644 index 000000000..cef5303c0 --- /dev/null +++ b/test/confs/0104 @@ -0,0 +1,56 @@ +# Exim test configuration 0104 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex : n.t +qualify_domain = test.ex + + +# ----- Rewrite ----- + +begin rewrite + +a.b@p.q yyy@test.ex + +# End + + +# ----- Routers ----- + +begin routers + +lookuphost: + driver = dnslookup + domains = ! +local_domains + transport = appendfile + widen_domains = test.ex + no_more + +all: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0105 b/test/confs/0105 new file mode 100644 index 000000000..bdf0eddae --- /dev/null +++ b/test/confs/0105 @@ -0,0 +1,54 @@ +# Exim test configuration 0105 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +userlist: + driver = accept + condition = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.list}} + retry_use_local_part + transport = local_delivery + +default: + driver = redirect + data = default@$domain + redirect_router = default_part2 + retry_use_local_part + +default_part2: + driver = accept + condition = ${if eq{$local_part@$domain}{default@$domain}{yes}{no}} + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +# End diff --git a/test/confs/0106 b/test/confs/0106 new file mode 100644 index 000000000..d58ddea98 --- /dev/null +++ b/test/confs/0106 @@ -0,0 +1,46 @@ +# Exim test configuration 0106 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + route_list = * 127.0.0.1 + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + command_timeout = 1s + final_timeout = 1s + port = PORT_S + +# ----- Retry ----- + + +begin retry + +* * F,1h,1s + + +# End diff --git a/test/confs/0107 b/test/confs/0107 new file mode 100644 index 000000000..aba16e8d2 --- /dev/null +++ b/test/confs/0107 @@ -0,0 +1,47 @@ +# Exim test configuration 0107 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +mboxuser: + driver = accept + retry_use_local_part + transport = appendfile + transport_home_directory = DIR/test-mail + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + create_file = belowhome + file = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.filelist}\ + {${if match{$value}{^/}{}{DIR/}}$value}\ + {DIR/test-mail/$local_part}} + user = CALLER + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0108 b/test/confs/0108 new file mode 100644 index 000000000..18ae75895 --- /dev/null +++ b/test/confs/0108 @@ -0,0 +1,42 @@ +# Exim test configuration 0108 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex +qualify_domain = test.ex + +remote_sort_domains = black.com:myhost.com:other.edu + + +# ----- Routers ----- + +begin routers + +remote: + driver = manualroute + domains = ! +local_domains + route_list = * ten-1.test.ex byname + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# End diff --git a/test/confs/0109 b/test/confs/0109 new file mode 100644 index 000000000..9f86679d0 --- /dev/null +++ b/test/confs/0109 @@ -0,0 +1,47 @@ +# Exim test configuration 094 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +remote: + driver = manualroute + fallback_hosts = HOSTIPV4 + route_list = * 127.0.0.1 + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_N + allow_localhost + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0110 b/test/confs/0110 new file mode 100644 index 000000000..c6ff8c3ed --- /dev/null +++ b/test/confs/0110 @@ -0,0 +1,64 @@ +# Exim test configuration 0110 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +deliver: + driver = accept + condition = ${if eq{$original_local_part}{second}{yes}{no}} + retry_use_local_part + transport = appendfile + +first: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + forbid_file + forbid_pipe + one_time + retry_use_local_part + +second: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + retry_use_local_part + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0111 b/test/confs/0111 new file mode 100644 index 000000000..0af1b33ac --- /dev/null +++ b/test/confs/0111 @@ -0,0 +1,55 @@ +# Exim test configuration 0111 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +alias: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + errors_to = postmaster@test.ex + headers_add = X-Alias: $local_part + retry_use_local_part + +forward: + driver = redirect + check_ancestor + no_check_local_user + file = DIR/aux-fixed/TESTNUM.forward + headers_add = X-Forward: $local_part + headers_remove = Remove + retry_use_local_part + +deliver: + driver = accept + local_parts = userx : postmaster + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + envelope_to_add + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0112 b/test/confs/0112 new file mode 100644 index 000000000..2598c9277 --- /dev/null +++ b/test/confs/0112 @@ -0,0 +1,46 @@ +# Exim test configuration 0112 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +alias: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-var/TESTNUM.alias}} + file_transport = appendfile + pipe_transport = pipe + retry_use_local_part + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + user = CALLER + +pipe: + driver = pipe + user = CALLER + + +# End diff --git a/test/confs/0113 b/test/confs/0113 new file mode 100644 index 000000000..c3f63d0ec --- /dev/null +++ b/test/confs/0113 @@ -0,0 +1,65 @@ +# Exim test configuration 0113 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +deliver: + driver = accept + condition = ${if eq{$original_local_part}{second}{yes}{no}} + retry_use_local_part + transport = appendfile + +first: + driver = redirect + no_check_local_user + file = DIR/aux-fixed/TESTNUM.forward + forbid_file + forbid_pipe + local_parts = first + one_time + retry_use_local_part + +second: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + retry_use_local_part + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0114 b/test/confs/0114 new file mode 100644 index 000000000..7e4a47cac --- /dev/null +++ b/test/confs/0114 @@ -0,0 +1,56 @@ +# Exim test configuration 0114 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +forward: + driver = redirect + allow_filter + no_check_local_user + file = DIR/aux-var/TESTNUM.filter + file_transport = appendfile + pipe_transport = pipe + reply_transport = reply + retry_use_local_part + user = CALLER + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + user = CALLER + +pipe: + driver = pipe + user = CALLER + +reply: + driver = autoreply + user = CALLER + initgroups + + +# ----- Retry ----- + +begin retry + +* * F,5d,1d + +# End diff --git a/test/confs/0115 b/test/confs/0115 new file mode 100644 index 000000000..1cf1197f3 --- /dev/null +++ b/test/confs/0115 @@ -0,0 +1,74 @@ +# Exim test configuration 0115 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +forward1: + driver = redirect + file = DIR/aux-var/TESTNUM.forward + file_transport = appendfile + local_parts = userx + local_part_prefix = one- + transport_home_directory = DIR/aux-fixed + +forward2: + driver = redirect + file = DIR/aux-var/TESTNUM.forward + file_transport = appendfile + local_parts = userx + local_part_prefix = two- + transport_home_directory = /tmp + +forward3: + driver = redirect + file = DIR/aux-var/TESTNUM.forward + file_transport = appendfile + local_parts = userx + local_part_prefix = three- + +forward: + driver = redirect + allow_filter + local_parts = userx + file = DIR/aux-var/TESTNUM.forward + file_transport = appendfile + user = CALLER + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + headers_add = Home-Dir: $home + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0116 b/test/confs/0116 new file mode 100644 index 000000000..42752c357 --- /dev/null +++ b/test/confs/0116 @@ -0,0 +1,72 @@ +# Exim test configuration 0116 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +copydeliver: + driver = accept + local_parts = dcopy + retry_use_local_part + transport = appendfile + address_data = data from copydeliver + unseen + +copyalias: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + local_parts = acopy + retry_use_local_part + address_data = data from copyalias + unseen = ${if eq {0}{0}{yes}{no}} + +alias: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + local_parts = defer + retry_use_local_part + unseen = ${if eq {0}{1}{yes}{no}} + +deliver: + driver = accept + retry_use_local_part + transport = appendfile + unseen = ${if eq {0}{1}{yes}{no}} + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + headers_add = Added: $address_data + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0117 b/test/confs/0117 new file mode 100644 index 000000000..b9d57cf8a --- /dev/null +++ b/test/confs/0117 @@ -0,0 +1,24 @@ +# Exim test configuration 0117 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +lookuphost: + driver = dnslookup + verify_only + + +# End diff --git a/test/confs/0118 b/test/confs/0118 new file mode 100644 index 000000000..f8d42682f --- /dev/null +++ b/test/confs/0118 @@ -0,0 +1,61 @@ +# Exim test configuration 0118 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +first: + driver = redirect + allow_defer + condition = ${if first_delivery{yes}{no}} + data = :defer: force defer on first delivery + retry_use_local_part + +second: + driver = redirect + allow_defer + condition = ${if queue_running{no}{yes}} + data = :defer: force defer on non-queue run + retry_use_local_part + +third: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0119 b/test/confs/0119 new file mode 100644 index 000000000..337920d98 --- /dev/null +++ b/test/confs/0119 @@ -0,0 +1,38 @@ +# Exim test configuration 0119 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +force_defer: + driver = redirect + allow_defer + data = :defer: forced defer + retry_use_local_part + + +# ----- Retry ----- + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0120 b/test/confs/0120 new file mode 100644 index 000000000..85c6b883b --- /dev/null +++ b/test/confs/0120 @@ -0,0 +1,56 @@ +# Exim test configuration 0120 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +blackhole: + driver = redirect + allow_defer + allow_fail + data = :blackhole: + local_parts = CALLER + retry_use_local_part + +force_defer: + driver = redirect + allow_defer + allow_fail + condition = ${if < {$message_age}{2}{yes}{no}} + data = :defer: forced defer + retry_use_local_part + +force_fail: + driver = redirect + allow_defer + allow_fail + data = :fail: forced fail after $message_age seconds + retry_use_local_part + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0121 b/test/confs/0121 new file mode 100644 index 000000000..298477092 --- /dev/null +++ b/test/confs/0121 @@ -0,0 +1,71 @@ +# Exim test configuration 0121 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex +domainlist relay_domains = test.ex +qualify_domain = test.ex + + +# ----- ACL ----- + +begin acl + +check_recipient: + require verify = sender + accept domains = +local_domains + accept domains = +relay_domains + deny message = relay not permitted + +check_message: + require verify = header_sender + accept + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + allow_fail + data = :fail: unrouteable mail domain "$domain" + +defer: + driver = redirect + allow_defer + allow_fail + data = :defer: forced defer + local_parts = defer + retry_use_local_part + +userx: + driver = accept + local_parts = userx + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0122 b/test/confs/0122 new file mode 100644 index 000000000..44d1a4c02 --- /dev/null +++ b/test/confs/0122 @@ -0,0 +1,22 @@ +# Exim test configuration 0122 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex +qualify_domain = test.ex + +system_filter = DIR/aux-fixed/TESTNUM.filter + + +# End diff --git a/test/confs/0123 b/test/confs/0123 new file mode 100644 index 000000000..501af37ad --- /dev/null +++ b/test/confs/0123 @@ -0,0 +1,63 @@ +# Exim test configuration 0123 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex +qualify_domain = test.ex + +lookup_open_max = 2 + + +# ----- Routers ----- + +begin routers + +l1: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases1}} + retry_use_local_part + +l2: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases2}} + retry_use_local_part + +l3: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases3}} + retry_use_local_part + +c1: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases4}} + retry_use_local_part + +c2: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases5}} + retry_use_local_part + +c3: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases6}} + retry_use_local_part + +# End diff --git a/test/confs/0124 b/test/confs/0124 new file mode 100644 index 000000000..33ea902bc --- /dev/null +++ b/test/confs/0124 @@ -0,0 +1,31 @@ +# Exim test configuration 0124 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +domainlist local_domains = test.ex +hostlist relay_hosts = *.friendly.test.ex +qualify_domain = test.ex + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +local_domains + accept hosts = +relay_hosts + deny message = relay not permitted + + +# End diff --git a/test/confs/0125 b/test/confs/0125 new file mode 100644 index 000000000..3ad7297f2 --- /dev/null +++ b/test/confs/0125 @@ -0,0 +1,15 @@ +# Exim test configuration 0125 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# End diff --git a/test/confs/0126 b/test/confs/0126 new file mode 100644 index 000000000..226ba04f2 --- /dev/null +++ b/test/confs/0126 @@ -0,0 +1,27 @@ +# Exim test configuration 0126 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +test: + driver = redirect + allow_defer + data = postmaster@test.ex + retry_use_local_part + senders = "^\\$" + + +# End diff --git a/test/confs/0127 b/test/confs/0127 new file mode 100644 index 000000000..9493d33e1 --- /dev/null +++ b/test/confs/0127 @@ -0,0 +1,53 @@ +# Exim test configuration 0127 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +local_sender_retain +no_local_from_check + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# ----- Retry ----- + + +# End diff --git a/test/confs/0128 b/test/confs/0128 new file mode 100644 index 000000000..53ecd84b2 --- /dev/null +++ b/test/confs/0128 @@ -0,0 +1,61 @@ +# Exim test configuration 0128 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +reply: + driver = accept + retry_use_local_part + senders = ! + transport = reply + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +reply: + driver = autoreply + once = DIR/spool + text = "Test auto reply to ${escape:$h_subject:}" + to = $reply_address + user = EXIMUSER +# This file should fail to open + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,1d,15m + + +# End diff --git a/test/confs/0129 b/test/confs/0129 new file mode 100644 index 000000000..1d6641d92 --- /dev/null +++ b/test/confs/0129 @@ -0,0 +1,37 @@ +# Exim test configuration 0129 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + allow_fail + data = :fail: unrouteable mail domain "$domain" + +checking: + driver = redirect + allow_defer + allow_fail + data = :fail: Just testing + debug_print = Domain data is "$domain_data" + domains = lsearch;DIR/aux-fixed/TESTNUM.domains + retry_use_local_part + + +# End diff --git a/test/confs/0130 b/test/confs/0130 new file mode 100644 index 000000000..3a81fe2dc --- /dev/null +++ b/test/confs/0130 @@ -0,0 +1,61 @@ +# Exim test configuration 0130 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +acl_smtp_rcpt = check_recipient + +domainlist local_domains = test.ex +hostlist relay_hosts = V4NET.0.0.0 +qualify_domain = test.ex + + +# ----- ACL ----- + +begin acl + +check_recipient: + deny message = unrouteable address + !verify = recipient + accept domains = +local_domains + accept hosts = +relay_hosts + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +islocal: + driver = manualroute + domains = ! +local_domains + route_list = "* localhost byname" + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# ----- Retry ----- + + +begin retry + +* * F,1d,15m + + +# End diff --git a/test/confs/0131 b/test/confs/0131 new file mode 100644 index 000000000..460056972 --- /dev/null +++ b/test/confs/0131 @@ -0,0 +1,64 @@ +# Exim test configuration 0131 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +islocal: + driver = manualroute + domains = ! +local_domains + route_list = * localhost byname + self = pass + no_more + address_data = $address_data-islocal + +forward: + driver = redirect + allow_filter + no_check_local_user + file = DIR/aux-fixed/TESTNUM.$local_part + retry_use_local_part + user = CALLER + address_data = $address_data-forward + +local: + driver = accept + retry_use_local_part + transport = appendfile + address_data = $address_data-local + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + headers_add = Address-Data: >$address_data< + + +# ----- Retry ----- + + +begin retry + +* * F,1d,15m + + +# End diff --git a/test/confs/0132 b/test/confs/0132 new file mode 100644 index 000000000..3b4239216 --- /dev/null +++ b/test/confs/0132 @@ -0,0 +1,46 @@ +# Exim test configuration 0132 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +local: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + allow_fifo + file = DIR/test-fifo + user = CALLER + initgroups + + +# ----- Retry ----- + + +begin retry + +* * F,1d,15m + + +# End diff --git a/test/confs/0133 b/test/confs/0133 new file mode 100644 index 000000000..11b2ab3d9 --- /dev/null +++ b/test/confs/0133 @@ -0,0 +1,62 @@ +# Exim test configuration 0133 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex: *.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +local: + driver = accept + headers_add = Final: $local_part@$domain + local_parts = dddd + retry_use_local_part + transport = appendfile + +rename1: + driver = redirect + allow_defer + data = dddd + local_parts = userx + qualify_preserve_domain + retry_use_local_part + +rename2: + driver = redirect + allow_defer + data = dddd + retry_use_local_part + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + envelope_to_add + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,1d,15m + + +# End diff --git a/test/confs/0134 b/test/confs/0134 new file mode 100644 index 000000000..607c7613c --- /dev/null +++ b/test/confs/0134 @@ -0,0 +1,93 @@ +# Exim test configuration 0134 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex: *.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +topipe: + driver = accept + caseful_local_part + retry_use_local_part + domains = pipe.domain + local_parts = PIPE + transport = pipe + +domainlist: + driver = manualroute + caseful_local_part + domains = lsearch;DIR/aux-fixed/TESTNUM.listR + headers_add = "domainlist: dd=$domain_data lpd=$local_part_data" + local_parts = lsearch;DIR/aux-fixed/TESTNUM.listR + route_list = * + transport = appendfile + +default1: + driver = manualroute + domains = ! +local_domains + route_list = * + transport = appendfile + no_more + +smartuser: + driver = accept + domains = lsearch;DIR/aux-fixed/TESTNUM.listD + headers_add = "smartuser: dd=$domain_data lpd=$local_part_data" + local_parts = lsearch;DIR/aux-fixed/TESTNUM.listD + retry_use_local_part + transport = appendfile + +default2: + driver = accept + headers_add = router: defaulted + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +# We want local parts with different casing to be different, but this goes +# wrong on file systems that are not case-dependent. So fudge the file names +# by steam - an lsearch lookup is no good because it is case-independent. + +appendfile: + driver = appendfile + user = CALLER + headers_add = "domain_data: $domain_data\n\ + local_part_data: $local_part_data" + file = DIR/test-mail/\ + ${if eq {$local_part}{unknown}{lc-unknown}{\ + ${if eq {$local_part}{USERX}{UC-USERX}{\ + ${if eq {$local_part}{userx}{lc-userx}{\ + $local_part}}}}}} + +pipe: + driver = pipe + command = /bin/sh -c "echo $local_part $domain >DIR/test-mail/$local_part" + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,1d,15m + + +# End diff --git a/test/confs/0135 b/test/confs/0135 new file mode 100644 index 000000000..233d48b4c --- /dev/null +++ b/test/confs/0135 @@ -0,0 +1,79 @@ +# Exim test configuration 0135 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex +ignore_bounce_errors_after = 0s +admin_groups = CALLER +remote_max_parallel = 1 + + +# ----- Routers ----- + +begin routers + +default: + driver = manualroute + domains = ! +local_domains + route_list = "known.ex V4NET.0.0.0 byname;\ + * V4NET.0.0.1 byname" + transport = smtp + no_more + +null: + driver = redirect + allow_defer + condition = ${if eq {$sender_address}{}{yes}{no}} + data = :blackhole: + retry_use_local_part + +smart: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + connect_timeout = 1s + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + quota = 20 + user = CALLER + + +# ----- Retry ----- + +# Note that these retry rules are not sensible! However, they serve to make +# Exim behave as required in order to run this test. It does not normally make +# sense to have the time limit on the second rule shorter than the first, +# because that means the second rule will never actually be used for retries. +# However, Exim uses the time limit on the final rule to check for the ultimate +# address retry, so what we have here is a total kludge! + +begin retry + +d@test.ex quota F,1d,15m; F,7s,1s +* quota F,1h,10s; F,1s,1s +known.ex * F,1h,10s; F,1s,1s +special * F,30d,1h +* * F,1d,15m; F,8s,1s + + +# End diff --git a/test/confs/0136 b/test/confs/0136 new file mode 100644 index 000000000..7e0cfdad3 --- /dev/null +++ b/test/confs/0136 @@ -0,0 +1,83 @@ +# Exim test configuration 0136 + +BRB=true + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = check_recipient +bounce_return_body = BRB +qualify_domain = test.ex +ignore_bounce_errors_after = 0s +trusted_users = CALLER + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept hosts = : + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + allow_fail + data = :fail: unrouteable mail domain "$domain" (:fail:) + +forward: + driver = redirect + allow_filter + user = CALLER + no_check_local_user + file = DIR/aux-fixed/TESTNUM.filter + local_parts = forwarder : forwarder2 + retry_use_local_part + +unknown: + driver = redirect + allow_defer + allow_fail + data = :fail: Address unknown (:fail:) + local_parts = unknown + retry_use_local_part + +smart: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * + + +# End diff --git a/test/confs/0137 b/test/confs/0137 new file mode 100644 index 000000000..b69bf640b --- /dev/null +++ b/test/confs/0137 @@ -0,0 +1,63 @@ +# Exim test configuration 0137 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +smart: + driver = accept + retry_use_local_part + transport = $h_transport: + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + lock_interval = 1s + lock_retries = 2 + user = CALLER + +local_delivery_fcntl: + driver = appendfile + file = DIR/test-mail/$local_part + lock_interval = 1s + lock_retries = 2 + no_use_lockfile + user = CALLER + +local_delivery_fcntl_blocking: + driver = appendfile + file = DIR/test-mail/$local_part + lock_fcntl_timeout = 2s + lock_interval = 1s + lock_retries = 2 + no_use_lockfile + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,4d,4d + + +# End diff --git a/test/confs/0138 b/test/confs/0138 new file mode 100644 index 000000000..521dcd759 --- /dev/null +++ b/test/confs/0138 @@ -0,0 +1,73 @@ +# Exim test configuration 0138 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +domainlist local_domains = exim.test.ex + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept recipients = postmaster@exim.test.ex + accept dnslists = rbl3.test.ex + deny message = host is listed in $dnslist_domain + dnslists = rbl2.test.ex + warn message = X-Warning: $sender_host_address is listed at $dnslist_domain + dnslists = rbl.test.ex + require verify = sender + deny message = unrouteable address + !verify = recipient + accept domains = +local_domains + accept domains = +relay_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +system_aliases: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + qualify_preserve_domain + retry_use_local_part + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +file: + driver = appendfile + user = CALLER + + +# ----- Retry ----- + +# End diff --git a/test/confs/0139 b/test/confs/0139 new file mode 100644 index 000000000..3c4db8535 --- /dev/null +++ b/test/confs/0139 @@ -0,0 +1,75 @@ +# Exim test configuration 0139 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = exim.test.ex + +acl_smtp_rcpt = check_recipient +acl_smtp_mail = check_mail + +# ------ ACL ------ + +begin acl + +check_mail: + warn dnslists = rbl4.test.ex&0.0.0.6 + warn dnslists = rbl4.test.ex&127.0.0.3 + warn dnslists = rbl4.test.ex!&0.0.0.7 + accept + +check_recipient: + warn message = X-Warn: host is listed in $dnslist_domain but not =127.0.0.3\ + ${if def:dnslist_text{\n $dnslist_text}} + dnslists = rbl3.test.ex!=127.0.0.3 + deny message = host is listed in $dnslist_domain with value 127.0.0.3\ + ${if def:dnslist_text{\n$dnslist_text}} + dnslists = rbl3.test.ex=127.0.0.3 + require verify = sender + deny message = unrouteable address + !verify = recipient + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +system_aliases: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + qualify_preserve_domain + retry_use_local_part + +localuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +file: + driver = appendfile + user = CALLER + +# End diff --git a/test/confs/0140 b/test/confs/0140 new file mode 100644 index 000000000..b228ba5dc --- /dev/null +++ b/test/confs/0140 @@ -0,0 +1,58 @@ +# Exim test configuration 0140 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +caller: + driver = accept + local_parts = CALLER + retry_use_local_part + transport = local_delivery + +reply: + driver = accept + retry_use_local_part + senders = ! + transport = $local_part + + +# ----- Transports ----- + +begin transports + +reply1: + driver = autoreply + text = "Test auto reply to $h_subject:\nthis is another line" + to = Reply Person <$sender_address> + user = EXIMUSER + +reply2: + driver = autoreply + subject = "Re: $h_subject:" + to = $reply_address + user = EXIMUSER + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# End diff --git a/test/confs/0141 b/test/confs/0141 new file mode 100644 index 000000000..7ae9a7029 --- /dev/null +++ b/test/confs/0141 @@ -0,0 +1,37 @@ +# Exim test configuration 0141 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +ignore_bounce_errors_after = 0s + + +# ----- Routers ----- + +begin routers + +ok: + driver = redirect + allow_defer + allow_fail + condition = ${if match{$received_protocol}{^prot\\d\$}{1}{0}} + data = :fail: Forced failure + retry_use_local_part + + +# ----- Retry ----- + +begin retry + +* * F,1d,15m + + +# End diff --git a/test/confs/0142 b/test/confs/0142 new file mode 100644 index 000000000..1736e9a1b --- /dev/null +++ b/test/confs/0142 @@ -0,0 +1,60 @@ +# Exim test configuration 0142 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +pipe: + driver = accept + local_parts = pipe + retry_use_local_part + transport = pipe + +filter: + driver = accept + local_parts = filter + retry_use_local_part + transport = filtered_delivery + +other: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +pipe: + driver = pipe + command = DIR/bin/fd + return_output + user = CALLER + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +filtered_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + transport_filter = DIR/bin/fd -f + user = CALLER + +# End diff --git a/test/confs/0143 b/test/confs/0143 new file mode 100644 index 000000000..c853c8072 --- /dev/null +++ b/test/confs/0143 @@ -0,0 +1,40 @@ +# Exim test configuration 0143 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + interface = HOSTIPV4 + port = PORT_S + + +# End diff --git a/test/confs/0144 b/test/confs/0144 new file mode 100644 index 000000000..a0b6860a9 --- /dev/null +++ b/test/confs/0144 @@ -0,0 +1,45 @@ +# Exim test configuration 0144 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + + +# ----- Routers ----- + +begin routers + +domainlist: + driver = manualroute + domains = ! +local_domains + route_list = * test.again.dns bydns + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# ----- Retry ----- + +begin retry + +* * F,1h,10m + + +# End diff --git a/test/confs/0145 b/test/confs/0145 new file mode 100644 index 000000000..ed7b7bf86 --- /dev/null +++ b/test/confs/0145 @@ -0,0 +1,53 @@ +# Exim test configuration 0145 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + + +# ------ ACL ------ + +begin acl + +check_recipient: + require verify = sender + require verify = recipient + + +# ----- Routers ----- + +begin routers + +domainlist: + driver = dnslookup + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# ----- Retry ----- + + +begin retry + +* * F,1h,10m + + +# End diff --git a/test/confs/0146 b/test/confs/0146 new file mode 100644 index 000000000..34235d101 --- /dev/null +++ b/test/confs/0146 @@ -0,0 +1,37 @@ +# Exim test configuration 0146 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +allow_mx_to_ip + + +# ----- Routers ----- + +begin routers + +domainlist: + driver = dnslookup + domains = ! +local_domains + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# End diff --git a/test/confs/0147 b/test/confs/0147 new file mode 100644 index 000000000..5243b7ae3 --- /dev/null +++ b/test/confs/0147 @@ -0,0 +1,100 @@ +# Exim test configuration 0147 + +XXXX=abcd\ +x#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx123456789012345678901234567890 + +ABCD_XYZ = abcdxyz +ABCD=abcd + ABCD_XYZ + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_connect = acl1 + +hold_domains = "a\x65b :\ + c.d" + +host_lookup = XXXX + XXXX +hosts_treat_as_local = ABCD_XYZ and ABCD + +ABCD == 1234 +ABCD_XYZ == ABCD_XYZ plus extra +delay_warning_condition = ABCD_XYZ + ABCD + + +ignore_fromline_hosts = test.ex : \ + test2.ex :\ + #This is a comment + test3.ex + +percent_hack_domains = \ + phack1.ex : \ + +queue_domains = XXXX + +queue_smtp_domains = \ +x#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx123456789012345678901234567890 + \ +x#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx123456789012345678901234567890 + + +# ----- Routers ----- + +begin routers + +MAC2 = macro2 definition +MAC2 == new macro2 + +R1: + driver = accept + router_home_directory = MAC2 + ABCD + transport = T1 + + +#----- Transports ----- + +begin transports + +T1: + driver = smtp + + +#----- ACL ----- + +begin acl + +ACLMAC=testing,testing + +acl1: + deny message = ACLMAC + + +# ----- Rewrite ----- + +begin rewrite + +*@junk.junk \ + $1\ + @\ + else.where \ + tc + + +# ----- Retry ----- + +begin retry + + * \ + * \ + F,1h,15m;\ + F,1d,30m + +# End diff --git a/test/confs/0148 b/test/confs/0148 new file mode 100644 index 000000000..d2cf6d1eb --- /dev/null +++ b/test/confs/0148 @@ -0,0 +1,19 @@ +# Exim test configuration 0148 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = @ +hold_domains = "a\x65b :\ + c.d + +# End diff --git a/test/confs/0149 b/test/confs/0149 new file mode 100644 index 000000000..f200efdb2 --- /dev/null +++ b/test/confs/0149 @@ -0,0 +1,55 @@ +# Exim test configuration 0149 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = <- test1 - test2-test3--4 +domainlist relay_domains = <+ + + +# ----- Routers ----- + +begin routers + +domainlist1: + driver = manualroute + domains = ! +local_domains + route_list = ten <+V4NET.0.0.0+V4NET.0.0.1 byname;\ + two V4NET.0.0.2:V4NET.0.0.4 byname; + +domainlist2: + driver = manualroute + domains = ! +local_domains + route_list = <= six <+V4NET.0.0.6+V4NET.0.0.7 byname=\ + one V4NET.0.0.2:V4NET.0.0.4 byname= + no_more + +local: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +# End diff --git a/test/confs/0150 b/test/confs/0150 new file mode 100644 index 000000000..455d676ba --- /dev/null +++ b/test/confs/0150 @@ -0,0 +1,37 @@ +# Exim test configuration 0150 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0151 b/test/confs/0151 new file mode 100644 index 000000000..db4e56ddb --- /dev/null +++ b/test/confs/0151 @@ -0,0 +1,38 @@ +# Exim test configuration 0151 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex +no_local_from_check + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0152 b/test/confs/0152 new file mode 100644 index 000000000..0cd248785 --- /dev/null +++ b/test/confs/0152 @@ -0,0 +1,40 @@ +# Exim test configuration 0152 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + +local_from_prefix = page+ : *- +local_from_suffix = =* : &page + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0153 b/test/confs/0153 new file mode 100644 index 000000000..b604f9b94 --- /dev/null +++ b/test/confs/0153 @@ -0,0 +1,39 @@ +# Exim test configuration 0153 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +virtual: + driver = redirect + domains = *.virt.test.ex + address_data = ${if match{$domain}{^(.*)\\.virt\\.test\\.ex\$}{$1}} + data = ${if exists{DIR/aux-fixed/TESTNUM.alias.$address_data} \ + {${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias.$address_data}}} \ + fail} + no_more + +list: + driver = redirect + domains = list.test.ex + file = ${if exists{DIR/aux-fixed/TESTNUM.list.$local_part} \ + {DIR/aux-fixed/TESTNUM.list.$local_part}fail} + no_more + +real: + driver = accept + verify_only + + +# End diff --git a/test/confs/0154 b/test/confs/0154 new file mode 100644 index 000000000..c19c5842c --- /dev/null +++ b/test/confs/0154 @@ -0,0 +1,37 @@ +# Exim test configuration 0154 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +defer_always: + driver = redirect + allow_defer + data = :defer: forced defer + retry_use_local_part + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0155 b/test/confs/0155 new file mode 100644 index 000000000..3e112458a --- /dev/null +++ b/test/confs/0155 @@ -0,0 +1,37 @@ +# Exim test configuration 0155 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex +queue_run_in_order +split_spool_directory + + +# ----- Routers ----- + +begin routers + +defer_always: + driver = redirect + allow_defer + data = :defer: forced defer + retry_use_local_part + + +# ----- Retry ----- + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0156 b/test/confs/0156 new file mode 100644 index 000000000..f24a064db --- /dev/null +++ b/test/confs/0156 @@ -0,0 +1,49 @@ +# Exim test configuration 0156 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +alias: + driver = redirect + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + file_transport = appendfile + forbid_blackhole + forbid_file + forbid_include + forbid_pipe + retry_use_local_part + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0157 b/test/confs/0157 new file mode 100644 index 000000000..05dc9eea9 --- /dev/null +++ b/test/confs/0157 @@ -0,0 +1,33 @@ +# Exim test configuration 0157 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +domainlist local_domains = test.ex +hostlist relay_hosts = V4NET.0.0.1 : V4NET.0.0.2 +qualify_domain = test.ex + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +local_domains + accept hosts = V4NET.0.0.1 + endpass + message = invalid sender + senders = userx@test.ex + accept hosts = +relay_hosts + deny message = relay not permitted + +# End diff --git a/test/confs/0158 b/test/confs/0158 new file mode 100644 index 000000000..c59767db5 --- /dev/null +++ b/test/confs/0158 @@ -0,0 +1,49 @@ +# Exim test configuration 0158 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex +deliver_drop_privilege + +# ----- Routers ----- + +begin routers + +caller: + driver = accept + retry_use_local_part + caseful_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = $local_part + + +# ----- Retry ----- + + +begin retry + +* * F,1d,15m + + +# End diff --git a/test/confs/0159 b/test/confs/0159 new file mode 100644 index 000000000..c4f3dc5f9 --- /dev/null +++ b/test/confs/0159 @@ -0,0 +1,40 @@ +# Exim test configuration 0159 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +helo_lookup_domains = +queue_only +queue_run_in_order + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0160 b/test/confs/0160 new file mode 100644 index 000000000..637e642a9 --- /dev/null +++ b/test/confs/0160 @@ -0,0 +1,49 @@ +# Exim test configuration 0160 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + +ignore_bounce_errors_after = 0s +queue_only + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,1s,1s + + +# End diff --git a/test/confs/0161 b/test/confs/0161 new file mode 100644 index 000000000..deb67e5b3 --- /dev/null +++ b/test/confs/0161 @@ -0,0 +1,72 @@ +# Exim test configuration 0161 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : myhost.test.ex + + +# ----- Routers ----- + +begin routers + +failuphost: + driver = dnslookup + caseful_local_part + domains = ! +local_domains + local_parts = ff + self = fail + transport = remote_smtp + +lookuphost: + driver = dnslookup + domains = ! +local_domains + no_more + self = pass + transport = remote_smtp + +fail: + driver = manualroute + caseful_local_part + debug_print = "self_hostname=$self_hostname\n" + domains = ! +local_domains + host_find_failed = fail + local_parts = fff + route_list = * $local_part byname + transport = remote_smtp + +self: + driver = manualroute + debug_print = "self_hostname=$self_hostname\n" + domains = ! +local_domains + host_find_failed = pass + no_more + route_list = * $local_part byname + transport = remote_smtp + +self2: + driver = manualroute + debug_print = "self_hostname=$self_hostname\n" + domains = ! +local_domains + route_list = * myhost.test.ex byname + transport = remote_smtp + no_more + + +# ----- Transports ----- + +begin transports + +remote_smtp: + driver = smtp + + +# End diff --git a/test/confs/0162 b/test/confs/0162 new file mode 100644 index 000000000..c89878959 --- /dev/null +++ b/test/confs/0162 @@ -0,0 +1,31 @@ +# Exim test configuration 0162 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex : myhost.test.ex + + +# ----- ACLs ----- + +begin acl + +check_recipient: + accept hosts = : + +check_message: + require verify = header_syntax + accept + +# End diff --git a/test/confs/0163 b/test/confs/0163 new file mode 100644 index 000000000..16d5292f3 --- /dev/null +++ b/test/confs/0163 @@ -0,0 +1,46 @@ +# Exim test configuration 0163 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,2h,15m + + +# End diff --git a/test/confs/0164 b/test/confs/0164 new file mode 100644 index 000000000..bcc34bb05 --- /dev/null +++ b/test/confs/0164 @@ -0,0 +1,45 @@ +# Exim test configuration 0164 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + +system_filter = DIR/aux-var/TESTNUM.F +system_filter_pipe_transport = address_pipe +system_filter_user = CALLER + + +# ----- Routers ----- + +begin routers + +user: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +address_pipe: + driver = pipe + return_output + + +# End diff --git a/test/confs/0165 b/test/confs/0165 new file mode 100644 index 000000000..050b75f66 --- /dev/null +++ b/test/confs/0165 @@ -0,0 +1,46 @@ +# Exim test configuration 0165 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + +system_filter = DIR/aux-var/0165.F +system_filter_pipe_transport = address_pipe +system_filter_user = CALLER + + +# ----- Routers ----- + +begin routers + +user: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +address_pipe: + driver = pipe + return_output + use_shell + + +# End diff --git a/test/confs/0166 b/test/confs/0166 new file mode 100644 index 000000000..b94331b44 --- /dev/null +++ b/test/confs/0166 @@ -0,0 +1,46 @@ +# Exim test configuration 0166 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +alias: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + headers_add = X-Delivered-To: $local_part@$domain + retry_use_local_part + +user: + driver = accept + headers_add = X-Delivered-To: $local_part@$domain + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + envelope_to_add + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0167 b/test/confs/0167 new file mode 100644 index 000000000..1e88e6d43 --- /dev/null +++ b/test/confs/0167 @@ -0,0 +1,48 @@ +# Exim test configuration 0167 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +trusted_users = CALLER + + +# ----- Rewrite ----- + +begin rewrite + +error@* <> + +*@* "${if eq {$local_part}{remove}{<>}fail}" F + + +# ----- Routers ----- + +begin routers + +user: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + envelope_to_add + file = DIR/test-mail/$local_part + return_path = ${if eq{$return_path}{trakill@test.ex}{}fail} + return_path_add + user = CALLER + +# End diff --git a/test/confs/0168 b/test/confs/0168 new file mode 100644 index 000000000..8a6d133f6 --- /dev/null +++ b/test/confs/0168 @@ -0,0 +1,19 @@ +# Exim test configuration 0168 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + +system_filter = DIR/aux-fixed/TESTNUM.filter + + +# End diff --git a/test/confs/0169 b/test/confs/0169 new file mode 100644 index 000000000..a09a3f538 --- /dev/null +++ b/test/confs/0169 @@ -0,0 +1,45 @@ +# Exim test configuration 0169 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + quota = $h_quota + quota_warn_threshold = $h_threshold + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0170 b/test/confs/0170 new file mode 100644 index 000000000..87c9cceda --- /dev/null +++ b/test/confs/0170 @@ -0,0 +1,18 @@ +# Exim test configuration 0170 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex +system_filter = DIR/aux-fixed/TESTNUM.filter + + +# End diff --git a/test/confs/0171 b/test/confs/0171 new file mode 100644 index 000000000..70a4f0702 --- /dev/null +++ b/test/confs/0171 @@ -0,0 +1,36 @@ +# Exim test configuration 74 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +user: + driver = accept + check_local_user + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = home: HOME=$home + user = CALLER + +# End diff --git a/test/confs/0172 b/test/confs/0172 new file mode 100644 index 000000000..1772e9008 --- /dev/null +++ b/test/confs/0172 @@ -0,0 +1,40 @@ +# Exim test configuration 0172 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +alias: + driver = redirect + allow_defer + data = :unknown: + file_transport = appendfile + retry_use_local_part + cannot_route_message = cannot route address + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0173 b/test/confs/0173 new file mode 100644 index 000000000..07763aa56 --- /dev/null +++ b/test/confs/0173 @@ -0,0 +1,53 @@ +# Exim test configuration 0173 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + +system_filter = DIR/aux-var/TESTNUM.filter +system_filter_pipe_transport = pipe +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +pipe: + driver = pipe + return_output + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0174 b/test/confs/0174 new file mode 100644 index 000000000..012408e99 --- /dev/null +++ b/test/confs/0174 @@ -0,0 +1,81 @@ +# Exim test configuration 0174 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +check1: + driver = manualroute + condition = ${if or {\ + {eq {$sender_address}{}}\ + {eq {$received_protocol}{scanned-ok}}\ + }{no}{yes}} + domains = ! +local_domains + route_list = * + transport = pipe + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + allow_fail + data = :fail: unrouteable mail domain "$domain" (:fail:) + +check2: + driver = accept + condition = ${if or {\ + {eq {$sender_address}{}}\ + {eq {$received_protocol}{scanned-ok}}\ + }{no}{yes}} + retry_use_local_part + transport = pipe + +all: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +pipe: + driver = pipe + batch_max = 100 + use_bsmtp + command = DIR/aux-fixed/resubmitB DIR/ CALLER + message_prefix = + return_output + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0175 b/test/confs/0175 new file mode 100644 index 000000000..7fba5b6ab --- /dev/null +++ b/test/confs/0175 @@ -0,0 +1,73 @@ +# Exim test configuration 0175 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- ACL ----- + +begin acl + +check_recipient: + require verify = sender + accept domains = +local_domains + deny message = relay not permitted + +# ----- Routers ----- + +begin routers + +fail_sender: + driver = manualroute + domains = ! +local_domains + route_list = bad.domain localhost byname + self = fail + verify_only + verify_sender + +fail_sender2: + driver = manualroute + domains = ! +local_domains + fail_verify + route_list = bad.domain2 localhost byname + self = send + verify_only + verify_sender + +lookuphost: + driver = dnslookup + domains = ! +local_domains + transport = smtp + no_more + +all: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0176 b/test/confs/0176 new file mode 100644 index 000000000..865cece98 --- /dev/null +++ b/test/confs/0176 @@ -0,0 +1,46 @@ +# Exim test configuration 0176 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +admin_groups = CALLER +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0177 b/test/confs/0177 new file mode 100644 index 000000000..273d0a7c2 --- /dev/null +++ b/test/confs/0177 @@ -0,0 +1,93 @@ +# Exim test configuration 0177 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = check_recipient + +qualify_domain = test.ex + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +all_R: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + +filter: + driver = redirect + allow_filter + allow_freeze + allow_fail + no_check_local_user + file = DIR/aux-var/TESTNUM.filter + owners = + reply_transport = autoreply + retry_use_local_part + user = CALLER + +alias: + driver = redirect + allow_defer + allow_fail + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + retry_use_local_part + +all_L: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +autoreply: + driver = autoreply + user = CALLER + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0178 b/test/confs/0178 new file mode 100644 index 000000000..f13ae20da --- /dev/null +++ b/test/confs/0178 @@ -0,0 +1,37 @@ +# Exim test configuration 0178 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +log_selector = +subject +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0179 b/test/confs/0179 new file mode 100644 index 000000000..1d46531c3 --- /dev/null +++ b/test/confs/0179 @@ -0,0 +1,46 @@ +# Exim test configuration 0179 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,2h,15m + + +# End diff --git a/test/confs/0180 b/test/confs/0180 new file mode 100644 index 000000000..7f9d824f8 --- /dev/null +++ b/test/confs/0180 @@ -0,0 +1,22 @@ +# Exim test configuration 0180 + +CSS=check_spool_space=100000000K + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +CSS +message_size_limit = ${if eq {$sender_host_address}{}{100}\ + { \ + ${if eq {$sender_host_address}{1.2.3.4}{500}{600}}\ + }} + +# End diff --git a/test/confs/0181 b/test/confs/0181 new file mode 100644 index 000000000..d4e1227e5 --- /dev/null +++ b/test/confs/0181 @@ -0,0 +1,20 @@ +# Exim test configuration 0181 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +message_size_limit = ${if eq {$sender_host_address}{}{100}\ + { \ + ${if eq {$sender_host_address}{1.2.3.4}{500}{600}}\ + }} + +# End diff --git a/test/confs/0182 b/test/confs/0182 new file mode 100644 index 000000000..6125ed268 --- /dev/null +++ b/test/confs/0182 @@ -0,0 +1,53 @@ +# Exim test configuration 0182 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +queue_run_in_order +system_filter = DIR/aux-fixed/TESTNUM.filter + + +# ----- Routers ----- + +begin routers + +defer: + driver = redirect + allow_defer + condition = ${if first_delivery{yes}{no}} + data = :defer: first delivery + retry_use_local_part + +deliver: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,2h,15m + + +# End diff --git a/test/confs/0183 b/test/confs/0183 new file mode 100644 index 000000000..73478f438 --- /dev/null +++ b/test/confs/0183 @@ -0,0 +1,51 @@ +# Exim test configuration 0183 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +dns_ipv4_lookup = * +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +srv: + driver = dnslookup + local_parts = ^srv + transport = smtp + check_srv = smtp + srv_fail_domains = test.fail.dns + mx_fail_domains = test.fail.dns + +useryz: + driver = manualroute + caseful_local_part + local_parts = usery:userz + route_list = * $domain bydns + transport = smtp + +lookuphost: + driver = dnslookup + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# End diff --git a/test/confs/0184 b/test/confs/0184 new file mode 100644 index 000000000..7b8cc0d0f --- /dev/null +++ b/test/confs/0184 @@ -0,0 +1,36 @@ +# Exim test configuration 0184 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + +# ----- Routers ----- + +begin routers + +filter: + driver = redirect + allow_filter + no_check_local_user + file = DIR/aux-var/TESTNUM.filter + owners = + retry_use_local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5d,1d + +# End diff --git a/test/confs/0185 b/test/confs/0185 new file mode 100644 index 000000000..08cb1d2c7 --- /dev/null +++ b/test/confs/0185 @@ -0,0 +1,90 @@ +# Exim test configuration 0185 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = check_recipient +qualify_domain = test.ex + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +all_R: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + +filter: + driver = redirect + allow_filter + allow_freeze + no_check_local_user + file = DIR/aux-var/TESTNUM.filter + owners = + reply_transport = autoreply + retry_use_local_part + user = CALLER + +alias: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + retry_use_local_part + +all_L: + driver = accept + retry_use_local_part + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +autoreply: + driver = autoreply + user = CALLER + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0186 b/test/confs/0186 new file mode 100644 index 000000000..931319f94 --- /dev/null +++ b/test/confs/0186 @@ -0,0 +1,44 @@ +# Exim test configuration 0186 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + +# ----- Routers ----- + +begin routers + +domainlist: + driver = manualroute + domains = ! +local_domains + ignore_target_hosts = !V4NET.0.0.5 : V4NET.0.0.0/8 + route_list = ten-5-6.test.ex $domain byname + transport = smtp + +lookuphost: + driver = dnslookup + domains = ! +local_domains + ignore_target_hosts = ${if eq{$domain}{other2.test.ex}{V4NET.12.3.2}fail} + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# End diff --git a/test/confs/0187 b/test/confs/0187 new file mode 100644 index 000000000..e93e4b464 --- /dev/null +++ b/test/confs/0187 @@ -0,0 +1,63 @@ +# Exim test configuration 0187 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex +allow_mx_to_ip + +# ----- Routers ----- + +begin routers + +domainlist: + driver = manualroute + domains = ! +local_domains + ignore_target_hosts = !V4NET.0.0.5 : V4NET.0.0.0/8 + route_list = ten-5-6.test.ex $domain bydns + transport = smtp + +lookuphost: + driver = dnslookup + domains = ^mxt + ignore_target_hosts = V4NET.0.0.2 : V4NET.0.0.1 : 127.0.0.0/8 : ::::1 + no_more + transport = smtp + +lookuphost2: + driver = dnslookup + domains = ! +local_domains + ignore_target_hosts = ${if eq{$domain}{other2.test.ex}{V4NET.12.3.2}} : \ + 127.0.0.1 : ::::1 + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0188 b/test/confs/0188 new file mode 100644 index 000000000..60b8b3071 --- /dev/null +++ b/test/confs/0188 @@ -0,0 +1,25 @@ +# Exim test configuration 0188 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_etrn = check_etrn +no_smtp_etrn_serialize +smtp_etrn_command = /some/non-existent/file +trusted_users = CALLER + +# ------ ACL ------ + +begin acl + +check_etrn: + accept hosts = localhost + +# End diff --git a/test/confs/0189 b/test/confs/0189 new file mode 100644 index 000000000..98bb2365b --- /dev/null +++ b/test/confs/0189 @@ -0,0 +1,38 @@ +# Exim test configuration 0189 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + +# ----- Routers ----- + +begin routers + +smartuser: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# End diff --git a/test/confs/0190 b/test/confs/0190 new file mode 100644 index 000000000..3b34b0cad --- /dev/null +++ b/test/confs/0190 @@ -0,0 +1,114 @@ +# Exim test configuration 0190 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +dns_ipv4_lookup = * +qualify_domain = test.ex +remote_max_parallel = 1 + + +# ----- Routers ----- + +begin routers + +# Specified and randomized in the transport + +domainx: + driver = manualroute + domains = ^domain + route_list = * V4NET.9.8.7 byname + transport = smtp + +# Specified in the router, randomized in the transport + +r2: + driver = manualroute + domains = ^adomain + route_list = * "$primary_hostname : 127.0.0.1 : HOSTIPV4" byname + self = send + transport = smtp3 + +# Randomized in the router, to check "sameness" testing + +r3: + driver = manualroute + domains = ^bdomain + hosts_randomize + route_list = * "$primary_hostname : 127.0.0.1 : HOSTIPV4" byname + self = send + transport = smtp2 + +# Specified and randomized in the router, with batching + +batched: + driver = manualroute + hosts_randomize + route_list = batch V4NET.0.0.1:V4NET.0.0.2:V4NET.0.0.3:+:\ + V4NET.0.0.4:V4NET.0.0.5:V4NET.0.0.6:+:\ + V4NET.0.0.7 byname;\ + batch2 V4NET.0.0.1:V4NET.0.0.2:V4NET.0.0.3:+:\ + V4NET.0.0.4:V4NET.0.0.5:V4NET.0.0.6:+:\ + V4NET.0.0.7 byname no_randomize; + transport = smtp2 + +batched2: + driver = manualroute + route_list = batch3 V4NET.0.0.1:V4NET.0.0.2:V4NET.0.0.3:+:\ + V4NET.0.0.4:V4NET.0.0.5:V4NET.0.0.6:+:\ + V4NET.0.0.7 byname;\ + batch4 V4NET.0.0.1:V4NET.0.0.2:V4NET.0.0.3:+:\ + V4NET.0.0.4:V4NET.0.0.5:V4NET.0.0.6:+:\ + V4NET.0.0.7 byname randomize; + transport = smtp2 + +# Specified and randomized in the router, no grouping + +others: + driver = manualroute + hosts_randomize + route_list = * V4NET.0.0.1:V4NET.0.0.2:V4NET.0.0.3 byname + transport = smtp2 + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + allow_localhost + hosts = $primary_hostname : 127.0.0.1 : HOSTIPV4 + hosts_override + hosts_randomize + max_rcpt = 1 + connection_max_messages = 1 + port = PORT_S + +smtp2: + driver = smtp + port = PORT_S + +smtp3: + driver = smtp + hosts_randomize + max_rcpt = 2 + connection_max_messages = 1 + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0191 b/test/confs/0191 new file mode 100644 index 000000000..1cbe7eb2c --- /dev/null +++ b/test/confs/0191 @@ -0,0 +1,40 @@ +# Exim test configuration 0191 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + +# ----- Routers ----- + +begin routers + +others: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + transport_filter = \ + /bin/sh -c "cat >/dev/null; /bin/echo -n Line without end" + + +# End diff --git a/test/confs/0192 b/test/confs/0192 new file mode 100644 index 000000000..d67e0bda4 --- /dev/null +++ b/test/confs/0192 @@ -0,0 +1,45 @@ +# Exim test configuration 0192 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + file = DIR/test-mail/$local_part + quota = 500 + no_quota_is_inclusive + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0193 b/test/confs/0193 new file mode 100644 index 000000000..9410a4d4d --- /dev/null +++ b/test/confs/0193 @@ -0,0 +1,55 @@ +# Exim test configuration 0193 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + + +# ----- Routers ----- + +begin routers + +bounce: + driver = redirect + allow_defer + data = :blackhole: + retry_use_local_part + senders = : + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + batch_max = 100 + envelope_to_add + file = DIR/test-mail/$local_part + message_size_limit = 50 + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0194 b/test/confs/0194 new file mode 100644 index 000000000..bfcaa5060 --- /dev/null +++ b/test/confs/0194 @@ -0,0 +1,65 @@ +# Exim test configuration 0194 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + + +# ----- Routers ----- + +begin routers + +bounce: + driver = accept + retry_use_local_part + senders = : + transport = local_delivery + +all: + driver = accept + retry_use_local_part + transport = pipe${if def:h_ret:{ret}} + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +pipe: + driver = pipe + batch_max = 3 + command = /bin/echo This is some returned text. + return_output + user = CALLER + +piperet: + driver = pipe + batch_max = 100 + command = DIR/aux-fixed/TESTNUM.ret $h_ret: + return_fail_output + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0195 b/test/confs/0195 new file mode 100644 index 000000000..19efd4e41 --- /dev/null +++ b/test/confs/0195 @@ -0,0 +1,58 @@ +# Exim test configuration 0195 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + + +# ----- Routers ----- + +begin routers + +bounce: + driver = accept + retry_use_local_part + senders = : + transport = local_delivery + +defer: + driver = redirect + allow_defer + condition = ${if or {{!def:h_one-defer:}{first_delivery}}{yes}{no}} + data = :defer: forcibly deferred + retry_use_local_part + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0196 b/test/confs/0196 new file mode 100644 index 000000000..214f5292b --- /dev/null +++ b/test/confs/0196 @@ -0,0 +1,52 @@ +# Exim test configuration 0196 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_expn = accept hosts = 127.0.0.1 +log_selector = +address_rewrite + + +# ----- Rewrite ----- + +begin rewrite + +rhubarb@* custard@$domain + + +# ----- Routers ----- + +begin routers + +alias: + driver = redirect + allow_defer + data = a, b, c + local_parts = postmaster + retry_use_local_part + +abc: + driver = accept + local_parts = a:b:c + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0197 b/test/confs/0197 new file mode 100644 index 000000000..175b671cb --- /dev/null +++ b/test/confs/0197 @@ -0,0 +1,114 @@ +# Exim test configuration 0197 + +# Remove connection timeout when copying for real use, +# and these settings. + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +queue_run_in_order +trusted_users = CALLER + + +# Exim configuration to pass all messages on to a fixed host, taking +# copies of them for subsequent configuration testing. + +# This is the file the copies will be saved in. + +COPYFILE = DIR/test-mail/copies + +# This is the user that the copying delivery will run under. + +COPYUSER = CALLER + +# These are the domains whose mail will be copied. + +COPYDOMAINS = copy.domain + +# This is the list of domains that this server will relay. + +RELAYDOMAINS = COPYDOMAINS + +# This is the host that messages are relayed to. It can be a colon-separated +# list of hosts - they are tried in order. + +NEXTHOST = V4NET.0.0.1 + + +# ----- Main settings ----- + +# This is a list of domains which the host is going to relay. Mail addressed +# to other domains will be rejected + +domainlist relay_domains = RELAYDOMAINS + +acl_smtp_rcpt = check_recipient + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +relay_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +# This router takes a copy of messages for a specific domain. + +checkcopy: + driver = manualroute + route_list = COPYDOMAINS + transport = makecopy + unseen + +# This router passes all addresses to the passing-on transport. + +passall: + driver = manualroute + route_list = * NEXTHOST byname + transport = pass_on + + +# ----- Transports ----- + +# This transport is used for doing the deliveries arising from taking copies +# of each message passing through the system, for specific domains. + +begin transports + +makecopy: + driver = appendfile + batch_max = 100 + use_bsmtp + file = COPYFILE + message_prefix = + message_suffix = + user = COPYUSER + +# This transport is used for passing the message on to the next host. + +pass_on: + driver = smtp + connect_timeout = 1s + + +# ----- Retry ----- + + +begin retry + +* * F,2h,15m; G,16h,1h,1.5; F,4d,8h + + +# End diff --git a/test/confs/0198 b/test/confs/0198 new file mode 100644 index 000000000..ab05bf195 --- /dev/null +++ b/test/confs/0198 @@ -0,0 +1,76 @@ +# Exim test configuration 0198 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +queue_run_in_order +trusted_users = CALLER + +# This test originated as an Exim configuration check local parts before +# relaying certain domains to a specific host. + +# We actually check this not by verifying, but by feeding in a message +# using BSMTP. + +# ----- Main settings ----- + +domainlist local_domains = copy.domain + +NEXTHOST = V4NET.0.0.1 + +# This is the file containing valid local parts, and its search type. + +LOCALPARTFILE = DIR/aux-fixed/TESTNUM.locals +SEARCHTYPE = lsearch + + +# ----- Routers ----- + +begin routers + +# This router passes all addresses to the passing-on transport. It is +# used for the domains for which no local part checking is being done. + +passall: + driver = manualroute + domains = ! +local_domains + route_list = * NEXTHOST byname + transport = pass_on + no_more + +# This router checks for the existence of the local part in a file; if +# found, the address is passed on for delivery to the next host. + +check_file: + driver = accept + condition = ${lookup{$local_part}SEARCHTYPE{LOCALPARTFILE}} + retry_use_local_part + transport = pass_on + + +# ----- Transports ----- + +# This transport is used for passing the message on to the next host. + +begin transports + +pass_on: + driver = smtp + connect_timeout = 1s + gethostbyname + hosts = NEXTHOST + + +# ----- Retry ----- + + +begin retry + +* * F,2h,15m; G,16h,1h,1.5; F,4d,8h + + +# End diff --git a/test/confs/0199 b/test/confs/0199 new file mode 100644 index 000000000..8c84ee689 --- /dev/null +++ b/test/confs/0199 @@ -0,0 +1,53 @@ +# Exim test configuration 0199 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_expn = check_expn +domainlist local_domains = test.ex : *.test.ex +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +check_expn: + accept hosts = 127.0.0.1 + + +# ----- Routers ----- + +begin routers + +make_local: + driver = manualroute + domains = over.the.rainbow + pass_router = expand + route_list = * 127.0.0.1 byname + self = pass + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + allow_fail + data = :fail: unrouteable mail domain "$domain" + +expand: + driver = redirect + allow_defer + allow_fail + data = a,b,c + local_parts = somewhere + retry_use_local_part + + +# End diff --git a/test/confs/0200 b/test/confs/0200 new file mode 100644 index 000000000..107b63431 --- /dev/null +++ b/test/confs/0200 @@ -0,0 +1,45 @@ +# Exim test configuration 0200 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +lookuphost: + driver = dnslookup + caseful_local_part + local_parts = xx + widen_domains = _bad + no_more + transport = smtp + +domainlist: + driver = manualroute + caseful_local_part + local_parts = yy + no_more + route_list = * bad_$domain bydns + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# End diff --git a/test/confs/0201 b/test/confs/0201 new file mode 100644 index 000000000..284e3848b --- /dev/null +++ b/test/confs/0201 @@ -0,0 +1,45 @@ +# Exim test configuration 0201 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + allow_localhost + port = PORT_S + transport_filter = /bin/sh -c 'cat; exit 99' + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0202 b/test/confs/0202 new file mode 100644 index 000000000..da3660c27 --- /dev/null +++ b/test/confs/0202 @@ -0,0 +1,42 @@ +# Exim test configuration 0202 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +qualify_domain = test.ex + +queue_only +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +# ----- Directors ----- + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0203 b/test/confs/0203 new file mode 100644 index 000000000..f1080e060 --- /dev/null +++ b/test/confs/0203 @@ -0,0 +1,47 @@ +# Exim test configuration 0203 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +others: + driver = manualroute + route_list = domain1 127.0.0.1 byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0204 b/test/confs/0204 new file mode 100644 index 000000000..e7db49f7b --- /dev/null +++ b/test/confs/0204 @@ -0,0 +1,45 @@ +# Exim test configuration 0204 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0205 b/test/confs/0205 new file mode 100644 index 000000000..42638bcd5 --- /dev/null +++ b/test/confs/0205 @@ -0,0 +1,55 @@ +# Exim test configuration 0205 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : \ + testhack.test.ex : \ + testhack2.test.ex + +percent_hack_domains = testhack.test.ex : \ + testhack2.test.ex + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + allow_fail + data = :fail: unrouteable mail domain "$domain" + +redirect: + driver = redirect + local_parts = redirect + errors_to = postmaster@test.ex + data = redirected%test.ex@testhack.test.ex + address_data = $address_data-redirect + +local_domains: + driver = accept + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + headers_add = Address-Data: >$address_data< + + +# End diff --git a/test/confs/0206 b/test/confs/0206 new file mode 100644 index 000000000..d6621a43f --- /dev/null +++ b/test/confs/0206 @@ -0,0 +1,39 @@ +# Exim test configuration 0206 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +ignore_bounce_errors_after = 2s +timeout_frozen_after = 4s +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +freeze: + driver = redirect + allow_defer + data = bad address + local_parts = freeze + retry_use_local_part + + +# ----- Retry ----- + +begin retry + +* * F,1s,1s + + +# End diff --git a/test/confs/0207 b/test/confs/0207 new file mode 100644 index 000000000..f119bce27 --- /dev/null +++ b/test/confs/0207 @@ -0,0 +1,39 @@ +# Exim test configuration 0207 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +timeout_frozen_after = 1s +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +freeze: + driver = redirect + allow_defer + data = bad address + local_parts = freeze + retry_use_local_part + + +# ----- Retry ----- + + +begin retry + +* * F,1s,1s + + +# End diff --git a/test/confs/0208 b/test/confs/0208 new file mode 100644 index 000000000..a80fb6de5 --- /dev/null +++ b/test/confs/0208 @@ -0,0 +1,77 @@ +# Exim test configuration 0208 + +MESSAGE_LOGS = true + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +message_logs = MESSAGE_LOGS +qualify_domain = test.ex +ignore_bounce_errors_after = 0s + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + allow_fail + data = :fail: unrouteable mail domain "$domain" + +ok: + driver = accept + local_parts = ok + retry_use_local_part + transport = succeed + +defer: + driver = redirect + allow_defer + data = :defer: don't do this yet + local_parts = defer + retry_use_local_part + +fail_transport: + driver = accept + local_parts = fail.transport + retry_use_local_part + transport = fail + + +# ----- Transports ----- + +begin transports + +succeed: + driver = appendfile + file = /dev/null + user = CALLER + +fail: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,1d,10m + + +# End diff --git a/test/confs/0209 b/test/confs/0209 new file mode 100644 index 000000000..b9db7a0cc --- /dev/null +++ b/test/confs/0209 @@ -0,0 +1,56 @@ +# Exim test configuration 0209 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +domainlist local_domains = test.ex +qualify_domain = test.ex +queue_run_in_order + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +others: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + +begin retry + +* * F,5d,8h + + +# End diff --git a/test/confs/0210 b/test/confs/0210 new file mode 100644 index 000000000..486f1ae3d --- /dev/null +++ b/test/confs/0210 @@ -0,0 +1,75 @@ +# Exim test configuration 0210 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex + + + +# ----- Routers ----- + +begin routers + +file: + driver = accept + local_parts = file + retry_use_local_part + transport = bsmtp_local_delivery + +pipe: + driver = accept + local_parts = pipe + retry_use_local_part + transport = bsmtp_pipe_delivery + +smtp: + driver = accept + local_parts = smtp + retry_use_local_part + transport = bsmtp_smtp + + +# ----- Transports ----- + +begin transports + +bsmtp_local_delivery: + driver = appendfile + use_bsmtp + message_prefix = "HELO x.y.z\n" + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +bsmtp_pipe_delivery: + driver = pipe + use_bsmtp + command = /bin/sh -c 'cat >DIR/test-mail/pipe' + delivery_date_add + envelope_to_add + return_path_add + user = CALLER + +bsmtp_smtp: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_S + + +# ----- Retry ----- + + +# End diff --git a/test/confs/0211 b/test/confs/0211 new file mode 100644 index 000000000..389437340 --- /dev/null +++ b/test/confs/0211 @@ -0,0 +1,72 @@ +# Exim test configuration 0211 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = check_recipient + +log_selector = +sender_on_delivery +qualify_domain = test.ex + + +# ----- ACLs ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +others: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,8h + + +# End diff --git a/test/confs/0212 b/test/confs/0212 new file mode 100644 index 000000000..3c0f49d25 --- /dev/null +++ b/test/confs/0212 @@ -0,0 +1,94 @@ +# Exim test configuration 0212 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +domainlist relay_domains = test.ex + +acl_smtp_rcpt = check_recipient +acl_smtp_vrfy = check_vrfy + +qualify_domain = test.ex +smtp_accept_max_nonmail = 1000 +trusted_users = CALLER + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + deny message = unrouteable address + !verify = recipient + accept domains = +local_domains + accept domains = +relay_domains + deny message = relay not permitted + +check_vrfy: + accept + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + allow_fail + data = :fail: unrouteable mail domain "$domain" + +smartuser: + driver = redirect + allow_defer + allow_fail + data = ${if match{$local_part}{^smartuser\\.(.*)}{$1}fail} + retry_use_local_part + +alias: + driver = redirect + allow_defer + allow_fail + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + retry_use_local_part + +forward: + driver = redirect + no_check_local_user + file = DIR/aux-fixed/TESTNUM.$local_part.forward + retry_use_local_part + +all: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,8h + + +# End diff --git a/test/confs/0213 b/test/confs/0213 new file mode 100644 index 000000000..16a8a33a8 --- /dev/null +++ b/test/confs/0213 @@ -0,0 +1,47 @@ +# Exim test configuration 0213 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +others: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1h + + +# End diff --git a/test/confs/0214 b/test/confs/0214 new file mode 100644 index 000000000..2c9e03893 --- /dev/null +++ b/test/confs/0214 @@ -0,0 +1,34 @@ +# Exim test configuration 215 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +local_domains + deny message = relay not permitted + +check_message: + require verify = header_syntax + accept + + +# End diff --git a/test/confs/0215 b/test/confs/0215 new file mode 100644 index 000000000..b513fcd6c --- /dev/null +++ b/test/confs/0215 @@ -0,0 +1,58 @@ +# Exim test configuration 0215 + +IGNORE_QUOTA=false + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex +log_selector = +sender_on_delivery + + +# ----- Routers ----- + +begin routers + +bounces: + driver = redirect + allow_defer + data = :blackhole: + retry_use_local_part + senders = : + +smartuser: + driver = accept + retry_use_local_part + transport = lmtp + + +# ----- Transports ----- + +begin transports + +lmtp: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_S + protocol = LMTP + lmtp_ignore_quota = IGNORE_QUOTA + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0216 b/test/confs/0216 new file mode 100644 index 000000000..04195d153 --- /dev/null +++ b/test/confs/0216 @@ -0,0 +1,53 @@ +# Exim test configuration 0216 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +queue_only +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_D + max_rcpt = 0 + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0217 b/test/confs/0217 new file mode 100644 index 000000000..7ffc1b099 --- /dev/null +++ b/test/confs/0217 @@ -0,0 +1,56 @@ +# Exim test configuration 0217 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +ignore_bounce_errors_after = 0s + + +# ----- Routers ----- + +begin routers + +bounce: + driver = redirect + allow_defer + allow_fail + data = :fail: just discard + retry_use_local_part + senders = : + +client: + driver = accept + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + command_timeout = 1s + hosts = 127.0.0.1 + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0218 b/test/confs/0218 new file mode 100644 index 000000000..a585870ef --- /dev/null +++ b/test/confs/0218 @@ -0,0 +1,60 @@ +# Exim test configuration 0218 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = \ + +sender_on_delivery +ignore_bounce_errors_after = 0s +qualify_domain = test.ex +queue_run_in_order +queue_only + + +# ----- Routers ----- + +begin routers + +bounce: + driver = redirect + allow_defer + allow_fail + data = :fail: just discard + retry_use_local_part + senders = : + +client: + driver = accept + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + command_timeout = 1s + hosts = 127.0.0.1 + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0219 b/test/confs/0219 new file mode 100644 index 000000000..b221a88c8 --- /dev/null +++ b/test/confs/0219 @@ -0,0 +1,15 @@ +# Exim test configuration 0219 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# End diff --git a/test/confs/0220 b/test/confs/0220 new file mode 100644 index 000000000..ea7f2f58f --- /dev/null +++ b/test/confs/0220 @@ -0,0 +1,41 @@ +# Exim test configuration 0220 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +message_size_limit = 500 +untrusted_set_sender = foo@bar : ^$sender_ident\N(?::-\w+)?(?::$|@\N$primary_hostname) + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +# End diff --git a/test/confs/0221 b/test/confs/0221 new file mode 100644 index 000000000..a05aaae5e --- /dev/null +++ b/test/confs/0221 @@ -0,0 +1,41 @@ +# Exim test configuration 0221 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +message_size_limit = 500 + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +# End diff --git a/test/confs/0222 b/test/confs/0222 new file mode 100644 index 000000000..f6f720ec7 --- /dev/null +++ b/test/confs/0222 @@ -0,0 +1,55 @@ +# Exim test configuration 0222 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +untrusted_set_sender = * +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +replyto: + driver = accept + retry_use_local_part + senders = !: + transport = autoreply + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +autoreply: + driver = autoreply + once = DIR/test-once + once_file_size = 30 + text = "Auto reply message" + to = $sender_address + user = CALLER + + +# ----- Retry ----- + + +# End diff --git a/test/confs/0223 b/test/confs/0223 new file mode 100644 index 000000000..af375c990 --- /dev/null +++ b/test/confs/0223 @@ -0,0 +1,55 @@ +# Exim test configuration 0223 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +reply: + driver = accept + retry_use_local_part + senders = ! + transport = reply + +localuser: + driver = accept + local_parts = CALLER + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +reply: + driver = autoreply + once = DIR/spool/autolog + once_file_size = 64 + once_repeat = 4s + text = "Test auto reply to $h_subject:" + to = $reply_address + user = EXIMUSER + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# End diff --git a/test/confs/0224 b/test/confs/0224 new file mode 100644 index 000000000..9ce4bc492 --- /dev/null +++ b/test/confs/0224 @@ -0,0 +1,70 @@ +# Exim test configuration 0224 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order + +delay_warning = 1s +delay_warning_condition = ${if first_delivery{no}{yes}} + + +# ----- Routers ----- + +begin routers + +alias: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + file_transport = address_file + retry_use_local_part + +halias: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.haliases}} + hide_child_in_errmsg + retry_use_local_part + +localuser: + driver = accept + local_parts = CALLER + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +address_file: + driver = appendfile + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,1d,10m + + +# End diff --git a/test/confs/0225 b/test/confs/0225 new file mode 100644 index 000000000..f10ea4b71 --- /dev/null +++ b/test/confs/0225 @@ -0,0 +1,63 @@ +# Exim test configuration 0225 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +local: + driver = dnslookup + domains = ! +local_domains + pass_router = copy + self = pass + transport = smtp + no_more + +copy: + driver = accept + local_parts = copy + retry_use_local_part + transport = local_delivery + unseen + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0226 b/test/confs/0226 new file mode 100644 index 000000000..8b6a67e45 --- /dev/null +++ b/test/confs/0226 @@ -0,0 +1,75 @@ +# Exim test configuration 0226 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +timezone = EST + + +# ----- Routers ----- + +begin routers + +bounces: + driver = accept + caseful_local_part + retry_use_local_part + senders = : + transport = local_delivery + +notallowed: + driver = redirect + allow_defer + caseful_local_part + data = $local_part + domains = no.test.ex + forbid_file + forbid_pipe + retry_use_local_part + +allowed: + driver = redirect + allow_defer + caseful_local_part + data = $local_part + file_transport = address_file + pipe_transport = address_pipe + retry_use_local_part + user = CALLER + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +address_file: + driver = appendfile + user = CALLER + +address_pipe: + driver = pipe + return_output + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0227 b/test/confs/0227 new file mode 100644 index 000000000..17f49eb76 --- /dev/null +++ b/test/confs/0227 @@ -0,0 +1,101 @@ +# Exim test configuration 0227 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_data + + +# ----- ACL ----- + +begin acl + +check_recipient: + warn senders = ^uncheckable2@ + control = no_multiline_responses + accept hosts = V4NET.0.0.4 + deny hosts = V4NET.0.0.1 + !verify = sender/callout=no_cache + deny hosts = V4NET.0.0.3 + log_message = ($recipient_verify_failure) + !verify = recipient/callout=no_cache + deny hosts = V4NET.0.0.5 + log_message = ($sender_verify_failure) + !verify = sender/callout=no_cache/check_postmaster + require verify = sender + accept domains = +local_domains + deny message = relay not permitted + +check_data: + deny hosts = V4NET.0.0.4 + !verify = header_sender/callout=no_cache + accept + + +# ----- Routers ----- + +begin routers + +mxt3: + driver = dnslookup + domains = mxt3.test.ex + self = send + transport = smtp + +localhost1: + driver = manualroute + domains = localhost1 + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + +lmtp: + driver = manualroute + domains = remote.lmtp + route_list = * 127.0.0.1 + transport = lmtp + self = send + +all: + driver = manualroute + domains = ! +local_domains + route_list = * "127.0.0.1 : HOSTIPV4" byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + +lmtp: + driver = smtp + port = PORT_S + protocol = lmtp + + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0228 b/test/confs/0228 new file mode 100644 index 000000000..dbf4d1299 --- /dev/null +++ b/test/confs/0228 @@ -0,0 +1,47 @@ +# Exim test configuration 0228 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + fallback_hosts = HOSTIPV4 + port = PORT_S + + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + +# End diff --git a/test/confs/0229 b/test/confs/0229 new file mode 100644 index 000000000..af78f1c5c --- /dev/null +++ b/test/confs/0229 @@ -0,0 +1,50 @@ +# Exim test configuration 0229 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + allow_localhost + hosts = 127.0.0.1 : 127.0.0.1 : HOSTIPV4 : \ + 127.0.0.1 : 127.0.0.1 : HOSTIPV4 : \ + 127.0.0.1 : 127.0.0.1 : HOSTIPV4 + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0230 b/test/confs/0230 new file mode 100644 index 000000000..82c0c0432 --- /dev/null +++ b/test/confs/0230 @@ -0,0 +1,68 @@ +# Exim test configuration 0230 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex +acl_smtp_rcpt = check_recipient +log_selector = \ + +incoming_port \ + +incoming_interface \ + +smtp_connection +queue_only +queue_run_in_order + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = Port: $sender_host_port + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + +# End diff --git a/test/confs/0231 b/test/confs/0231 new file mode 100644 index 000000000..721b8f7e5 --- /dev/null +++ b/test/confs/0231 @@ -0,0 +1,83 @@ +# Exim test configuration 0231 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + +acl_smtp_rcpt = check_recipient + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +rewrite1: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp_rewrite + no_more + +rewrite2: + driver = accept + local_parts = a + retry_use_local_part + transport = local_delivery_rewrite + +no_rewrite: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery_rewrite: + driver = appendfile + file = DIR/test-mail/$local_part + headers_rewrite = a@test.ex a-rewrite@test.ex + user = CALLER + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +smtp_rewrite: + driver = smtp + headers_rewrite = *@domain1 $1-rewrite@domain2 f :\ + *@domain1 $1-other@domain2 + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0232 b/test/confs/0232 new file mode 100644 index 000000000..99edc2876 --- /dev/null +++ b/test/confs/0232 @@ -0,0 +1,59 @@ +# Exim test configuration 0232 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + + +# ----- Routers ----- + +begin routers + +forward: +#!!# filter renamed allow_filter + driver = redirect + allow_filter + no_check_local_user + data = "${sg\ + {#Exim filter||\ + deliver postmaster \ + deliver prefix-$local_part\ + }{\\\\|\\\\|}{\n}}" + local_parts = ^filter + retry_use_local_part + user = CALLER + +rest: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0233 b/test/confs/0233 new file mode 100644 index 000000000..cbd87c4b7 --- /dev/null +++ b/test/confs/0233 @@ -0,0 +1,61 @@ +# Exim test configuration 0233 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = rcpt + +freeze_tell = me +system_filter = DIR/aux-fixed/TESTNUM.filter +system_filter_reply_transport = address_reply + + +# ----- ACL ----- + +begin acl + +rcpt: + accept control = freeze + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +address_reply: + driver = autoreply + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0234 b/test/confs/0234 new file mode 100644 index 000000000..69c8163ee --- /dev/null +++ b/test/confs/0234 @@ -0,0 +1,28 @@ +# Exim test configuration 0234 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +domainlist relay_domains = @mx_any + + +# ----- ACLs ----- + +begin acl + +check_recipient: + accept domains = +relay_domains + deny message = relay not permitted + + +# End diff --git a/test/confs/0235 b/test/confs/0235 new file mode 100644 index 000000000..4856e72a2 --- /dev/null +++ b/test/confs/0235 @@ -0,0 +1,47 @@ +# Exim test configuration 0235 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = @ + + +# ----- Routers ----- + +begin routers + +smartuser: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}{$value}fail} + no_more + retry_use_local_part + +never: + driver = accept + retry_use_local_part + transport = never + + +# ----- Transports ----- + +begin transports + +never: + driver = appendfile + file = /dev/null + user = CALLER + + +# ----- Retry ----- + + +# End diff --git a/test/confs/0236 b/test/confs/0236 new file mode 100644 index 000000000..e2402a5f8 --- /dev/null +++ b/test/confs/0236 @@ -0,0 +1,19 @@ +# Exim test configuration 0236 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +A_MACRO_WHOSE_NAME_IS_LONGER_THAN_63_CHARACTERS_IS_DEFINED_HERE_FOR_TESTING = macro value + +qualify_domain = A_MACRO_WHOSE_NAME_IS_LONGER_THAN_63_CHARACTERS_IS_DEFINED_HERE_FOR_TESTING + +# End diff --git a/test/confs/0237 b/test/confs/0237 new file mode 100644 index 000000000..ff0fb76c2 --- /dev/null +++ b/test/confs/0237 @@ -0,0 +1,77 @@ +# Exim test configuration 0237 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +bounces: + driver = accept + caseful_local_part + retry_use_local_part + senders = : + transport = local_delivery + +notallowed: + driver = redirect + allow_defer + caseful_local_part + data = $local_part + domains = no.test.ex + forbid_file + forbid_pipe + hide_child_in_errmsg + retry_use_local_part + +allowed: + driver = redirect + allow_defer + caseful_local_part + data = $local_part + file_transport = address_file + hide_child_in_errmsg + pipe_transport = address_pipe + retry_use_local_part + user = CALLER + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +address_file: + driver = appendfile + user = CALLER + +address_pipe: + driver = pipe + return_output + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0238 b/test/confs/0238 new file mode 100644 index 000000000..6ff214e93 --- /dev/null +++ b/test/confs/0238 @@ -0,0 +1,51 @@ +# Exim test configuration 0238 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +rrr: + driver = manualroute + domains = ! +local_domains + require_files = un/qualified + route_list = * $domain byname + transport = smtp + +localuser: + driver = accept + local_parts = userx + require_files = ${if eq{$local_part} + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0239 b/test/confs/0239 new file mode 100644 index 000000000..8712fb909 --- /dev/null +++ b/test/confs/0239 @@ -0,0 +1,57 @@ +# Exim test configuration 0239 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +sss: + driver = manualroute + domains = smtp + route_list = * 127.0.0.1 byname + self = send + transport = smtp + +rrr: + driver = manualroute + domains = ! +local_domains + route_list = * a.host.name + self = send + transport = local + no_more + + +# ----- Transports ----- + +begin transports + +local: + driver = appendfile + user = CALLER + +smtp: + driver = smtp + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0240 b/test/confs/0240 new file mode 100644 index 000000000..91fcc9e1e --- /dev/null +++ b/test/confs/0240 @@ -0,0 +1,110 @@ +# Exim test configuration 0240 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + + +domainlist local_domains = test.ex + + + +qualify_domain = test.ex + + +#!!#######################################################!!# +#!!# This new section of the configuration contains ACLs #!!# +#!!# (Access Control Lists) derived from the Exim 3 #!!# +#!!# policy control options. #!!# +#!!#######################################################!!# + +#!!# These ACLs are crudely constructed from Exim 3 options. +#!!# They are almost certainly not optimal. You should study +#!!# them and rewrite as necessary. + +# ----- ACL ----- + +begin acl + +#!!# ACL that is used after the RCPT command +check_recipient: + # Exim 3 had no checking on -bs messages + accept hosts = : + accept domains = +local_domains + deny message = relay not permitted + +#!!# ACL that is used after the DATA command +check_message: + accept + + +# ----- Rewrite ----- + +# End + +#!!#######################################################!!# +#!!# Here follow routers created from the old routers, #!!# +#!!# for handling non-local domains. #!!# +#!!#######################################################!!# + + + +# ----- Routers ----- + +begin routers + + +#!!# This new router is put here to fail all domains that +#!!# were not in local_domains in the Exim 3 configuration. + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + + +#!!#######################################################!!# +#!!# Here follow routers created from the old directors, #!!# +#!!# for handling local domains. #!!# +#!!#######################################################!!# + +# ----- Directors ----- + +all: + driver = accept + retry_use_local_part + transport = local + + +# ----- Transports ----- + +begin transports + +local: + driver = appendfile + directory_mode = 3777 + file = DIR/test-mail/subdir/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0241 b/test/confs/0241 new file mode 100644 index 000000000..03d55b135 --- /dev/null +++ b/test/confs/0241 @@ -0,0 +1,51 @@ +# Exim test configuration 0241 + +exim_path = EXIM_PATH/junk +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +system_filter = DIR/aux-fixed/TESTNUM.filter +system_filter_reply_transport = address_reply + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = local + + +# ----- Transports ----- + +begin transports + +local: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +address_reply: + driver = autoreply + user = EXIMUSER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0242 b/test/confs/0242 new file mode 100644 index 000000000..0acf78fca --- /dev/null +++ b/test/confs/0242 @@ -0,0 +1,48 @@ +# Exim test configuration 0242 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0243 b/test/confs/0243 new file mode 100644 index 000000000..b703f3466 --- /dev/null +++ b/test/confs/0243 @@ -0,0 +1,97 @@ +# Exim test configuration 0243 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +domainlist local_domains = nl.demon.net +qualify_domain = nl.demon.net + + +# ----- ACL ----- + +begin acl + +check_recipient: + deny message = unrouteable address + !verify = recipient + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +auto_antwoord: + driver = accept + domains = *.demon.net + require_files = DIR/aux-fixed/TESTNUM.antwoord-${local_part} + retry_use_local_part + transport = stuur_auto_antwoord + unseen + +algemeen_aliases: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.algemeen}} + domains = "nl.demon.net:*.nl.demon.net:fax-gw.demon.nl: \ + www-3.demon.nl : localhost" + file_transport = address_file + group = EXIMGROUP + pipe_transport = address_pipe + retry_use_local_part + user = EXIMUSER + +rest: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +address_file: + driver = appendfile + user = CALLER + +address_pipe: + driver = pipe + +stuur_auto_antwoord: + driver = autoreply + file = DIR/aux-fixed/TESTNUM.antwoord-${local_part} + file_expand + from = "${lookup{$local_part} lsearch \ + {DIR/aux-fixed/TESTNUM.beantwoorders} {$value}}" + subject = "Re: $h_subject" + to = ${return_path} + reply_to = x@y, \n p@q + user = EXIMUSER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0244 b/test/confs/0244 new file mode 100644 index 000000000..f9fb3b525 --- /dev/null +++ b/test/confs/0244 @@ -0,0 +1,15 @@ +# Exim test configuration 0244 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# End diff --git a/test/confs/0245 b/test/confs/0245 new file mode 100644 index 000000000..b5a55d4c6 --- /dev/null +++ b/test/confs/0245 @@ -0,0 +1,15 @@ +# Exim test configuration 0245 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# End diff --git a/test/confs/0246 b/test/confs/0246 new file mode 100644 index 000000000..57d807825 --- /dev/null +++ b/test/confs/0246 @@ -0,0 +1,55 @@ +# Exim test configuration 0246 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +d1: + driver = redirect + allow_filter + no_check_local_user + file = DIR/aux-var/TESTNUM.filter + forbid_filter_existstest + forbid_filter_lookup + local_parts = filter + reply_transport = t2 + retry_use_local_part + user = CALLER + +d2: + driver = accept + retry_use_local_part + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t2: + driver = autoreply + user = CALLER + initgroups + + +# ----- Retry ----- + + +# End diff --git a/test/confs/0247 b/test/confs/0247 new file mode 100644 index 000000000..7de97edd1 --- /dev/null +++ b/test/confs/0247 @@ -0,0 +1,51 @@ +# Exim test configuration 0247 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +d1: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + file_transport = t1 + retry_use_local_part + +d2: + driver = redirect + allow_defer + data = :defer: explicit defer + retry_use_local_part + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /x/y + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,1d,1h + + +# End diff --git a/test/confs/0248 b/test/confs/0248 new file mode 100644 index 000000000..dc34e53e6 --- /dev/null +++ b/test/confs/0248 @@ -0,0 +1,18 @@ +# Exim test configuration 0248 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex +system_filter = DIR/aux-fixed/TESTNUM.filter + + +# End diff --git a/test/confs/0249 b/test/confs/0249 new file mode 100644 index 000000000..afeb2f739 --- /dev/null +++ b/test/confs/0249 @@ -0,0 +1,23 @@ +# Exim test configuration 0249 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Rewrite ----- + + +begin rewrite + +*@a.domain $1@b.domain +*@c.domain $local_part@d.domain + +# End diff --git a/test/confs/0250 b/test/confs/0250 new file mode 100644 index 000000000..06ea63643 --- /dev/null +++ b/test/confs/0250 @@ -0,0 +1,24 @@ +# Exim test configuration 0250 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Rewrite ----- + +begin rewrite + +*@test.ex $1-rewritten@test.ex + + +# End diff --git a/test/confs/0251 b/test/confs/0251 new file mode 100644 index 000000000..69f04c08b --- /dev/null +++ b/test/confs/0251 @@ -0,0 +1,74 @@ +# Exim test configuration 0251 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +domainlist local_domains = test.ex : *.test.ex + +# ----- ACL ----- + +begin acl + +check_recipient: + deny message = unrouteable address + !verify = recipient + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +exeter_listr: + driver = redirect + no_check_local_user + domains = listr.test.ex + errors_to = ${local_part}-request@test.ex + file = DIR/aux-fixed/TESTNUM.list.${local_part} + forbid_file + forbid_pipe + one_time + require_files = DIR/aux-fixed/TESTNUM.restrict.${local_part} + retry_use_local_part + senders = ${if exists{DIR/aux-fixed/TESTNUM.restrict.${local_part}} \ + {DIR/aux-fixed/TESTNUM.restrict.${local_part}}{zzzz}} + syntax_errors_to = ${local_part}-request@test.ex + +exeter_listf: + driver = accept + domains = listr.test.ex + no_more + retry_use_local_part + transport = not_allowed + + +# ----- Transports ----- + +begin transports + +not_allowed: + driver = autoreply + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0252 b/test/confs/0252 new file mode 100644 index 000000000..444aa100f --- /dev/null +++ b/test/confs/0252 @@ -0,0 +1,83 @@ +# Exim test configuration 0252 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +a: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + errors_to = alias@test.ex + retry_use_local_part + +f: + driver = redirect + no_check_local_user + errors_to = forward@test.ex + file = DIR/aux-fixed/TESTNUM.forward + local_parts = forward + retry_use_local_part + +s: + driver = redirect + allow_defer + data = from-smart@test.ex + errors_to = smart@test.ex + local_parts = smart + retry_use_local_part + +u: + driver = accept + errors_to = postmaster@test.ex + retry_use_local_part + transport = t1 + unseen + +z: + driver = accept + retry_use_local_part + transport = t2 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/t1 + return_path_add + user = CALLER + +t2: + driver = appendfile + file = DIR/test-mail/t2 + return_path_add + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0253 b/test/confs/0253 new file mode 100644 index 000000000..b72de8cd2 --- /dev/null +++ b/test/confs/0253 @@ -0,0 +1,77 @@ +# Exim test configuration 0253 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = +return_path_on_delivery +trusted_users = CALLER +remote_max_parallel = 1 + + +# ----- Routers ----- + +begin routers + +r0: + driver = accept + senders = : + transport = t0 + +r1: + driver = accept + senders = abc@x.y.z + transport = t1 + +r2: + driver = accept + senders = xyz@x.y.z + transport = t2 + +r3: + driver = accept + transport = t3 + errors_to = lmn@myhost.test.ex + + +# ----- Transports ----- + +begin transports + +t0: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t1: + driver = appendfile + batch_max = 100 + file = DIR/test-mail/t1 + return_path = modified@x.y.z + use_bsmtp + user = CALLER + +t2: + driver = appendfile + file = DIR/test-mail/t2 + return_path = abc=$local_part+$domain@verp.domain + use_bsmtp + user = CALLER + +t3: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + max_rcpt = 1 + allow_localhost + return_path = pqr=$local_part+$domain@verp.domain + + +# End diff --git a/test/confs/0254 b/test/confs/0254 new file mode 100644 index 000000000..8fdf9f581 --- /dev/null +++ b/test/confs/0254 @@ -0,0 +1,20 @@ +# Exim test configuration 0254 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = +subject + +begin rewrite + +xx@yy xxxx@yyyy + +# End diff --git a/test/confs/0255 b/test/confs/0255 new file mode 100644 index 000000000..0de9863d5 --- /dev/null +++ b/test/confs/0255 @@ -0,0 +1,18 @@ +# Exim test configuration 0255 + +OPTION= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +OPTION + +# End diff --git a/test/confs/0256 b/test/confs/0256 new file mode 100644 index 000000000..669fdb114 --- /dev/null +++ b/test/confs/0256 @@ -0,0 +1,38 @@ +# Exim test configuration 0256 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +errors_copy = *@* abcd@test.ex + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + local_parts = !unknown + retry_use_local_part + transport = t1 + + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0257 b/test/confs/0257 new file mode 100644 index 000000000..e0bef95a6 --- /dev/null +++ b/test/confs/0257 @@ -0,0 +1,48 @@ +# Exim test configuration 0257 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = dnslookup + domains = ! +local_domains + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + connect_timeout = 1s + fallback_hosts = ten-2.test.ex + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0258 b/test/confs/0258 new file mode 100644 index 000000000..a507987f3 --- /dev/null +++ b/test/confs/0258 @@ -0,0 +1,36 @@ +# Exim test configuration 0258 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0259 b/test/confs/0259 new file mode 100644 index 000000000..cd5c30362 --- /dev/null +++ b/test/confs/0259 @@ -0,0 +1,38 @@ +# Exim test configuration 0259 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +begin routers + +all: + driver = manualroute + domains = ! test.ex + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +begin retry + +* * F,5d,10s + +# End diff --git a/test/confs/0260 b/test/confs/0260 new file mode 100644 index 000000000..40df0612c --- /dev/null +++ b/test/confs/0260 @@ -0,0 +1,71 @@ +# Exim test configuration 0260 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +bad_return: + driver = appendfile + batch_max = 100 + file = DIR/test-mail/bad_return + user = CALLER + return_path = ${if + +bad_uid: + driver = appendfile + file = DIR/test-mail/bad_uid + +exp_fail: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + home_directory = ${if rhubarb + +# ----- Routers ----- + +begin routers + +bad_return: + driver = accept + local_parts = bad.return : bad.return2 + transport = bad_return + +bad_uid: + driver = accept + local_parts = bad.uid + transport = bad_uid + +exp_fail: + driver = accept + local_parts = exp.fail + transport = exp_fail + +good: + driver = accept + transport = local_delivery + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + +# End diff --git a/test/confs/0261 b/test/confs/0261 new file mode 100644 index 000000000..62f161f0e --- /dev/null +++ b/test/confs/0261 @@ -0,0 +1,57 @@ +# Exim test configuration 0261 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +remote_max_parallel = 1 + +# ----- Transports ----- + +begin transports + +remote_delivery: + driver = smtp + hosts = V4NET.0.0.1 + +bad_return: + driver = smtp + hosts = V4NET.0.0.0 + return_path = ${if + +no_hosts: + driver = smtp + +# ----- Routers ----- + +begin routers + +bad_return: + driver = accept + local_parts = bad.return : bad.return2 + transport = bad_return + +no_hosts: + driver = accept + local_parts = no.hosts + transport = no_hosts + +good: + driver = accept + transport = remote_delivery + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + +# End diff --git a/test/confs/0262 b/test/confs/0262 new file mode 100644 index 000000000..b884f80d4 --- /dev/null +++ b/test/confs/0262 @@ -0,0 +1,45 @@ +# Exim test configuration 0262 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# ----- Transports ----- + +begin transports + +pipe: + driver = pipe + command = /bin/echo + user = CALLER + environment = \ + A1=01:B1=02:C1=03:D1=04:E1=05:D1=06:E1=07:F1=08:G1=09:H1=10:\ + A2=11:B2=12:C2=13:D2=14:E2=15:D2=16:E2=17:F2=18:G2=19:H2=20:\ + A3=21:B3=22:C3=23:D3=24:E3=25:D3=26:E3=27:F3=28:G3=29:H3=30:\ + A4=31:B4=32:C4=33:D4=34:E4=35:D4=36:E4=37:F4=38:G4=39:H4=40:\ + XX=YY + +# ----- Routers ----- + +begin routers + +good: + driver = accept + transport = pipe + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + +# End diff --git a/test/confs/0263 b/test/confs/0263 new file mode 100644 index 000000000..bbc69923e --- /dev/null +++ b/test/confs/0263 @@ -0,0 +1,50 @@ +# Exim test configuration 0263 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +# ----- Routers ----- + +begin routers + +# Skip for domain0, pass for domain1, decline for domain2 +r1: + driver = manualroute + domains = domain1:domain2 + route_list = domain1 127.0.0.1 byname + self = pass + pass_router = pr1 + no_more + +r2: + driver = accept + transport = t1 + +pr1: + driver = accept + transport = t1 + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + +# End diff --git a/test/confs/0264 b/test/confs/0264 new file mode 100644 index 000000000..be718bcc9 --- /dev/null +++ b/test/confs/0264 @@ -0,0 +1,81 @@ +# Exim test configuration 0264 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + quota = ${if eq{$local_part}{userx}{3}{10000}} + current_directory = / + +local_delivery2: + driver = appendfile + retry_use_local_part = false + file = DIR/test-mail/$local_part + user = CALLER + quota = 3 + current_directory = / + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + local_parts = userx : usery : userz + domains = test.ex + transport = local_delivery + +r2: + driver = accept + domains = test.ex + transport = local_delivery2 + +r3: + driver = redirect + retry_use_local_part + local_parts = ^r3 + allow_defer + data = :defer: not just now + +r4: + driver = redirect + local_parts = ^r4 + allow_defer + data = :defer: not just now + +r5: + driver = redirect + local_parts = ^r5 + allow_defer + data = :defer: not just now + +# ----- Retry ----- + +begin retry + +^\\*@r5domain.ex * F,10d,30m +"userx@test.ex" * F,10d,10m +test.ex * F,20d,20m + +* * F,5d,5m + +# End diff --git a/test/confs/0265 b/test/confs/0265 new file mode 100644 index 000000000..5070e20fc --- /dev/null +++ b/test/confs/0265 @@ -0,0 +1,31 @@ +# Exim test configuration 0265 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + data = "#Exim filter\nfinish" + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0266 b/test/confs/0266 new file mode 100644 index 000000000..534abaea8 --- /dev/null +++ b/test/confs/0266 @@ -0,0 +1,69 @@ +# Exim test configuration 0266 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + envelope_to_add + return_path_add + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + skip_syntax_errors + local_parts = ^list + syntax_errors_to = postmaster@test.ex + file = DIR/aux-fixed/TESTNUM.$local_part + +r1a: + driver = redirect + skip_syntax_errors + local_parts = ^nmlist + syntax_errors_to = postmaster@test.ex + file = DIR/aux-fixed/TESTNUM.$local_part + no_more + +r2: + driver = redirect + skip_syntax_errors + local_parts = ^filter + syntax_errors_to = postmaster@test.ex + syntax_errors_text = "There's an error in your filter file.\n\ + The file has been ignored." + file = DIR/aux-fixed/TESTNUM.$local_part + allow_filter + router_home_directory = DIR + user = CALLER + +r3: + driver = accept + transport = t1 + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0267 b/test/confs/0267 new file mode 100644 index 000000000..b755a33ca --- /dev/null +++ b/test/confs/0267 @@ -0,0 +1,52 @@ +# Exim test configuration 0267 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + local_part_prefix = pre- + require_files = /non/exist + transport = t1 + +r2: + driver = accept + local_part_suffix = -post + require_files = /non/exist + transport = t1 + +r3: + driver = accept + local_parts = pre-x : x-post + transport = t1 + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0268 b/test/confs/0268 new file mode 100644 index 000000000..6be4e662f --- /dev/null +++ b/test/confs/0268 @@ -0,0 +1,101 @@ +# Exim test configuration 0268 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + domains = r1 + check_local_user + allow_fail + file = DIR/test-owned-by-exim + +r2: + driver = redirect + domains = r2 + check_local_user + allow_fail + file = DIR/test-owned-by-exim + owners = root : EXIMUSER + +r3: + driver = redirect + domains = r3 + allow_fail + file = DIR/test-owned-by-exim + owners = root + +r4: + driver = redirect + domains = r4 + allow_fail + file = DIR/test-owned-by-exim + +r5: + driver = redirect + domains = r5 + check_local_user + allow_fail + file = DIR/test-owned-by-exim + no_check_owner + +r6: + driver = redirect + domains = r6 + check_local_user + allow_fail + file = DIR/test-owned-by-exim + no_check_owner + modemask = 0 + +r7: + driver = redirect + domains = r7 + check_local_user + allow_fail + file = DIR/test-owned-by-exim + no_check_owner + no_check_group + modemask = 0 + +r8: + driver = redirect + domains = r8 + allow_fail + file = DIR/test-owned-by-exim + +r9: + driver = redirect + domains = r9 + allow_fail + file = DIR/test-owned-by-exim + owngroups = CALLER : EXIMGROUP + +r10: + driver = redirect + domains = r10 + file = DIR/test-owned-by-exim + owngroups = CALLER + +r11: + driver = redirect + domains = r11 + file = DIR/test-owned-by-exim + owngroups = CALLER : EXIMGROUP + modemask = 007 + +# End diff --git a/test/confs/0269 b/test/confs/0269 new file mode 100644 index 000000000..5c992194c --- /dev/null +++ b/test/confs/0269 @@ -0,0 +1,31 @@ +# Exim test configuration 0269 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + data = "#Exim filter\nfinish" + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0270 b/test/confs/0270 new file mode 100644 index 000000000..f05958861 --- /dev/null +++ b/test/confs/0270 @@ -0,0 +1,69 @@ +# Exim test configuration 0270 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + envelope_to_add + return_path_add + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + skip_syntax_errors + local_parts = ^list + syntax_errors_to = postmaster@test.ex + file = DIR/aux-fixed/TESTNUM.$local_part + +r1a: + driver = redirect + skip_syntax_errors + local_parts = ^nmlist + syntax_errors_to = postmaster@test.ex + file = DIR/aux-fixed/TESTNUM.$local_part + no_more + +r2: + driver = redirect + skip_syntax_errors + local_parts = ^filter + syntax_errors_to = postmaster@test.ex + syntax_errors_text = "There's an error in your filter file.\n\ + The file has been ignored." + file = DIR/aux-fixed/TESTNUM.$local_part + allow_filter + router_home_directory = DIR/ + user = CALLER + +r3: + driver = accept + transport = t1 + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0271 b/test/confs/0271 new file mode 100644 index 000000000..f3fb43846 --- /dev/null +++ b/test/confs/0271 @@ -0,0 +1,52 @@ +# Exim test configuration 0271 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + local_part_prefix = pre- + require_files = /non/exist + transport = t1 + +r2: + driver = accept + local_part_suffix = -post + require_files = /non/exist + transport = t1 + +r3: + driver = accept + local_parts = pre-x : x-post + transport = t1 + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0272 b/test/confs/0272 new file mode 100644 index 000000000..ddd047ee7 --- /dev/null +++ b/test/confs/0272 @@ -0,0 +1,101 @@ +# Exim test configuration 0272 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + domains = r1 + check_local_user + allow_fail + file = DIR/aux-var/TESTNUM.exim + +r2: + driver = redirect + domains = r2 + check_local_user + allow_fail + file = DIR/aux-var/TESTNUM.exim + owners = root : EXIMUSER + +r3: + driver = redirect + domains = r3 + allow_fail + file = DIR/aux-var/TESTNUM.exim + owners = CALLER + +r4: + driver = redirect + domains = r4 + allow_fail + file = DIR/aux-var/TESTNUM.exim + +r5: + driver = redirect + domains = r5 + check_local_user + allow_fail + file = DIR/aux-var/TESTNUM.exim + no_check_owner + +r6: + driver = redirect + domains = r6 + check_local_user + allow_fail + file = DIR/aux-var/TESTNUM.exim + no_check_owner + modemask = 0 + +r7: + driver = redirect + domains = r7 + check_local_user + allow_fail + file = DIR/aux-var/TESTNUM.exim + no_check_owner + no_check_group + modemask = 0 + +r8: + driver = redirect + domains = r8 + allow_fail + file = DIR/aux-var/TESTNUM.exim + +r9: + driver = redirect + domains = r9 + allow_fail + file = DIR/aux-var/TESTNUM.exim + owngroups = CALLER : EXIMGROUP + +r10: + driver = redirect + domains = r10 + file = DIR/aux-var/TESTNUM.exim + owngroups = CALLER + +r11: + driver = redirect + domains = r11 + file = DIR/aux-var/TESTNUM.exim + owngroups = CALLER : EXIMGROUP + modemask = 007 + +# End diff --git a/test/confs/0273 b/test/confs/0273 new file mode 100644 index 000000000..48bd71909 --- /dev/null +++ b/test/confs/0273 @@ -0,0 +1,89 @@ +# Exim test configuration 0273 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_vrfy = accept +qualify_domain = test.ex + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + domains = r1 + require_files = DIR/aux-var/TESTNUM.exim + +r2: + driver = accept + transport = t1 + domains = r2 + require_files = EXIMUSER : DIR/aux-var/TESTNUM.exim + +r3: + driver = accept + transport = t1 + domains = r3 + require_files = CALLER : DIR/aux-var/TESTNUM.exim + +r4: + driver = accept + transport = t1 + domains = r4 + require_files = non-existant : DIR/aux-var/TESTNUM.exim + +r5: + driver = accept + transport = t1 + domains = r5 + require_files = 1 : DIR/aux-var/TESTNUM.exim + +r6: + driver = accept + transport = t1 + domains = r6 + require_files = EXIMUSER,EXIMGROUP : DIR/aux-var/TESTNUM.exim + +r7: + driver = accept + transport = t1 + domains = r7 + require_files = /non/exist + +r8: + driver = accept + transport = t1 + domains = r8 + require_files = CALLER : +DIR/aux-var/TESTNUM.exim + +r9: + driver = accept + transport = t1 + domains = r9 + require_files = CALLER : +DIR/aux-fixed/TESTNUM.user + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0274 b/test/confs/0274 new file mode 100644 index 000000000..72005a6c4 --- /dev/null +++ b/test/confs/0274 @@ -0,0 +1,92 @@ +# Exim test configuration 0274 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/${if eq{$address_data}{}{$local_part}{$address_data}} + user = CALLER + +# ----- Routers ----- + +begin routers + +# Delivered without changing address_data + +nodata: + driver = accept + local_parts = nodata + transport = t1 + +# Passed to transport +r1: + driver = accept + domains = r1 + address_data = abcd + transport = t1 + +# Passed on after decline + +r2: + driver = redirect + domains = r2 + address_data = xyz + file = /nonexist + +r2a: + driver = accept + domains = r2 + transport = t1 + +# Force fail declines + +r3: + driver = accept + domains = r3 + address_data = ${if eq {1}{0}{xxx}fail} + transport= t1 + +r3a: + driver = accept + domains = r3 + transport = t1 + +# Unforced fail defers + +r4: + driver = accept + domains = r4 + address_data = ${if + transport = t1 + +# Check that redirect preserves + +r5: + driver = redirect + domains = r5 + address_data = redirect + data = nodata@test.ex + + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0275 b/test/confs/0275 new file mode 100644 index 000000000..b96c65bb9 --- /dev/null +++ b/test/confs/0275 @@ -0,0 +1,97 @@ +# Exim test configuration 0275 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist nocache = $local_part +domainlist nocache2 = +nocache +domainlist local_domains = test.ex +domainlist never_domains = never.ex +domainlist n1_domains = never1.ex +domainlist n2_domains = <; never2.ex ; +n1_domains +domainlist hold_domains = ! *.ex +domainlist not_queue_domains = test.ex +domainlist_cache forcecache = $local_part + +hold_domains = +hold_domains +queue_domains = !+not_queue_domains + +percent_hack_domains = +hold_domains : +not_queue_domains : \ + +n2_domains : +local_domains +qualify_domain = test.ex + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# ----- Routers ----- + +begin routers + +r00: + driver = accept + domains = +nocache + transport = t1 + +r01: + driver = accept + domains = +nocache + transport = t1 + +r02: + driver = accept + domains = +nocache2 + transport = t1 + +r03: + driver = accept + domains = +nocache2 + transport = t1 + +r04: + driver = accept + domains = +forcecache + transport = t1 + +r05: + driver = accept + domains = +forcecache + transport = t1 + +r1: + driver = manualroute + domains = +never_domains : +n1_domains : ! +local_domains + route_list = never + transport = t1 + +r2: + driver = dnslookup + domains = +never_domains : +n2_domains : !+local_domains + transport = t1 + +r3: + driver = accept + local_parts = userx + domains = +local_domains + transport = t1 + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0276 b/test/confs/0276 new file mode 100644 index 000000000..96ce20957 --- /dev/null +++ b/test/confs/0276 @@ -0,0 +1,34 @@ +# Exim test configuration 0276 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + +# End diff --git a/test/confs/0277 b/test/confs/0277 new file mode 100644 index 000000000..245936a94 --- /dev/null +++ b/test/confs/0277 @@ -0,0 +1,22 @@ +# Exim test configuration 0277 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +hostlist lookup_hosts = V4NET.2.3.4 +hostlist never_hosts = V4NET.6.7.8 +hostlist n1_hosts = V4NET.1.1.1 +hostlist n2_hosts = <; V4NET.2.2.2 ; +n1_hosts + +host_lookup = +lookup_hosts : !+never_hosts +sender_unqualified_hosts = +lookup_hosts : !+n2_hosts + +# End diff --git a/test/confs/0278 b/test/confs/0278 new file mode 100644 index 000000000..6333840e4 --- /dev/null +++ b/test/confs/0278 @@ -0,0 +1,71 @@ +# Exim test configuration 0278 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +localpartlist local_localparts = CALLER +localpartlist never_localparts = never +localpartlist n1_localparts = never1 +localpartlist n2_localparts = <; never2 ; +n1_localparts +localpartlist expanded = $domain +localpartlist unexpanded = unexpanded + +qualify_domain = test.ex + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + local_parts = +never_localparts : +n1_localparts : ! +local_localparts + route_list = never + transport = t1 + +r2: + driver = dnslookup + local_parts = +never_localparts : +n2_localparts : !+local_localparts + transport = t1 + +r3: + driver = accept + check_local_user + local_parts = +local_localparts + transport = t1 + +r4: + driver = accept + local_parts = +local_localparts : +expanded : +unexpanded + transport = t1 + +# Same, to check not caching when expanding + +r5: + driver = accept + local_parts = +local_localparts : +expanded : +unexpanded + transport = t1 + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0279 b/test/confs/0279 new file mode 100644 index 000000000..1b8306496 --- /dev/null +++ b/test/confs/0279 @@ -0,0 +1,66 @@ +# Exim test configuration 0279 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +addresslist local_addresses = CALLER@test.ex +addresslist never_addresses = never@test.ex +addresslist n1_addresses = never1@test.ex +addresslist n2_addresses = <; never2@test.ex ; +n1_addresses + +domainlist funny_domains = fun.1 : fun.2 + +qualify_domain = test.ex +trusted_users = CALLER + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# ----- Routers ----- + +begin routers + +rr1: + driver = redirect + senders = user1@+funny_domains + allow_fail + data = :fail: matched *@+funny_domains + +r1: + driver = manualroute + senders = +never_addresses : +n1_addresses : ! +local_addresses + route_list = never + transport = t1 + +r2: + driver = dnslookup + senders = +never_addresses : +n2_addresses : !+local_addresses + transport = t1 + +r3: + driver = accept + check_local_user + senders = +local_addresses + transport = t1 + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0280 b/test/confs/0280 new file mode 100644 index 000000000..17134c371 --- /dev/null +++ b/test/confs/0280 @@ -0,0 +1,44 @@ +# Exim test configuration 0280 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +trusted_users = CALLER + +errors_copy = spqr@test.ex CALLER@test.ex : \ + "^(?x) abcd" CALLER@test.ex + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + local_parts = CALLER + transport = t1 + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0281 b/test/confs/0281 new file mode 100644 index 000000000..002bb1654 --- /dev/null +++ b/test/confs/0281 @@ -0,0 +1,79 @@ +# Exim test configuration 0281 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = acl_rcpt_$local_part +allow_domain_literals +hosts_treat_as_local = other1.test.ex + + +# ------ ACLs ------ + +begin acl + +acl_rcpt_1: + require message = domain doesn't match @ or @[] + domains = @ : @[] + accept + +acl_rcpt_2: + require message = domain doesn't match @mx_any + domains = @mx_any + accept + +acl_rcpt_3: + require message = domain doesn't match @mx_primary + domains = @mx_primary + accept + +acl_rcpt_4: + require message = domain doesn't match @mx_secondary + domains = @mx_secondary + accept + +acl_rcpt_5: + require message = host doesn't match @ or @[] + hosts = @ : @[] + accept + + +# ------ Routers ------ + +begin routers + +r1: + driver = dnslookup + domains = ! +local_domains + transport = dev_null + no_more + +r2: + driver = accept + local_parts = CALLER : postmaster + transport = local_delivery + + +# ------ Transports ------ + +begin transports + +dev_null: + driver = appendfile + file = /dev/null + user = CALLER + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0282 b/test/confs/0282 new file mode 100644 index 000000000..0952977ab --- /dev/null +++ b/test/confs/0282 @@ -0,0 +1,38 @@ +# Exim test configuration 0282 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +local_interfaces = <; 127.0.0.1.PORT_D ; [127.0.0.1]:PORT_D2 ; HOSTIPV4 +log_selector = +incoming_interface+incoming_port +queue_only +queue_run_in_order + +# ----- Routers ----- + +begin routers + +all: + driver = accept + transport = local_delivery + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + headers_add = interface-port: $interface_port + +# End diff --git a/test/confs/0283 b/test/confs/0283 new file mode 100644 index 000000000..760109c3c --- /dev/null +++ b/test/confs/0283 @@ -0,0 +1,59 @@ +# Exim test configuration 0283 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +never_users = root + +# ----- Routers ----- + +begin routers + +never: + driver = accept + local_parts = never + transport = t3 + +caller: + driver = accept + local_parts = CALLER + transport = t2 + +rest: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = pipe + command = DIR/bin/showids + return_output + +t2: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t3: + driver = appendfile + file = DIR/test-mail/$local_part + user = root + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + +# End diff --git a/test/confs/0284 b/test/confs/0284 new file mode 100644 index 000000000..0ec0b0f93 --- /dev/null +++ b/test/confs/0284 @@ -0,0 +1,66 @@ +# Exim test configuration 0284 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + address_data = ${if match{$local_part}{^(.)}{$1}} + transport = ${if match{$local_part}{^.*-(.*)\$}{$1}fail} + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + batch_max = 100 + file = DIR/test-mail/batched + envelope_to_add + user = CALLER + +t2: + driver = appendfile + batch_max = 100 + file = DIR/test-mail/$local_part + envelope_to_add + user = CALLER + +t3: + driver = appendfile + batch_max = 100 + file = DIR/test-mail/$domain + envelope_to_add + user = CALLER + +t4: + driver = appendfile + batch_max = 100 + batch_id = $address_data + file = DIR/test-mail/batched + envelope_to_add + user = CALLER + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + +# End diff --git a/test/confs/0285 b/test/confs/0285 new file mode 100644 index 000000000..f58324817 --- /dev/null +++ b/test/confs/0285 @@ -0,0 +1,53 @@ +# Exim test configuration 0285 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +remote_max_parallel = 1 + + +# ----- Routers ----- + +begin routers + +bounces: + driver = redirect + senders = : + data = :blackhole: + +all: + driver = manualroute + route_list = * 127.0.0.1 byname + self = send + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + max_rcpt = 2 + connection_max_messages = 3 + + +# ----- Retry ----- + + +begin retry + +* * F,1h,10m + + +# End diff --git a/test/confs/0286 b/test/confs/0286 new file mode 100644 index 000000000..b7746b5e7 --- /dev/null +++ b/test/confs/0286 @@ -0,0 +1,54 @@ +# Exim test configuration 0286 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_only +remote_max_parallel = 2 + + +# ----- Routers ----- + +begin routers + +bounces: + driver = redirect + senders = : + data = :blackhole: + +all: + driver = manualroute + route_list = * 127.0.0.1 byname + self = send + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + max_rcpt = 2 + connection_max_messages = 3 + + +# ----- Retry ----- + + +begin retry + +* * F,1h,10m + + +# End diff --git a/test/confs/0287 b/test/confs/0287 new file mode 100644 index 000000000..a355a8b36 --- /dev/null +++ b/test/confs/0287 @@ -0,0 +1,17 @@ +# Exim test configuration 0287 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_etrn = accept +smtp_etrn_command = /bin/sleep 1 + +# End diff --git a/test/confs/0288 b/test/confs/0288 new file mode 100644 index 000000000..938e08ed5 --- /dev/null +++ b/test/confs/0288 @@ -0,0 +1,50 @@ +# Exim test configuration 0288 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order +remote_max_parallel = 2 + + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + route_list = * 127.0.0.1 + self = send + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + max_rcpt = 1 + connection_max_messages = 1 + serialize_hosts = 127.0.0.1 + + +# ----- Retry ----- + + +begin retry + +* * F,1h,10m + + +# End diff --git a/test/confs/0289 b/test/confs/0289 new file mode 100644 index 000000000..8e526084b --- /dev/null +++ b/test/confs/0289 @@ -0,0 +1,38 @@ +# Exim test configuration 0289 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +recipients_max = 1 + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + transport = local_delivery + + +# ------ Transports ------ + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0290 b/test/confs/0290 new file mode 100644 index 000000000..312aacd9b --- /dev/null +++ b/test/confs/0290 @@ -0,0 +1,34 @@ +# Exim test configuration 0290 + +FOOBAR= +FOO=inc1 +BAR=.include "DIR/aux-fixed/TESTNUM.inc2" +RT = receive_timeout = 1s + +C1=# +C2=# +C1C2 this should be a comment + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + +FOOBAR .include DIR/aux-fixed/TESTNUM.FOO + +RT + +remote_sort_domains = a:b:c + +local_interfaces = 127.0.0.1 : \ + .include DIR/aux-fixed/TESTNUM.inc3 + HOSTIPV4 + +# End diff --git a/test/confs/0291 b/test/confs/0291 new file mode 100644 index 000000000..e7506373c --- /dev/null +++ b/test/confs/0291 @@ -0,0 +1,39 @@ +# Exim test configuration 0291 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + + +# ------ Routers ------ + +begin routers + +# a=>b and b=>c +r1: + driver = redirect + domains = one + data = ${if eq{$local_part}{a}{b}{${if eq{$local_part}{b}{c}}}} + qualify_preserve_domain + +# a=>b and b=>c, but not if generated by a +r2: + driver = redirect + domains = two + data = ${if eq{$local_part}{a}{b}{${if eq{$local_part}{b}{c}}}} + qualify_preserve_domain + no_repeat_use + +accept: + driver = accept + verify_only + +# End diff --git a/test/confs/0292 b/test/confs/0292 new file mode 100644 index 000000000..1dd0769d0 --- /dev/null +++ b/test/confs/0292 @@ -0,0 +1,48 @@ +# Exim test configuration 0292 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + + +# ------ Routers ------ + +begin routers + +r1: + driver = manualroute + domains = t1 + route_list = * host.1:host.2 + transport = t1 + +r2: + driver = manualroute + domains = t2 + route_list = * 127.0.0.1:ten-1.test.ex bydns + transport = t2 + self = send + + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = /dev/null + debug_print = \$host=$host \$host_address=$host_address + user = CALLER + +t2: + driver = smtp + debug_print = \$host=$host \$host_address=$host_address + +# End diff --git a/test/confs/0293 b/test/confs/0293 new file mode 100644 index 000000000..3a402d410 --- /dev/null +++ b/test/confs/0293 @@ -0,0 +1,39 @@ +# Exim test configuration 0293 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +smtp_accept_queue_per_connection = 1 +smtp_accept_max_per_connection = 2 +no_write_rejectlog + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + transport = t1 + + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0294 b/test/confs/0294 new file mode 100644 index 000000000..f4b9e73be --- /dev/null +++ b/test/confs/0294 @@ -0,0 +1,40 @@ +# Exim test configuration 0294 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + +acl_smtp_rcpt = deny local_parts = reject\n accept + +smtp_ratelimit_mail = 1,1s,5,2s +smtp_ratelimit_rcpt = 1, 0.25s, 1.05, 1s +smtp_ratelimit_hosts = : V4NET.9.8.7 + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + transport = t1 + + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0295 b/test/confs/0295 new file mode 100644 index 000000000..cd85c4525 --- /dev/null +++ b/test/confs/0295 @@ -0,0 +1,37 @@ +# Exim test configuration 0295 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + +log_selector = +return_path_on_delivery +received_headers_max = 2 + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + transport = t1 + + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0296 b/test/confs/0296 new file mode 100644 index 000000000..194f4043c --- /dev/null +++ b/test/confs/0296 @@ -0,0 +1,36 @@ +# Exim test configuration 0296 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +admin_groups = CALLER +trusted_users = CALLER +system_filter = DIR/aux-fixed/TESTNUM.Filter + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + transport = t1 + + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0297 b/test/confs/0297 new file mode 100644 index 000000000..8f6b6d5c6 --- /dev/null +++ b/test/confs/0297 @@ -0,0 +1,51 @@ +# Exim test configuration 0297 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +system_filter = DIR/aux-fixed/TESTNUM.Filter +system_filter_file_transport = ${if eq {$address_file}{/a/b/c}{tf1}{tf2}} +system_filter_directory_transport = ${if match{$address_file}{//\$}{td2}{td1}} +trusted_users = CALLER + +# ------ Routers ------ + +begin routers + +r1: + driver = redirect + data = $local_part + file_transport = ${if eq {$address_file}{/a/b/c}{tf1}{tf2}} + directory_transport = ${if match{$address_file}{//\$}{td2}{td1}} + user = CALLER + + +# ------ Transports ------ + +begin transports + +tf1: + driver = appendfile + user = CALLER + +tf2: + driver = appendfile + user = CALLER + +td1: + driver = appendfile + user = CALLER + +td2: + driver = appendfile + user = CALLER + +# End diff --git a/test/confs/0298 b/test/confs/0298 new file mode 100644 index 000000000..13c277985 --- /dev/null +++ b/test/confs/0298 @@ -0,0 +1,43 @@ +# Exim test configuration 0298 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt +system_filter = DIR/aux-fixed/TESTNUM.Filter + + +# ------ ACL ------ + +begin acl + +check_rcpt: + accept + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + transport = t1 + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0299 b/test/confs/0299 new file mode 100644 index 000000000..0dc862f0a --- /dev/null +++ b/test/confs/0299 @@ -0,0 +1,54 @@ +# Exim test configuration 347 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = +delivery_size +remote_max_parallel = 1 + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + domains = test.ex + transport = t1 + +r2: + driver = accept + transport = t2 + + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + shadow_transport = t3 + +t2: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + max_rcpt = 2 + +t3: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0300 b/test/confs/0300 new file mode 100644 index 000000000..c22dd5d03 --- /dev/null +++ b/test/confs/0300 @@ -0,0 +1,44 @@ +# Exim test configuration 0300 + +DELAY=0s +PAH=127.0.0.1 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_connect = check_connect +acl_smtp_helo = check_helo +acl_smtp_rcpt = accept +pipelining_advertise_hosts = PAH + + +# ----- ACL ----- + +begin ACL + +check_connect: + accept delay = DELAY + +check_helo: + warn condition = ${if eq {$sender_helo_name}{dis.able}{yes}{no}} + control = no_enforce_sync + accept + + +# ------ Routers ------ + +begin routers + +r1: + driver = redirect + data = :blackhole: + +# End diff --git a/test/confs/0301 b/test/confs/0301 new file mode 100644 index 000000000..381324372 --- /dev/null +++ b/test/confs/0301 @@ -0,0 +1,30 @@ +# Exim test configuration 0301 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_helo = check_helo +acl_smtp_rcpt = accept +smtp_enforce_sync = no +queue_only + + +# ----- ACL ----- + +begin ACL + +check_helo: + warn condition = ${if eq {$sender_helo_name}{en.force}{yes}{no}} + control = enforce_sync + accept + + +# End diff --git a/test/confs/0302 b/test/confs/0302 new file mode 100644 index 000000000..1261815ad --- /dev/null +++ b/test/confs/0302 @@ -0,0 +1,40 @@ +# Exim test configuration 0302 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = +delivery_size +queue_only + + +# ------ Routers ------ + +begin routers + +r1: + driver = redirect + local_parts = ^defer + allow_defer + data = :defer: forced defer + retry_use_local_part + +r2: + driver = redirect + data = :blackhole: + + +# ------ Retry ------ + +begin retry + +* * F,1d,10m + +# End diff --git a/test/confs/0303 b/test/confs/0303 new file mode 100644 index 000000000..b5ffa4573 --- /dev/null +++ b/test/confs/0303 @@ -0,0 +1,17 @@ +# Exim test configuration 0303 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +trusted_users = CALLER + +# End diff --git a/test/confs/0304 b/test/confs/0304 new file mode 100644 index 000000000..d31627f24 --- /dev/null +++ b/test/confs/0304 @@ -0,0 +1,66 @@ +# Exim test configuration 0304 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = acl1 + +# ----- ACLs ----- + +begin acl + +acl1: + deny message = failed 1 + recipients = \N^abc.*@.*\.x\.y\.z\N : a@b + + deny message = failed 2 + recipients = lsearch*@;DIR/aux-fixed/TESTNUM.d1 + + deny message = failed 3 + recipients = @@lsearch;DIR/aux-fixed/TESTNUM.d2 + + deny message = failed 4 + recipients = domain.only : *.domain2.only + + deny message = failed 5 + recipients = abc@domain3 : xyz@*.domain4 + + deny message = failed 6 + recipients = pqr@@ + + deny message = failed 7 + senders = : + recipients = b1@x + + deny message = failed 8 + senders = ^\$ + recipients = b2@x + + deny message = failed 9 + recipients = *@lsearch;DIR/aux-fixed/TESTNUM.d3 + + deny message = failed 10 + recipients = xyz@lsearch;DIR/aux-fixed/TESTNUM.d4 + + deny message = failed 11 + recipients = lsearch*@;DIR/aux-fixed/TESTNUM.d5 + + accept + + + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/0305 b/test/confs/0305 new file mode 100644 index 000000000..7283f14a5 --- /dev/null +++ b/test/confs/0305 @@ -0,0 +1,36 @@ +# Exim test configuration 0305 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist ok_domains = ${if eq{$domain}{ten-1.test.ex}{$domain}} + +acl_smtp_rcpt = acl1 + +# ----- ACLs ----- + +begin acl + +acl1: + accept domains = +ok_domains + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + domains = +ok_domains + verify_only + + +# End diff --git a/test/confs/0306 b/test/confs/0306 new file mode 100644 index 000000000..85117e017 --- /dev/null +++ b/test/confs/0306 @@ -0,0 +1,80 @@ +# Exim test configuration 0306 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = rcpt +trusted_users = CALLER + + +# ------ ACLs ------ + +begin acl + +rcpt: + accept endpass + verify = recipient + + +# ------ Routers ------ + +begin routers + +r1: + driver = redirect + domains = lists.test.ex + local_part_suffix = -request + file = DIR/aux-fixed/TESTNUM/$local_part$local_part_suffix + +r2: + driver = redirect + domains = lists.test.ex + senders = ${if exists {DIR/aux-fixed/TESTNUM/$local_part}\ + {lsearch;DIR/aux-fixed/TESTNUM/$local_part}{*}} + file = DIR/aux-fixed/TESTNUM/$local_part + forbid_pipe + forbid_file + one_time + skip_syntax_errors + errors_to = $local_part-request@lists.test.ex + syntax_errors_to = $local_part-request@lists.test.ex + +r3: + driver = redirect + domains = lists.test.ex + allow_fail + data = :fail: $local_part@lists.test.ex is a closed mailing list + +r4: + driver = accept + senders = : + transport = t1 + +r5: + driver = accept + transport = t2 + + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t2: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0307 b/test/confs/0307 new file mode 100644 index 000000000..901ed1d85 --- /dev/null +++ b/test/confs/0307 @@ -0,0 +1,70 @@ +# Exim test configuration 356 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +trusted_users = CALLER + + +# ------ Routers ------ + +begin routers + +r1: + driver = redirect + domains = lists.test.ex + local_part_suffix = -request + local_part_suffix_optional + senders = ${if eq {$local_part_suffix}{-request}{*}\ + {\ + ${if exists {DIR/aux-fixed/TESTNUM/$local_part}\ + {lsearch;DIR/aux-fixed/TESTNUM/$local_part}{*}}\ + }} + file = DIR/aux-fixed/TESTNUM/$local_part$local_part_suffix + forbid_pipe + forbid_file + one_time + skip_syntax_errors + errors_to = $local_part-request@lists.test.ex + syntax_errors_to = $local_part-request@lists.test.ex + +r2: + driver = redirect + domains = lists.test.ex + allow_fail + data = :fail: $local_part@lists.test.ex is a closed mailing list + +r3: + driver = accept + senders = : + transport = t1 + +r4: + driver = accept + transport = t2 + + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t2: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0308 b/test/confs/0308 new file mode 100644 index 000000000..cab9279e7 --- /dev/null +++ b/test/confs/0308 @@ -0,0 +1,25 @@ +# Exim test configuration 0308 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +# Use first three components of address to select ACL +acl_smtp_rcpt = acl_${sg{${tr{$sender_host_address}{.}{_}}}{^(.*)_.*\$}{\$1}} + +# ----- ACLs ----- + +begin acl + +acl_V4NET_0_0: + accept hosts = *.test.ex + accept hosts = V4NET.0.0.97 + +# End diff --git a/test/confs/0309 b/test/confs/0309 new file mode 100644 index 000000000..f8ed89e55 --- /dev/null +++ b/test/confs/0309 @@ -0,0 +1,47 @@ +# Exim test configuration 0309 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + + +# ----- Routers ----- + +begin routers + +bounce: + driver = accept + senders = : + transport = bounce + +all: + driver = accept + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + message_size_limit = $local_part + user = CALLER + +bounce: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0310 b/test/confs/0310 new file mode 100644 index 000000000..74ba773ae --- /dev/null +++ b/test/confs/0310 @@ -0,0 +1,46 @@ +# Exim test configuration 0310 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +no_bounce_return_message + +# ----- Routers ----- + +begin routers + +bounce: + driver = accept + senders = : + transport = bounce + +all: + driver = accept + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + quota = 5 + user = CALLER + +bounce: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0311 b/test/confs/0311 new file mode 100644 index 000000000..34a99b6c5 --- /dev/null +++ b/test/confs/0311 @@ -0,0 +1,18 @@ +# Exim test configuration 0311 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +DYNAMIC_OPTION= + +DYNAMIC_OPTION + +# End diff --git a/test/confs/0312 b/test/confs/0312 new file mode 100644 index 000000000..a9566983e --- /dev/null +++ b/test/confs/0312 @@ -0,0 +1,24 @@ +# Exim test configuration 0312 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt + +# ------ ACL ------ + +begin acl + +check_rcpt: + deny dnslists = +defer_unknown : test.again.dns + accept + +# End diff --git a/test/confs/0313 b/test/confs/0313 new file mode 100644 index 000000000..e773e3bf1 --- /dev/null +++ b/test/confs/0313 @@ -0,0 +1,37 @@ +# Exim test configuration 0313 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + local_parts = filter + file = DIR/test-holey + allow_filter + user = CALLER + +r2: + driver = redirect + local_parts = include + data = :include:DIR/test-holey + + +# ------ Retry ------ + +begin retry + +* * F,1d,1h + +# End diff --git a/test/confs/0314 b/test/confs/0314 new file mode 100644 index 000000000..78ebf2156 --- /dev/null +++ b/test/confs/0314 @@ -0,0 +1,15 @@ +# Exim test configuration 0314 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +host_reject_connection = V4NET.0.0.1 + +# End diff --git a/test/confs/0315 b/test/confs/0315 new file mode 100644 index 000000000..69525e734 --- /dev/null +++ b/test/confs/0315 @@ -0,0 +1,37 @@ +# Exim test configuration 0315 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +remote_max_parallel = 1 + +# ------ Routers ------ + +begin routers + +r1: + driver = dnslookup + domains = ten-1.test.ex + transport = t1 + same_domain_copy_routing + +r2: + driver = dnslookup + transport = t1 + + +# ------ Transports ------ + +begin transports + +t1: + driver = smtp + +# End diff --git a/test/confs/0316 b/test/confs/0316 new file mode 100644 index 000000000..b953e6f51 --- /dev/null +++ b/test/confs/0316 @@ -0,0 +1,15 @@ +# Exim test configuration 0316 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# End diff --git a/test/confs/0317 b/test/confs/0317 new file mode 100644 index 000000000..0c3d9e5fb --- /dev/null +++ b/test/confs/0317 @@ -0,0 +1,16 @@ +# Exim test configuration 0317 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +# End diff --git a/test/confs/0318 b/test/confs/0318 new file mode 100644 index 000000000..f4872b1b5 --- /dev/null +++ b/test/confs/0318 @@ -0,0 +1,44 @@ +# Exim test configuration 0318 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + directory = DIR/test-mail + directory_file = $local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0319 b/test/confs/0319 new file mode 100644 index 000000000..62ad75b24 --- /dev/null +++ b/test/confs/0319 @@ -0,0 +1,54 @@ +# Exim test configuration 0319 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +filter: + driver = redirect + allow_filter + file = DIR/aux-var/TESTNUM.filter + file_transport = address_file + user = CALLER + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +address_file: + driver = appendfile + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0320 b/test/confs/0320 new file mode 100644 index 000000000..d14802b7b --- /dev/null +++ b/test/confs/0320 @@ -0,0 +1,41 @@ +# Exim test configuration 0320 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +qualify_domain = test.ex + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept local_parts = DIR/aux-fixed/TESTNUM.list : +caseful : LP10 + +# ----- Routers ----- + +begin routers + + +# ----- Transports ----- + +begin transports + + +# ----- Retry ----- + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0321 b/test/confs/0321 new file mode 100644 index 000000000..c5227a37c --- /dev/null +++ b/test/confs/0321 @@ -0,0 +1,61 @@ +# Exim test configuration 0321 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + condition = ${if eq {$received_protocol}{scanned-ok} {0}{1}} + senders = ! : + driver = accept + transport = pipe + +r2: + driver = accept + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +pipe: + driver = pipe + command = /non/exist/command -f <$sender_address> -d $pipe_addresses + message_prefix = + message_suffix = + check_string = + escape_string = + return_output = false + return_path_add = false + user = CALLER + path = /bin:/sbin:/usr/bin:/usr/sbin + current_directory = / + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0322 b/test/confs/0322 new file mode 100644 index 000000000..a33232ee6 --- /dev/null +++ b/test/confs/0322 @@ -0,0 +1,43 @@ +# Exim test configuration 0322 + +LS= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = LS + +# ----- Routers ----- + +begin routers + +null: + driver = redirect + senders = : + data = :blackhole: + +remote: + driver = accept + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_S + + +# End diff --git a/test/confs/0323 b/test/confs/0323 new file mode 100644 index 000000000..a6d18c5d1 --- /dev/null +++ b/test/confs/0323 @@ -0,0 +1,34 @@ +# Exim test configuration 0323 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + transport = t1 + route_list = * "${lookup{'$domain'} lsearch{DIR/aux-fixed/TESTNUM.lookup}}" + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0324 b/test/confs/0324 new file mode 100644 index 000000000..a725195ae --- /dev/null +++ b/test/confs/0324 @@ -0,0 +1,36 @@ +# Exim test configuration 0324 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + headers_add = X-match: ${if match{$message_headers}{final}{YES}{NO}}\n\ + Y-match: ${if match{$h_X-Long:}{final}{YES}{NO}}\n\ + Z-match: ${if match{$h_X-LONG:}{another}{YES}{NO}} + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0325 b/test/confs/0325 new file mode 100644 index 000000000..f56b01bd7 --- /dev/null +++ b/test/confs/0325 @@ -0,0 +1,80 @@ +# Exim test configuration 0325 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist test_domains = lsearch; DIR/aux-fixed/TESTNUM.data +localpartlist test_local_parts = lsearch;DIR/aux-fixed/TESTNUM.data + +acl_smtp_rcpt = a1 + +# ----- ACLs ----- + +begin ACL + +a1: + accept domains = +test_domains + local_parts = +test_local_parts + condition = ${if eq{$domain_data/$local_part_data}\ + {DOMAIN DATA/LOCAL PART DATA}{no}{yes}} + + deny domains = +test_domains + local_parts = +test_local_parts + message = \$domain_data=$domain_data \$local_part_data=$local_part_data + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + domains = lsearch;DIR/aux-fixed/TESTNUM.data + local_parts = lsearch;DIR/aux-fixed/TESTNUM.data + data = + debug_print = r1: \$domain_data = $domain_data\n\ + r1: \$local_part_data = $local_part_data + +r2: + driver = redirect + domains = lsearch;DIR/aux-fixed/TESTNUM.data + local_parts = lsearch;DIR/aux-fixed/TESTNUM.data + data = + debug_print = r2: \$domain_data = $domain_data\n\ + r2: \$local_part_data = $local_part_data + +r3: + driver = redirect + domains = +test_domains + local_parts = +test_local_parts + data = + debug_print = r3: \$domain_data = $domain_data\n\ + r3: \$local_part_data = $local_part_data + +r4: + driver = accept + domains = +test_domains + local_parts = +test_local_parts + transport = t1 + debug_print = r4: \$domain_data = $domain_data\n\ + r4: \$local_part_data = $local_part_data + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0326 b/test/confs/0326 new file mode 100644 index 000000000..4b4f49fcc --- /dev/null +++ b/test/confs/0326 @@ -0,0 +1,49 @@ +# Exim test configuration 0326 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- ACLs ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + allow_filter + local_part_prefix = *- + local_part_prefix_optional + local_part_suffix = +* + local_part_suffix_optional + file = DIR/aux-var/TESTNUM.filter + user = EXIMUSER + headers_add = "OLP: $original_local_part" + +r2: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0327 b/test/confs/0327 new file mode 100644 index 000000000..c055df0e6 --- /dev/null +++ b/test/confs/0327 @@ -0,0 +1,56 @@ +# Exim test configuration 0327 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- ACLs ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + data = $local_part@$domain + +r2: + driver = redirect + data = $local_part@$domain + +r3: + driver = accept + transport = t1 + unseen + +r4: + driver = accept + transport = t2 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t2: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0328 b/test/confs/0328 new file mode 100644 index 000000000..29d732a60 --- /dev/null +++ b/test/confs/0328 @@ -0,0 +1,39 @@ +# Exim test configuration 0328 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +system_filter = DIR/aux-fixed/TESTNUM.F + + +# ----- ACLs ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0329 b/test/confs/0329 new file mode 100644 index 000000000..4caeab003 --- /dev/null +++ b/test/confs/0329 @@ -0,0 +1,40 @@ +# Exim test configuration 0329 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +system_filter = DIR/aux-fixed/TESTNUM.F +system_filter_user = EXIMUSER + + +# ----- ACLs ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0330 b/test/confs/0330 new file mode 100644 index 000000000..d4ab3d46b --- /dev/null +++ b/test/confs/0330 @@ -0,0 +1,49 @@ +# Exim test configuration 0330 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +alias: + driver = redirect + data = ${if eq {$local_part}{UserY}{userz1}\ + {${if eq {$local_part}{usery}{userz2}{}}}} + caseful_local_part + +forward: + driver = redirect + check_ancestor + no_check_local_user + file = DIR/aux-fixed/TESTNUM.forward + +deliver: + driver = accept + local_parts = ^userz + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + envelope_to_add + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0331 b/test/confs/0331 new file mode 100644 index 000000000..ff3bf416c --- /dev/null +++ b/test/confs/0331 @@ -0,0 +1,37 @@ +# Exim test configuration 0331 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +log_selector = +address_rewrite + +# ----- Rewrite ----- + +begin rewrite + +^x@y p@q S +\N^a@b p@q S +2047@x.y "AÄÅÆZ <2047@x.y>" w +unq1@x.y "a phrase <unq1>" w +unq2@x.y "a phrase <unq2>" wQ +unq3@x.y unq3 wQ + +4@x.y "a 4. phrase <4@22> (a comment AÄÅÆZ)" w + +fw@fw "harry <fw@we.de>" fw +fw@* harry@we.de f + +gw@fw "härry <gw@we.de>" fw +gw@* harry@we.de f + +abc@abc was-$local_part@abc + +# End diff --git a/test/confs/0332 b/test/confs/0332 new file mode 100644 index 000000000..f9ad188d6 --- /dev/null +++ b/test/confs/0332 @@ -0,0 +1,51 @@ +# Exim test configuration 0332 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + domains = no.delay + transport = t1 + +r2: + driver = dnslookup + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + hosts_override + port = PORT_S + + +# ----- Retry ----- + +begin retry + +* * F,1d,10m + + +# End diff --git a/test/confs/0333 b/test/confs/0333 new file mode 100644 index 000000000..3e97eb804 --- /dev/null +++ b/test/confs/0333 @@ -0,0 +1,50 @@ +# Exim test configuration 0333 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + domains = no.delay + transport = t1 + +r2: + driver = dnslookup + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + hosts_override + port = PORT_S + + +# ----- Retry ----- + +begin retry + +* * F,1d,10m + + +# End diff --git a/test/confs/0334 b/test/confs/0334 new file mode 100644 index 000000000..54c547db3 --- /dev/null +++ b/test/confs/0334 @@ -0,0 +1,42 @@ +# Exim test configuration 0334 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + route_list = * 0.0.0.0 + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + + +# ----- Retry ----- + +begin retry + +* * F,1d,10m + + +# End diff --git a/test/confs/0335 b/test/confs/0335 new file mode 100644 index 000000000..b6f6281af --- /dev/null +++ b/test/confs/0335 @@ -0,0 +1,48 @@ +# Exim test configuration 0335 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + +r2: + driver = accept + transport = ${if match{$local_part}{^batch}{t2}{t1}} + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + envelope_to_add + +t2: + driver = appendfile + file = DIR/test-mail/batch + user = CALLER + envelope_to_add + batch_max = 10 + + +# End diff --git a/test/confs/0336 b/test/confs/0336 new file mode 100644 index 000000000..fb6b05f23 --- /dev/null +++ b/test/confs/0336 @@ -0,0 +1,37 @@ +# Exim test configuration 0336 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + + +# End diff --git a/test/confs/0337 b/test/confs/0337 new file mode 100644 index 000000000..4a8f4e48e --- /dev/null +++ b/test/confs/0337 @@ -0,0 +1,38 @@ +# Exim test configuration 0337 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + errors_to = postmaster@test.ex + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + + +# End diff --git a/test/confs/0338 b/test/confs/0338 new file mode 100644 index 000000000..506a5ba3a --- /dev/null +++ b/test/confs/0338 @@ -0,0 +1,58 @@ +# Exim test configuration 0338 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +alias: + driver = redirect + local_parts = !\N^a\d\-\N + data = a1-$local_part@$domain, a2-$local_part@$domain + errors_to = postmaster@$domain + one_time + +defer: + driver = redirect + local_parts = ^a1- + condition = ${if first_delivery{yes}{no}} + allow_defer + data = :defer: forced defer + +accept: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5m,1d + +# End diff --git a/test/confs/0339 b/test/confs/0339 new file mode 100644 index 000000000..720481cca --- /dev/null +++ b/test/confs/0339 @@ -0,0 +1,39 @@ +# Exim test configuration 0339 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + transport = t1 + + +# ------ Transports ------ + +begin transports + +t1: + driver = pipe + user = CALLER + + +# ------ Retry ------ + +begin retry + +* * F,1d,15m + +# End diff --git a/test/confs/0340 b/test/confs/0340 new file mode 100644 index 000000000..2184b4d8c --- /dev/null +++ b/test/confs/0340 @@ -0,0 +1,25 @@ +# Exim test configuration 0340 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + + +# ------ ACL ------ + +begin acl + +check_recipient: + deny dnslists = rbl.test.ex + accept + +# End diff --git a/test/confs/0341 b/test/confs/0341 new file mode 100644 index 000000000..1719d5d47 --- /dev/null +++ b/test/confs/0341 @@ -0,0 +1,57 @@ +# Exim test configuration 0341 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +queue_only + + +# ----- Routers ----- + +begin routers + +# Use an expansion for errors_to to force different copies of the string + +local: + driver = accept + domains = test.ex + transport = local_delivery + errors_to = postmaster@$domain + +remote: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + transport = send_to_server + errors_to = mailmaster@$domain + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/mailbox + user = CALLER + batch_max = 10 + envelope_to_add + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_D + + +# End diff --git a/test/confs/0342 b/test/confs/0342 new file mode 100644 index 000000000..4c55b2381 --- /dev/null +++ b/test/confs/0342 @@ -0,0 +1,53 @@ +# Exim test configuration 0342 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt + + +# ----- ACLs ----- + +begin acl + +check_rcpt: + deny message = unverifiable + !verify = recipient + accept + + +# ----- Routers ----- + +begin routers + +dnslookup: + driver = dnslookup + transport = remote_smtp + widen_domains = test.ex + + +# ----- Transports ----- + +begin transports + +remote_smtp: + driver = smtp + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0343 b/test/confs/0343 new file mode 100644 index 000000000..a69498934 --- /dev/null +++ b/test/confs/0343 @@ -0,0 +1,43 @@ +# Exim test configuration 0343 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + transport = remote_smtp + + +# ----- Transports ----- + +begin transports + +remote_smtp: + driver = smtp + hosts = 127.0.0.1 + allow_localhost + port = PORT_N + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10m + + +# End diff --git a/test/confs/0344 b/test/confs/0344 new file mode 100644 index 000000000..52437504e --- /dev/null +++ b/test/confs/0344 @@ -0,0 +1,59 @@ +# Exim test configuration 0344 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + domains = d1 + route_data = 192.168.4.3 t1 + +r2: + driver = manualroute + route_list = d2 V4NET.9.8.7 t2 + +r3: + driver = manualroute + transport = t3 + route_list = d30 1.2.3.4 t4 ; d31 1.2.3.4 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +t2: + driver = smtp + +t3: + driver = smtp + +t4: + driver = smtp + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10m + + +# End diff --git a/test/confs/0345 b/test/confs/0345 new file mode 100644 index 000000000..d0e855f7b --- /dev/null +++ b/test/confs/0345 @@ -0,0 +1,50 @@ +# Exim test configuration 0345 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex +ignore_bounce_errors_after = 0s +admin_groups = CALLER + + +# ----- Routers ----- + +begin routers + +smart: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + quota = 20 + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* quota_7d +* quota F,1h,20s +* * F,1d,15m + +# End diff --git a/test/confs/0346 b/test/confs/0346 new file mode 100644 index 000000000..770eba91f --- /dev/null +++ b/test/confs/0346 @@ -0,0 +1,58 @@ +# Exim test configuration 0346 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + domains = dom2 + data = $local_part@dom1 + +r2: + driver = redirect + domains = dom1 + allow_filter + user = CALLER + data = "#Exim filter\n unseen deliver x@dom2" + +r3: + driver = accept + domains = dom1 + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + envelope_to_add + + +# ----- Retry ----- + + +begin retry + +* * F,1d,15m + +# End diff --git a/test/confs/0347 b/test/confs/0347 new file mode 100644 index 000000000..91da97aef --- /dev/null +++ b/test/confs/0347 @@ -0,0 +1,51 @@ +# Exim test configuration 0347 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + self = pass + route_list = * 127.0.0.1 + +r2: + driver = accept + transport = t1 + + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + batch_max = 100 + file = /dev/null + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,1d,15m + +# End diff --git a/test/confs/0348 b/test/confs/0348 new file mode 100644 index 000000000..ecbc00785 --- /dev/null +++ b/test/confs/0348 @@ -0,0 +1,27 @@ +# Exim test configuration 0348 + +RETRY=G,1,20m,1.5 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex + + +# ----- Retry ----- + + +begin retry + +* * RETRY + +# End diff --git a/test/confs/0349 b/test/confs/0349 new file mode 100644 index 000000000..edede234e --- /dev/null +++ b/test/confs/0349 @@ -0,0 +1,40 @@ +# Exim test configuration 0349 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + pipe_transport = t1 + allow_filter + data = "#Exim filter\npipe xxxx\n" + user = CALLER + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/${substr_1:$address_pipe} + user = CALLER + + +# End diff --git a/test/confs/0350 b/test/confs/0350 new file mode 100644 index 000000000..8dec55d70 --- /dev/null +++ b/test/confs/0350 @@ -0,0 +1,34 @@ +# Exim test configuration 592 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + ignore_target_hosts = ${if eq{$host_address}{V4NET.12.3.1}{$host_address}{}} + route_list = * 1.2.3.4:other2.test.ex + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +# End diff --git a/test/confs/0351 b/test/confs/0351 new file mode 100644 index 000000000..78820f2d9 --- /dev/null +++ b/test/confs/0351 @@ -0,0 +1,50 @@ +# Exim test configuration 0351 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex +system_filter = DIR/aux-fixed/TESTNUM.F + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + headers_add = ${if !eq{$h_found2:}{}{FOUND-found2: !!}fail} + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + user = CALLER + file = DIR/test-mail/$local_part + headers_add = "\n\ + TO: $h_to:\n\ + --------------------------------\n\ + CC: $h_cc:\n\ + --------------------------------\n\ + RESENT-TO: $h_resent-to:\n\ + --------------------------------\n\ + REPLY-TO: $h_reply-to:\n\ + --------------------------------\n\ + SUBJECT: $h_subject:\n\ + --------------------------------\n\ + ALL: $message_headers\n\ + " + +# End diff --git a/test/confs/0352 b/test/confs/0352 new file mode 100644 index 000000000..a2ae86ff1 --- /dev/null +++ b/test/confs/0352 @@ -0,0 +1,36 @@ +# Exim test configuration 0352 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex +system_filter = DIR/aux-fixed/TESTNUM.F + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + user = CALLER + file = DIR/test-mail/$local_part + +# End diff --git a/test/confs/0353 b/test/confs/0353 new file mode 100644 index 000000000..5fdd04e9e --- /dev/null +++ b/test/confs/0353 @@ -0,0 +1,36 @@ +# Exim test configuration 0353 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex +system_filter = non/absolute/file + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + user = CALLER + file = DIR/test-mail/$local_part + +# End diff --git a/test/confs/0354 b/test/confs/0354 new file mode 100644 index 000000000..d40b4f553 --- /dev/null +++ b/test/confs/0354 @@ -0,0 +1,37 @@ +# Exim test configuration 0354 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex +system_filter = non-absolute-file +system_filter_user = EXIMUSER + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + user = CALLER + file = DIR/test-mail/$local_part + +# End diff --git a/test/confs/0355 b/test/confs/0355 new file mode 100644 index 000000000..9b86cca2e --- /dev/null +++ b/test/confs/0355 @@ -0,0 +1,39 @@ +# Exim test configuration 0355 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r0: + driver = redirect + file = .forward + +r1: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + user = CALLER + file = DIR/test-mail/$local_part + +# End diff --git a/test/confs/0356 b/test/confs/0356 new file mode 100644 index 000000000..e93211904 --- /dev/null +++ b/test/confs/0356 @@ -0,0 +1,35 @@ +# Exim test configuration 0356 + +MESSAGE_LOGS = + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +MESSAGE_LOGS +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r0: + driver = redirect + allow_defer + data = :defer: forced defer + + +# ----- Retry ----- + +begin retry + +* * F,1d,1h + +# End diff --git a/test/confs/0357 b/test/confs/0357 new file mode 100644 index 000000000..560676b14 --- /dev/null +++ b/test/confs/0357 @@ -0,0 +1,42 @@ +# Exim test configuration 0357 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + allow_localhost + port = PORT_S + + +# ----- Retry ----- + +begin retry + +* * F,3s,1s; G,1h,2s,2 + +# End diff --git a/test/confs/0358 b/test/confs/0358 new file mode 100644 index 000000000..e66020b69 --- /dev/null +++ b/test/confs/0358 @@ -0,0 +1,42 @@ +# Exim test configuration 0358 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + allow_localhost + port = PORT_S + + +# ----- Retry ----- + +begin retry + +* * F,3s,1s; G,1h,2s,2 + +# End diff --git a/test/confs/0359 b/test/confs/0359 new file mode 100644 index 000000000..c24f6f10b --- /dev/null +++ b/test/confs/0359 @@ -0,0 +1,49 @@ +# Exim test configuration 0359 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + shadow_transport = t2 + shadow_condition = ${if eq{$local_part}{userx}{yes}{no}} + user = CALLER + +t2: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = X-shadowed: + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,3s,1s; G,1h,2s,2 + +# End diff --git a/test/confs/0360 b/test/confs/0360 new file mode 100644 index 000000000..0275cbd5c --- /dev/null +++ b/test/confs/0360 @@ -0,0 +1,52 @@ +# Exim test configuration 0360 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +v0: + driver = accept + local_parts = postmaster + verify_only + +r1: + driver = dnslookup + domains = !test.ex + widen_domains = test.ex + transport = t1 + +r2: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.aliases}} + errors_to = postmaster@test.ex + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + + +# ----- Retry ----- + +begin retry + +* * F,3s,1s; G,1h,2s,2 + +# End diff --git a/test/confs/0361 b/test/confs/0361 new file mode 100644 index 000000000..ea1f39192 --- /dev/null +++ b/test/confs/0361 @@ -0,0 +1,60 @@ +# Exim test configuration 0361 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = dnslookup + domains = !thishost.test.ex : !recurse.test.ex.test.ex + widen_domains = test.ex + transport = t1 + +r2: + driver = redirect + local_parts = miles + data = miles@thishost + +r3: + driver = redirect + local_parts = kilos + data = $local_part@$domain + +r4: + driver = accept + transport = t2 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +t2: + driver = appendfile + file = /dev/null + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,3s,1s; G,1h,2s,2 + +# End diff --git a/test/confs/0362 b/test/confs/0362 new file mode 100644 index 000000000..1568939b4 --- /dev/null +++ b/test/confs/0362 @@ -0,0 +1,76 @@ +# Exim test configuration 0362 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = *.test.ex +domainlist relay_domains = a.b.c + +acl_smtp_rcpt = check_rcpt +qualify_domain = test.ex + +log_selector = +address_rewrite + + +# ----- ACL ----- + +begin ACL + +check_rcpt: + accept domains = +local_domains + accept domains = +relay_domains + verify = recipient + + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + domains = +relay_domains + route_list = a.b.c V4NET.9.8.7 + transport = t1 + no_more + +r2: + driver = accept + domains = +local_domains + transport = t2 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +t2: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Rewrite ----- + +begin rewrite + +x@a.b.c x@x.test.ex + + +# ----- Retry ----- + +begin retry + +* * F,3s,1s; G,1h,2s,2 + +# End diff --git a/test/confs/0363 b/test/confs/0363 new file mode 100644 index 000000000..5b7185d42 --- /dev/null +++ b/test/confs/0363 @@ -0,0 +1,37 @@ +# Exim test configuration 0363 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +percent_hack_domains = * +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + + +# End diff --git a/test/confs/0364 b/test/confs/0364 new file mode 100644 index 000000000..0ae70d664 --- /dev/null +++ b/test/confs/0364 @@ -0,0 +1,70 @@ +# Exim test configuration 0364 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + domains = \N^[^.]+$\N + address_data = $domain + data = $local_part@$domain.test.ex + redirect_router = r2 + +r2: + driver = dnslookup + domains = !thishost.test.ex + transport = t1 + +r3: + driver = redirect + domains = !thishost.test.ex + condition = ${if eq{$address_data}{}{no}{yes}} + address_data = + data = $local_part@$original_domain.sub.test.ex + redirect_router = r2 + +r4: + driver = redirect + domains = !thishost.test.ex + allow_fail + data = :fail:Can't route to $domain + +r5: + driver = accept + transport = t2 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +t2: + driver = appendfile + file = /dev/null + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,3s,1s; G,1h,2s,2 + +# End diff --git a/test/confs/0365 b/test/confs/0365 new file mode 100644 index 000000000..54e24e6d4 --- /dev/null +++ b/test/confs/0365 @@ -0,0 +1,90 @@ +# Exim test configuration 0365 + +DETAILS=false +SELECTOR= + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_data = acl_data +acl_smtp_rcpt = acl_rcpt +log_selector = SELECTOR +qualify_domain = test.ex +queue_run_in_order +smtp_return_error_details = DETAILS +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +acl_data: + accept senders = ^nosyntax@ + verify = header_sender + + accept senders = !^nosyntax@ + verify = header_syntax + verify = header_sender + + +acl_rcpt: + accept local_parts = ^cantverify + endpass + verify = recipient + + accept senders = ^nosyntax@ + + accept senders = ^recipcallout@ + endpass + verify = recipient/callout=1s + + accept verify = sender/callout=1s + + +# ----- Routers ----- + +begin routers + +verify: + driver = accept + transport = smtp + local_parts = ok + +callout: + driver = manualroute + transport = smtp + local_parts = callout + route_data = V4NET.0.0.0 + +foo: + driver = redirect + local_parts = ^cantverify + data = newname + +test: + driver = redirect + local_parts = newname + data = ${if match{$original_local_part}{fail}\ + {:fail: failure message}\ + {:defer: defer message}} + allow_fail + allow_defer + + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + +# End diff --git a/test/confs/0366 b/test/confs/0366 new file mode 100644 index 000000000..62fdda1cb --- /dev/null +++ b/test/confs/0366 @@ -0,0 +1,48 @@ +# Exim test configuration 0366 + +HOSTS_MAX_TRY=5 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +ignore_bounce_errors_after = 0s +qualify_domain = test.ex + +# ----- Routers ----- + +begin routers + +r1: + driver = dnslookup + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + connect_timeout = 1s + hosts_max_try = HOSTS_MAX_TRY + port = PORT_N + + +# ----- Retry ----- + +# Ended up with the same settings, but leave the first because +# there's a -brt test as well. + +begin retry + +^[^@]+@ten- * F,2s,1s +* * F,2s,1s + +# End diff --git a/test/confs/0367 b/test/confs/0367 new file mode 100644 index 000000000..f9a8d1ca5 --- /dev/null +++ b/test/confs/0367 @@ -0,0 +1,46 @@ +# Exim test configuration 0367 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +others: + driver = manualroute + route_list = domain1 127.0.0.1 byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0368 b/test/confs/0368 new file mode 100644 index 000000000..91174204e --- /dev/null +++ b/test/confs/0368 @@ -0,0 +1,48 @@ +# Exim test configuration 0368 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + domains = manualroute + route_list = * ten-1.test.ex:ten-1.test.ex:ten-2.test.ex + transport = t1 + +r2: + driver = dnslookup + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0369 b/test/confs/0369 new file mode 100644 index 000000000..879b77eb5 --- /dev/null +++ b/test/confs/0369 @@ -0,0 +1,54 @@ +# Exim test configuration 0369 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + domains = test.ex + transport = t1 + +r2: + driver = accept + domains = test2.ex + transport = t2 + cannot_route_message = I can't route to $local_part + + +# ------ Transports ------ + +begin transports + +t1: + driver = pipe + command = /bin/sh -c 'exit $local_part' + user = CALLER + temp_errors = 45 : 56 + +t2: + driver = pipe + command = /bin/sh -c 'exit $local_part' + user = CALLER + temp_errors = * + + +# ------ Retry ------ + +begin retry + +* * F,1d,15m + +# End diff --git a/test/confs/0370 b/test/confs/0370 new file mode 100644 index 000000000..f1f8a55f3 --- /dev/null +++ b/test/confs/0370 @@ -0,0 +1,33 @@ +# Exim test configuration 0370 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ------ Routers ------ + +begin routers + +r1: + driver = redirect + data = |DIR/bin/iefbr14 + group = CALLER_GID + pipe_transport = t1 + + +# ------ Transports ------ + +begin transports + +t1: + driver = pipe + +# End diff --git a/test/confs/0371 b/test/confs/0371 new file mode 100644 index 000000000..a13d7cd3f --- /dev/null +++ b/test/confs/0371 @@ -0,0 +1,51 @@ +# Exim test configuration 0371 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +acl_smtp_connect = connect +acl_smtp_mail = mail +acl_smtp_rcpt = rcpt +acl_smtp_data = data +acl_smtp_vrfy = vrfy + + +# ----- ACL ----- + +begin acl + +connect: + accept set acl_c0 = $acl_c0; connect + set acl_c9 = $acl_c9; connect + +mail: + accept set acl_c0 = $acl_c0; mail + set acl_c9 = $acl_c9; mail + set acl_m0 = $acl_m0; mail + +rcpt: + accept set acl_m0 = $acl_m0; rcpt + set acl_m9 = $acl_m9; rcpt + set acl_c0 = $acl_c0; rcpt + +data: + accept set acl_m0 = $acl_m0; data + set acl_m9 = $acl_m9; data + +vrfy: + accept set acl_c0 = $acl_c0; vrfy + set acl_c9 = $acl_c9; vrfy + set acl_m0 = $acl_m0; vrfy + + +# End diff --git a/test/confs/0372 b/test/confs/0372 new file mode 100644 index 000000000..34fc1aa24 --- /dev/null +++ b/test/confs/0372 @@ -0,0 +1,68 @@ +# Exim test configuration 0372 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +acl_smtp_rcpt = a1 +acl_smtp_connect = a2 + +system_filter = DIR/aux-var/TESTNUM.F +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +a1: + accept local_parts = x + set acl_m0 = value for m0 is local_part: $local_part + set acl_m5 = value for m5 contains newline\nthere! + set acl_m9 = value for m9 is domain: $domain + + accept local_parts = a + set acl_m0 = value for m0 is local_part: $local_part + set acl_m9 = value for m9 is domain: $domain + +a2: + accept set acl_c0 = value for c0 is ip: $sender_host_address + set acl_c5 = c5 has a newline\nthere! + set acl_c9 = value for c9 is name: $sender_host_name + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + debug_print = acl_c0="$acl_c0"\nacl_c1="$acl_c1"\nacl_c2="$acl_c2"\n\ + acl_c3="$acl_c3"\nacl_c4="$acl_c4"\nacl_c5="$acl_c5"\n\ + acl_c6="$acl_c6"\nacl_c7="$acl_c7"\nacl_c8="$acl_c8"\n\ + acl_c9="$acl_c9"\nacl_m0="$acl_m0"\nacl_m1="$acl_m1"\n\ + acl_m2="$acl_m2"\nacl_m3="$acl_m3"\nacl_m4="$acl_m4"\n\ + acl_m5="$acl_m5"\nacl_m6="$acl_m6"\nacl_m7="$acl_m7"\n\ + acl_m8="$acl_m8"\nacl_m9="$acl_m9" + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + + +# End diff --git a/test/confs/0373 b/test/confs/0373 new file mode 100644 index 000000000..c02973a52 --- /dev/null +++ b/test/confs/0373 @@ -0,0 +1,27 @@ +# Exim test configuration 0373 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex +acl_smtp_connect = connect +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +connect: + deny condition = ${readsocket{DIR/test-socket}{QUERY-ACL\n}{2s}{*EOL*}} + accept + +# End diff --git a/test/confs/0374 b/test/confs/0374 new file mode 100644 index 000000000..3c1381b8c --- /dev/null +++ b/test/confs/0374 @@ -0,0 +1,104 @@ +# Exim test configuration 0374 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex +remote_max_parallel = 1 + + +# ----- Routers ----- + +begin routers + +u1: + driver = accept + local_parts = ^a\\d + transport = ut1 + unseen + +ut2: + driver = accept + local_parts = ^b\\d + transport = ut2 + unseen + +ut3: + driver = accept + local_parts = ^c\\d + transport = ut3 + unseen + +ut4: + driver = accept + local_parts = ^d\\d + transport = ut4 + unseen + +real: + driver = accept + transport = real + + +# ----- Transports ----- + +begin transports + +# Successful local transport +ut1: + driver = appendfile + file = DIR/test-mail/$local_part-u + user = CALLER + return_path_add + envelope_to_add + +# Hard unsuccessful local transport + +ut2: + driver = pipe + command = /non/existent/file + user = CALLER + +# Soft unsuccessful local transport + +ut3: + driver = pipe + command = /non/existent/file + temp_errors = * + user = CALLER + +# Remote transport - all types + +ut4: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + max_rcpt = 1 + +# Real delivery +real: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + return_path_add + envelope_to_add + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0375 b/test/confs/0375 new file mode 100644 index 000000000..a1322bbed --- /dev/null +++ b/test/confs/0375 @@ -0,0 +1,165 @@ +# Exim test configuration 0375 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex +log_selector = +return_path_on_delivery +remote_max_parallel = 1 + + +# ----- Routers ----- + +begin routers + +u1: + driver = accept + local_parts = ^a\\d + transport = ut1 + errors_to = + unseen + +ut2: + driver = accept + local_parts = ^b\\d + transport = ut2 + errors_to = "" + unseen + +ut3: + driver = accept + local_parts = ^c\\d + transport = ut3 + errors_to = + unseen + +ut4: + driver = accept + local_parts = ^d\\d + transport = ut4 + errors_to = + unseen + +ut5: + driver = accept + local_parts = ^e\\d + transport = ut5 + unseen + +ut6: + driver = accept + local_parts = ^f\\d + address_data = $sender_address + transport = ut6 + errors_to = + unseen + +ut7: + driver = accept + local_parts = ^g\\d + address_data = $bad expansion + transport = ut6 + errors_to = + unseen + disable_logging + +ut8: + driver = accept + local_parts = ^h\\d + transport = ut1 + errors_to = ${if eq{0}{1}{x@y}fail} + unseen + +real: + driver = accept + transport = real + + +# ----- Transports ----- + +begin transports + +# Successful local transport +ut1: + driver = appendfile + file = DIR/test-mail/$local_part-u + user = CALLER + return_path_add + envelope_to_add + disable_logging + +# Hard unsuccessful local transport + +ut2: + driver = pipe + command = /non/existent/file + user = CALLER + disable_logging + +# Soft unsuccessful local transport + +ut3: + driver = pipe + command = /non/existent/file + temp_errors = * + user = CALLER + disable_logging + +# Remote transport - all types + +ut4: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + max_rcpt = 1 + disable_logging + +# Another remote transport with return_path set empty + +ut5: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + max_rcpt = 1 + disable_logging + return_path = + +# Another remote transport with return_path reinstating original + +ut6: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + max_rcpt = 1 + disable_logging + return_path = $address_data + +# Real delivery +real: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + return_path_add + envelope_to_add + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/0376 b/test/confs/0376 new file mode 100644 index 000000000..d86d1dd55 --- /dev/null +++ b/test/confs/0376 @@ -0,0 +1,83 @@ +# Exim test configuration 0376 + +PEX=10s + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_data +callout_positive_expire = 1s +callout_domain_positive_expire = PEX + + +# ----- ACL ----- + +begin acl + +check_recipient: + deny hosts = V4NET.0.0.1 + log_message = ($sender_verify_failure) + !verify = sender/callout + deny hosts = V4NET.0.0.2 + !verify = sender/callout=postmaster + deny hosts = V4NET.0.0.3 + !verify = sender/callout=random + deny hosts = V4NET.0.0.4 + !verify = sender/callout=random,postmaster + deny hosts = V4NET.0.0.5 + !verify = sender/callout=1s,random + deny hosts = V4NET.0.0.6 + !verify = sender/callout=postmaster_mailfrom=pmsend@a.domain + deny hosts = V4NET.0.0.9 + !verify = sender/callout=fullpostmaster + deny hosts = V4NET.0.0.10 + !verify = recipient/callout=postmaster_mailfrom=pmsend@b.domain,\ + use_postmaster,random/defer_ok + accept + +check_data: + deny hosts = V4NET.0.0.7 + !verify = header_sender/callout=mailfrom=somesender@a.domain + deny hosts = V4NET.0.0.8 + !verify = header_sender/callout=1s,defer_ok + accept + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + route_list = * 127.0.0.1 + self = send + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0377 b/test/confs/0377 new file mode 100644 index 000000000..a08b49478 --- /dev/null +++ b/test/confs/0377 @@ -0,0 +1,84 @@ +# Exim test configuration 0377 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + + +# ----- Routers ----- + +begin routers + +defer: + driver = redirect + local_parts = ^defer + allow_defer + data = :defer: forced defer + +unseen_aaaa: + driver = redirect + local_parts = aaaa + condition = ${if first_delivery{yes}{no}} + data = defer_aaaa@$domain + unseen + +seen_aaaa: + driver = accept + local_parts = aaaa + transport = t1 + +bbbb: + driver = redirect + local_parts = bbbb + condition = ${if first_delivery{yes}{no}} + data = bbbb@$domain, defer_bbbb@$domain + +bbbb_0: + driver = accept + local_parts = bbbb + transport = t1 + +cccc_2nd_time: + driver = redirect + local_parts = cccc + condition = ${if first_delivery{no}{yes}} + data = $local_part@$domain + +cccc_redirect: + driver = redirect + local_parts = cccc + data = cccc@$domain, defer_cccc@$domain + +cccc_accept: + driver = accept + local_parts = cccc + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0378 b/test/confs/0378 new file mode 100644 index 000000000..9eaca09af --- /dev/null +++ b/test/confs/0378 @@ -0,0 +1,79 @@ +# Exim test configuration 0378 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + + +# ----- Routers ----- + +begin routers + +bounce: + driver = redirect + senders = : + data = :blackhole: + +defer: + driver = redirect + local_parts = ^defer + allow_defer + data = :defer: forced defer + +aaaa_2nd_time: + driver = redirect + local_parts = aaaa + condition = ${if first_delivery{no}{yes}} + data = aaaa@$domain + +aaaa: + driver = redirect + local_parts = aaaa + allow_filter + file_transport = t1 + pipe_transport = t2 + reply_transport = t3 + user = CALLER + data = "# Exim filter\n\ + deliver defer_aaaa@$domain\n\ + save DIR/test-mail/file\n\ + pipe \"/bin/sh -c exit\"\n\ + mail subject autoreply\n\ + text \"This is an autoreply\"" + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + user = CALLER + +t2: + driver = pipe + user = CALLER + +t3: + driver = autoreply + user = CALLER + initgroups + + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0379 b/test/confs/0379 new file mode 100644 index 000000000..81a38a284 --- /dev/null +++ b/test/confs/0379 @@ -0,0 +1,55 @@ +# Exim test configuration 0379 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + + +# ----- Routers ----- + +begin routers + +defer: + driver = redirect + local_parts = ^defer + allow_defer + data = :defer: forced defer + +aaaa_redirect: + driver = redirect + local_parts = aaaa + data = bbbb@$domain, cccc@$domain + +bc: + driver = accept + local_parts = bbbb : cccc + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0380 b/test/confs/0380 new file mode 100644 index 000000000..c6bdb5a3b --- /dev/null +++ b/test/confs/0380 @@ -0,0 +1,62 @@ +# Exim test configuration 0380 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + + +# ----- Routers ----- + +begin routers + +# This isn't part of this test per se; it's just a check for a bug +# that got fixed (crashing when debugging a forced fail in address_data). +# The router will always decline. + +r0: + driver = accept + address_data = ${if eq {a}{b}{x}fail} + transport = t1 + +r1: + driver = redirect + local_parts = aaaa + file = DIR/non-exist/$local_part + +r2: + driver = redirect + local_parts = bbbb + ignore_enotdir + file = DIR/non-exist/$local_part + +r3: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0381 b/test/confs/0381 new file mode 100644 index 000000000..8d930c6dc --- /dev/null +++ b/test/confs/0381 @@ -0,0 +1,28 @@ +# Exim test configuration 0381 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt +trusted_users = CALLER + +# ----- ACL ----- + +begin acl + +check_rcpt: + warn hosts = *.gov.uk.test.ex + warn hosts = !*.gov.uk.test.ex + warn hosts = *.co.uk.test.ex + warn hosts = !*.co.uk.test.ex + accept + +# End diff --git a/test/confs/0382 b/test/confs/0382 new file mode 100644 index 000000000..4fad2b69d --- /dev/null +++ b/test/confs/0382 @@ -0,0 +1,37 @@ +# Exim test configuration 0382 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_timezone +qualify_domain = test.ex +system_filter = DIR/aux-fixed/TESTNUM.F +timeout_frozen_after = 1s + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + senders = !: + allow_fail + data = :fail: forced fail + + +# ----- Retry ----- + +begin retry + +* * F,1d,1s + +# End diff --git a/test/confs/0383 b/test/confs/0383 new file mode 100644 index 000000000..8c5900caf --- /dev/null +++ b/test/confs/0383 @@ -0,0 +1,57 @@ +# Exim test configuration 0383 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +system_filter = DIR/aux-var/TESTNUM.F +system_filter_pipe_transport = t1 + + +# ----- Routers ----- + +begin routers + +r0: + driver = redirect + local_parts = redking + allow_filter + file = DIR/aux-var/TESTNUM.f + user = CALLER + pipe_transport = t1 + +r1: + driver = accept + transport = t2 + + +# ----- Transports ----- + +begin transports + +t1: + driver = pipe + return_output + user = CALLER + +t2: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,1d,1s + +# End diff --git a/test/confs/0384 b/test/confs/0384 new file mode 100644 index 000000000..225a2430a --- /dev/null +++ b/test/confs/0384 @@ -0,0 +1,18 @@ +# Exim test configuration 0384 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +qualify_domain = test.ex +helo_verify_hosts = * + +# End diff --git a/test/confs/0385 b/test/confs/0385 new file mode 100644 index 000000000..85172e6de --- /dev/null +++ b/test/confs/0385 @@ -0,0 +1,43 @@ +# Exim test configuration 0385 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +return_size_limit = 200 + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + senders = : + transport = t1 + +r2: + driver = redirect + allow_fail + data = :fail: forced failure + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0386 b/test/confs/0386 new file mode 100644 index 000000000..f88f1b044 --- /dev/null +++ b/test/confs/0386 @@ -0,0 +1,37 @@ +# Exim test configuration 0386 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = DIR/aux-fixed/TESTNUM.acl$local_part +qualify_domain = test.ex +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0387 b/test/confs/0387 new file mode 100644 index 000000000..c1100f493 --- /dev/null +++ b/test/confs/0387 @@ -0,0 +1,28 @@ +# Exim test configuration 0387 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = rcpt +trusted_users = CALLER + + +# ----- ACLs ----- + +begin acl + +rcpt: + accept sender_domains = partial2-lsearch;DIR/aux-fixed/TESTNUM.1 + accept hosts = net-lsearch;DIR/aux-fixed/TESTNUM.1 : \ + net16-lsearch;DIR/aux-fixed/TESTNUM.1 + + +# End diff --git a/test/confs/0388 b/test/confs/0388 new file mode 100644 index 000000000..ec41efcaf --- /dev/null +++ b/test/confs/0388 @@ -0,0 +1,47 @@ +# Exim test configuration 0388 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r0: + driver = redirect + senders = : + local_parts = CALLER + data = :blackhole: + +r1: + driver = manualroute + route_list = * "127.0.0.1 : V4NET.0.0.0" + transport = smtp + self = send + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + hosts_max_try = 1 + port = PORT_S + connect_timeout = 2s + +# ----- Retry ----- + +begin retry + +* * F,1s,1s + +# End diff --git a/test/confs/0389 b/test/confs/0389 new file mode 100644 index 000000000..fb9f530f1 --- /dev/null +++ b/test/confs/0389 @@ -0,0 +1,31 @@ +# Exim test configuration 0389 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = rcpt +queue_only + +# ----- ACL ----- + +begin acl + +rcpt: + warn log_message = log warning message: $acl_verify_message + !verify = sender + set acl_m0 = >$acl_verify_message< + logwrite = "acl_verify_message=$acl_verify_message" + logwrite = "acl_m0=$acl_m0" + +accept + + +# End diff --git a/test/confs/0390 b/test/confs/0390 new file mode 100644 index 000000000..6da8949d8 --- /dev/null +++ b/test/confs/0390 @@ -0,0 +1,79 @@ +# Exim test configuration 0390 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +.ifdef AA +accept_8bitmime +.endif + +.ifndef AA +acl_not_smtp = xxx +.endif + +.ifdef AA BB +acl_smtp_auth = xxx +.endif + +.ifdef AA +acl_smtp_connect = xxx +.elifdef BB +acl_smtp_connect = yyy +.endif + +.ifndef AA +acl_smtp_data = xxx +.elifndef BB +acl_smtp_data = yyy +.endif + +.ifdef AA +acl_smtp_etrn = xxx +.else +acl_smtp_etrn = yyy +.endif + +.ifdef AA + .ifdef BB + acl_smtp_expn = xxx + .endif +acl_smtp_mail = xxx +.else + .ifdef BB + acl_smtp_expn = yyy + .else + acl_smtp_expn = zzz + .endif +acl_smtp_mail = yyy +.endif + +# ----- Transports ----- + +begin transports + +.ifdef AA +t1: + driver = pipe + batch_max = 10 + command = /x/y + +.else +t1: + driver = pipe + batch_max = 20 + command = /x/y +.endif + + + + + +# End diff --git a/test/confs/0391 b/test/confs/0391 new file mode 100644 index 000000000..d094faa7a --- /dev/null +++ b/test/confs/0391 @@ -0,0 +1,46 @@ +# Exim test configuration 0391 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = acl_rcpt +log_selector = +address_rewrite + + +# ----- ACL ----- + +begin acl + +acl_rcpt: + accept verify = sender + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + debug_print = sender_address=<$sender_address> \ + local_part=$local_part \ + domain=$domain + verify_only + verify_sender + + +# ----- Rewrite ------ + +begin rewrite + +*@*.x.y $local_part@x.y + + +# End diff --git a/test/confs/0392 b/test/confs/0392 new file mode 100644 index 000000000..d7b0dc7e1 --- /dev/null +++ b/test/confs/0392 @@ -0,0 +1,41 @@ +# Exim test configuration 0392 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + no_address_test + +r2: + driver = accept + transport = t2 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +t2: + driver = smtp + + +# End diff --git a/test/confs/0393 b/test/confs/0393 new file mode 100644 index 000000000..c7bbf0046 --- /dev/null +++ b/test/confs/0393 @@ -0,0 +1,45 @@ +# Exim test configuration 0393 + +FILTER=/bin/cat + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + user = CALLER + file = DIR/test-mail/$local_part + transport_filter = FILTER + + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + +# End diff --git a/test/confs/0394 b/test/confs/0394 new file mode 100644 index 000000000..1ccbe2e8f --- /dev/null +++ b/test/confs/0394 @@ -0,0 +1,25 @@ +# Exim test configuration 0394 + +OPT= + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_connect = connect +host_lookup = * + +# ----- ACL ----- + +begin ACL + +connect: + require verify = OPT + +# End diff --git a/test/confs/0395 b/test/confs/0395 new file mode 100644 index 000000000..09861c2de --- /dev/null +++ b/test/confs/0395 @@ -0,0 +1,39 @@ +# Exim test configuration 0395 + +TRUSTED= + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +qualify_domain = test.ex +smtp_max_synprot_errors = 20 +trusted_users = TRUSTED + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0396 b/test/confs/0396 new file mode 100644 index 000000000..96e16f6c7 --- /dev/null +++ b/test/confs/0396 @@ -0,0 +1,17 @@ +# Exim test configuration 0396 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist fail = ${if eq {x}{y}{}fail} + +acl_smtp_rcpt = accept domains = +fail + +# End diff --git a/test/confs/0397 b/test/confs/0397 new file mode 100644 index 000000000..bce775a2e --- /dev/null +++ b/test/confs/0397 @@ -0,0 +1,15 @@ +# Exim test configuration 0397 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_file_path = /non/existent/path/to/force/failure/%s + + +# End diff --git a/test/confs/0398 b/test/confs/0398 new file mode 100644 index 000000000..31c561765 --- /dev/null +++ b/test/confs/0398 @@ -0,0 +1,71 @@ +# Exim test configuration 0398 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +acl_smtp_rcpt = rcpt + + +# ----- ACL ----- + +begin acl + +rcpt: + deny senders = qq@remote + !verify = sender + warn senders = qq@remote + !verify = sender/callout + log_message = $acl_verify_message + accept senders = qq@remote + + deny local_parts = deny + !verify = sender/callout + warn !verify = sender/callout + log_message = $acl_verify_message + warn log_message = some other warning + accept + + +# ----- Routers ----- + +begin routers + +r1: + domains = local + driver = accept + transport = t1 + +r2: + domains = remote + driver = manualroute + route_list = * 127.0.0.1 + self = send + transport = t2 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t2: + driver = smtp + port = PORT_S + allow_localhost + + +# End diff --git a/test/confs/0399 b/test/confs/0399 new file mode 100644 index 000000000..7d5215b97 --- /dev/null +++ b/test/confs/0399 @@ -0,0 +1,37 @@ +# Exim test configuration 0399 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + data = + more = ${if eq {1}{0}{no}fail} + +r2: + driver = redirect + data = + more = ${if eq {1}{0}{no}{yes}} + +r3: + driver = redirect + data = + more = $unknown_variable + + +# End diff --git a/test/confs/0400 b/test/confs/0400 new file mode 100644 index 000000000..c7daad9f9 --- /dev/null +++ b/test/confs/0400 @@ -0,0 +1,55 @@ +# Exim test configuration 0400 + +DATA= + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + local_parts = ^t1 + data = DATA + +r2: + driver = redirect + local_parts = ^alias + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + +r3: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$address_file + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + + +# End diff --git a/test/confs/0401 b/test/confs/0401 new file mode 100644 index 000000000..d77af0c2b --- /dev/null +++ b/test/confs/0401 @@ -0,0 +1,32 @@ +# Exim test configuration 0401 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +acl_smtp_connect = connect +acl_smtp_mail = mail +queue_only + + +# ----- ACL ----- + +begin acl + +connect: + accept hosts = DIR/aux-var/TESTNUM.hosts1 + +mail: + accept hosts = DIR/aux-var/TESTNUM.hosts2 + + +# End diff --git a/test/confs/0402 b/test/confs/0402 new file mode 100644 index 000000000..2adc75704 --- /dev/null +++ b/test/confs/0402 @@ -0,0 +1,82 @@ +# Exim test configuration 0402 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + local_parts = CALLER + router_home_directory = /non-exist/$local_part + transport = t1 + +r2: + driver = accept + local_parts = usery + router_home_directory = /non-exist/$domain + transport_home_directory = /non-exist/$local_part + transport = t1 + +r3: + driver = accept + local_parts = userz + router_home_directory = /non-exist/$domain + transport_home_directory = /non-exist/junk + transport = t2 + +r4: + driver = redirect + local_parts = CALLER + local_part_prefix = *+ + router_home_directory = /non-exist/$local_part + file_transport = ft1 + data = DIR/test-mail/junk + +r5: + driver = redirect + local_parts = usery + local_part_prefix = *+ + router_home_directory = /non-exist/$domain + transport_home_directory = /non-exist/$local_part + file_transport = ft1 + data = DIR/test-mail/junk + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + current_directory = / + +ft1: + driver = appendfile + user = CALLER + current_directory = / + +t2: + driver = appendfile + file = /dev/null + home_directory = /$local_part + user = CALLER + current_directory = / + + +# End diff --git a/test/confs/0403 b/test/confs/0403 new file mode 100644 index 000000000..d0bd93de0 --- /dev/null +++ b/test/confs/0403 @@ -0,0 +1,48 @@ +# Exim test configuration 0403 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + domains = lsearch;DIR/aux-fixed/TESTNUM.data + local_parts = lsearch;DIR/aux-fixed/TESTNUM.data + address_data = ADDRESSDATA + file_transport = t1 + data = DIR/test-mail/junk + router_home_directory = /usr + debug_print = +++ROUTER:\n\ + +++domain_data=$domain_data\n\ + +++local_part_data=$local_part_data\n\ + +++address_data=$address_data\n\ + +++home=$home + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + user = CALLER + debug_print = +++TRANSPORT:\n\ + +++domain_data=$domain_data\n\ + +++local_part_data=$local_part_data\n\ + +++address_data=$address_data\n\ + +++home=$home + +# End diff --git a/test/confs/0404 b/test/confs/0404 new file mode 100644 index 000000000..75a59498e --- /dev/null +++ b/test/confs/0404 @@ -0,0 +1,53 @@ +# Exim test configuration 0404 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + local_parts = sender + transport = t2 + +r2: + driver = redirect + allow_filter + data = #Exim filter\nmail text rhubarb\nseen finish + reply_transport = t1 + user = CALLER + initgroups + +# ----- Transports ----- + +begin transports + +t1: + driver = autoreply + +t2: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,1d,10m + +# End diff --git a/test/confs/0405 b/test/confs/0405 new file mode 100644 index 000000000..1bffa68f3 --- /dev/null +++ b/test/confs/0405 @@ -0,0 +1,39 @@ +# Exim test configuration 0405 + +UTF8= + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +dns_check_names_pattern = \ + (?i)^(?>(?(1)\.|())[a-z0-9\xc0-\xff](?>[-a-z0-9\x80-\xff]*[a-z0-9\x80-\xbf])?)+$ + +UTF8 + +# ----- Routers ----- + +begin routers + +r1: + driver = dnslookup + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + + +# End diff --git a/test/confs/0406 b/test/confs/0406 new file mode 100644 index 000000000..fa4ad5161 --- /dev/null +++ b/test/confs/0406 @@ -0,0 +1,16 @@ +# Exim test configuration 0406 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +# End diff --git a/test/confs/0407 b/test/confs/0407 new file mode 100644 index 000000000..8be5532d1 --- /dev/null +++ b/test/confs/0407 @@ -0,0 +1,25 @@ +# Exim test configuration 0407 + +HEADER_MAXSIZE= +HEADER_LINE_MAXSIZE= + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +acl_smtp_rcpt = accept +queue_only + +HEADER_MAXSIZE +HEADER_LINE_MAXSIZE + +# End diff --git a/test/confs/0408 b/test/confs/0408 new file mode 100644 index 000000000..e914ae983 --- /dev/null +++ b/test/confs/0408 @@ -0,0 +1,38 @@ +# Exim test configuration 0408 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + local_parts = userx : usery + errors_to = usery + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0409 b/test/confs/0409 new file mode 100644 index 000000000..be5b769a4 --- /dev/null +++ b/test/confs/0409 @@ -0,0 +1,20 @@ +# Exim test configuration 0409 + +BANNER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +smtp_banner = BANNER + +# End diff --git a/test/confs/0410 b/test/confs/0410 new file mode 100644 index 000000000..b8da514f4 --- /dev/null +++ b/test/confs/0410 @@ -0,0 +1,62 @@ +# Exim test configuration 0410 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +acl_smtp_rcpt = rcpt + + +# ----- ACL ----- + +begin ACL + +rcpt: + accept verify = recipient + verify = sender + condition = ${if eq {$address_data}{ADDRESS_DATA_STRING}{yes}{no}} + condition = ${if eq {$sender_address_data}{SENDER_ADDRESS_DATA_STRING}{yes}{no}} + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + local_parts = orig + data = child@test.ex + +r2: + driver = accept + local_parts = child + address_data = ADDRESS_DATA_STRING + transport = t1 + +r3: + driver = accept + local_parts = oksender + address_data = SENDER_ADDRESS_DATA_STRING + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + + +# End diff --git a/test/confs/0411 b/test/confs/0411 new file mode 100644 index 000000000..b06489d10 --- /dev/null +++ b/test/confs/0411 @@ -0,0 +1,60 @@ +# Exim test configuration 0411 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + local_parts = ^t1 + allow_filter + user = CALLER + data = "#Exim filter\n save afolder" + file_transport = t1 + +r2: + driver = redirect + local_parts = ^t2 + allow_filter + user = CALLER + data = "#Exim filter\n save bfolder" + file_transport = t2 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$address_file + user = CALLER + batch_max = 10 + +t2: + driver = appendfile + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + + +# End diff --git a/test/confs/0412 b/test/confs/0412 new file mode 100644 index 000000000..708cf0a1f --- /dev/null +++ b/test/confs/0412 @@ -0,0 +1,42 @@ +# Exim test configuration 0412 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex +system_filter = DIR/aux-fixed/TESTNUM.F + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + user = CALLER + file = DIR/test-mail/$local_part + headers_add = "\n\ + FROM: $h_from:\n\ + --------------------------------\n\ + REPLY_ADDRESS: $reply_address\n\ + --------------------------------\n\ + " + +# End diff --git a/test/confs/0413 b/test/confs/0413 new file mode 100644 index 000000000..8ae83dee3 --- /dev/null +++ b/test/confs/0413 @@ -0,0 +1,68 @@ +# Exim test configuration 0413 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +acl_smtp_mail = mail + + +# ----- ACL ----- + +begin acl + +mail: + accept verify = sender/callout + + +# ----- Routers ----- + +begin routers + +r1: + local_parts = r1 + driver = accept + transport = t1 + +r2: + local_parts = r2 + driver = manualroute + route_list = * HOSTIPV4 + self = send + transport = t1 + +r3: + local_parts = r3 + driver = manualroute + route_list = * HOSTIPV4 + self = send + transport = t2 + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + allow_localhost + port = PORT_S + +t2: + driver = smtp + hosts = 127.0.0.1 + hosts_override + allow_localhost + port = PORT_S + + +# End diff --git a/test/confs/0414 b/test/confs/0414 new file mode 100644 index 000000000..84ca827a3 --- /dev/null +++ b/test/confs/0414 @@ -0,0 +1,52 @@ +# Exim test configuration 0414 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +domainlist A = lsearch;DIR/aux-fixed/TESTNUM.list1 +domainlist B = lsearch;DIR/aux-fixed/TESTNUM.list2 +domainlist C = +A : +B + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + domains = !+C + debug_print = domain_data=$domain_data + +r2: + driver = accept + transport = t1 + domains = +B + debug_print = domain_data=$domain_data + +r3: + driver = accept + transport = t1 + domains = +A + debug_print = domain_data=$domain_data + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0415 b/test/confs/0415 new file mode 100644 index 000000000..536eaa6c1 --- /dev/null +++ b/test/confs/0415 @@ -0,0 +1,25 @@ +# Exim test configuration 0415 + +ARG1=40M +ARG2=1.0 +VALUE=0 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +check_spool_space = ARG1 +queue_only_load = ARG2 + +finduser_retries = VALUE + +# End diff --git a/test/confs/0416 b/test/confs/0416 new file mode 100644 index 000000000..08146e259 --- /dev/null +++ b/test/confs/0416 @@ -0,0 +1,59 @@ +# Exim test configuration 0416 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex +queue_only +no_queue_only_override + +acl_smtp_helo = helo +acl_smtp_mail = mail +acl_smtp_rcpt = ${if eq{$local_part}{nested_discard}{nested_rcpt}{rcpt}} +acl_smtp_data = data +acl_not_smtp = notsmtp + +log_selector = +received_recipients + + +# ----- ACLs ----- + +begin acl + +helo: + discard + +mail: + discard senders = discard@x.y + log_message = discard message 2 + accept + +rcpt: + discard local_parts = discard + log_message = discard message 1 + accept + +nested_rcpt: + accept acl = helo + +data: + discard condition = ${if match{$recipients}{data_message_discard}} + log_message = discard message 3 + discard condition = $h_discard: + accept + +notsmtp: + discard condition = ${if match{$recipients}{data_message_discard}} + log_message = discard message 4 + discard condition = $h_discard: + accept + +# End diff --git a/test/confs/0417 b/test/confs/0417 new file mode 100644 index 000000000..4052c570e --- /dev/null +++ b/test/confs/0417 @@ -0,0 +1,46 @@ +# Exim test configuration 0417 + +RETURN_ERROR_DETAILS = false + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +acl_smtp_rcpt = rcpt +smtp_return_error_details = RETURN_ERROR_DETAILS + + +# ----- ACLs ----- + +begin acl + +rcpt: + require verify = sender + + +# ----- Routers ----- + +begin routers + +r1: + driver = dnslookup + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +# End diff --git a/test/confs/0418 b/test/confs/0418 new file mode 100644 index 000000000..7df596962 --- /dev/null +++ b/test/confs/0418 @@ -0,0 +1,19 @@ +# Exim test configuration 0418 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +acl_smtp_rcpt = DIR/aux-fixed/TESTNUM.acl + + +# End diff --git a/test/confs/0419 b/test/confs/0419 new file mode 100644 index 000000000..72dfc6824 --- /dev/null +++ b/test/confs/0419 @@ -0,0 +1,37 @@ +# Exim test configuration 0419 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +domainlist local_domains = !mxt13.test.ex : !other1.test.ex : *.test.ex +hosts_treat_as_local = +local_domains + + +# ----- Routers ----- + +begin routers + +dnslookup: + driver = dnslookup + domains = ! +local_domains + transport = smtp + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# End diff --git a/test/confs/0420 b/test/confs/0420 new file mode 100644 index 000000000..0ac496fd5 --- /dev/null +++ b/test/confs/0420 @@ -0,0 +1,20 @@ +# Exim test configuration 0420 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +acl_smtp_rcpt = accept + +received_header_text = ${if eq{$sender_address}{x@y}{}{Received: some text}} + +# End diff --git a/test/confs/0421 b/test/confs/0421 new file mode 100644 index 000000000..a5feb10f0 --- /dev/null +++ b/test/confs/0421 @@ -0,0 +1,38 @@ +# Exim test configuration 0421 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +system_filter = DIR/aux-fixed/TESTNUM.F + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + headers_rewrite = *@* abc@x.y.z + user = CALLER + +# End diff --git a/test/confs/0422 b/test/confs/0422 new file mode 100644 index 000000000..e913725e7 --- /dev/null +++ b/test/confs/0422 @@ -0,0 +1,29 @@ +# Exim test configuration 0422 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +acl_smtp_connect = connect + + +# ----- ACL ----- + +begin acl + +connect: + deny message = dnslist_value is $dnslist_value + dnslists = rbl.test.ex=127.0.0.2 + accept + + +# End diff --git a/test/confs/0423 b/test/confs/0423 new file mode 100644 index 000000000..0f5ae85f6 --- /dev/null +++ b/test/confs/0423 @@ -0,0 +1,33 @@ +# Exim test configuration 0423 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +acl_smtp_connect = connect + + +# ----- ACL ----- + +begin acl + +connect: + deny message = xxxxxxxxxxxxxx has refused this message because it looks \ + like it is infected with the Sobig.E worm. See \ + http://www.xxxx.xxx/xxxxxxxx/xxxx/xxxx/w32.sobig.e@xx.html \ + for details. If you feel this determination is in error, \ + please forward the entire message to \ + postmaster@xxxxxxxxxxxxx.com and include code \"xx#1\" \ + in the Subject + + +# End diff --git a/test/confs/0424 b/test/confs/0424 new file mode 100644 index 000000000..16b4d6578 --- /dev/null +++ b/test/confs/0424 @@ -0,0 +1,27 @@ +# Exim test configuration 0424 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + allow_fail + data = :fail: Return_path is: <$return_path> + + +# End diff --git a/test/confs/0425 b/test/confs/0425 new file mode 100644 index 000000000..73e3fb81b --- /dev/null +++ b/test/confs/0425 @@ -0,0 +1,48 @@ +# Exim test configuration 0425 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +acl_smtp_rcpt = a1 + + +# ----- ACLs ----- + +begin acl + +a1: + warn !verify = recipient + warn verify = sender + + accept + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + local_parts = ok + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + + +# End diff --git a/test/confs/0426 b/test/confs/0426 new file mode 100644 index 000000000..b61fead03 --- /dev/null +++ b/test/confs/0426 @@ -0,0 +1,39 @@ +# Exim test configuration 0426 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +# ----- Routers ----- + +begin routers + +r0: + driver = redirect + senders = : + data = :blackhole: + +r1: + driver = dnslookup + self = send + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + port = PORT_S + + +# End diff --git a/test/confs/0427 b/test/confs/0427 new file mode 100644 index 000000000..156c7ace8 --- /dev/null +++ b/test/confs/0427 @@ -0,0 +1,26 @@ +# Exim test configuration 0427 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +# ----- Routers ----- + +begin routers + + +# ----- Transports ----- + +begin transports + + +# End diff --git a/test/confs/0428 b/test/confs/0428 new file mode 100644 index 000000000..d89b19073 --- /dev/null +++ b/test/confs/0428 @@ -0,0 +1,83 @@ +# Exim test configuration 0428 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex +trusted_users = CALLER + +# ----- Routers ----- + +begin routers + +rb: + driver = accept + senders = : + transport = t2 + +r0: + driver = redirect + local_parts = redirected + allow_filter + user = CALLER + file_transport = t1 + data = "#Sieve filter\n keep;" + +r1: + driver = redirect + local_parts = ^restrict- + allow_filter + forbid_file + skip_syntax_errors + data = "#Sieve filter\n$h_filter:" + user = CALLER + file_transport = t1 + +r2: + driver = redirect + allow_filter + data = "#Sieve filter\n$h_filter:" + user = CALLER + file_transport = t1 + reply_transport = t3 + sieve_vacation_directory = DIR/test-vacation-directory + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = ${if eq{$address_file}{inbox} \ + {DIR/test-mail/$local_part} \ + {${if eq{${substr_0_1:$address_file}}{/} \ + {$address_file} \ + {DIR/test-mail/$address_file} \ + }} \ + } + delivery_date_add + envelope_to_add + return_path_add + user = CALLER + +t2: + driver = appendfile + file = DIR/test-mail/$local_part + delivery_date_add + envelope_to_add + return_path_add + user = CALLER + +t3: + driver = autoreply + +# End diff --git a/test/confs/0429 b/test/confs/0429 new file mode 100644 index 000000000..68e7a417a --- /dev/null +++ b/test/confs/0429 @@ -0,0 +1,35 @@ +# Exim test configuration 0429 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +queue_only + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + hosts_avoid_esmtp = 127.0.0.1 + +# End diff --git a/test/confs/0430 b/test/confs/0430 new file mode 100644 index 000000000..847af4ed2 --- /dev/null +++ b/test/confs/0430 @@ -0,0 +1,46 @@ +# Exim test configuration 0430 + +LIST= +SELF=freeze + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +disable_ipv6 + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + domains = manual.route + transport = t1 + route_list = * LIST + self = SELF + +r2: + driver = manualroute + domains = random.manual.route + transport = t1 + route_list = * LIST + hosts_randomize + ignore_target_hosts = 127.0.0.1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +# End diff --git a/test/confs/0431 b/test/confs/0431 new file mode 100644 index 000000000..0cf942225 --- /dev/null +++ b/test/confs/0431 @@ -0,0 +1,61 @@ +# Exim test configuration 0431 + +AFFIX= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +# This isn't relevant - it's just here to test that -odi +# can override it. + +queue_only + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + local_part_prefix = *- + transport = t1 + +r2: + driver = accept + local_part_suffix = +* + transport = t1 + +r3: + driver = accept + local_part_prefix = *. + transport = t2 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + AFFIX + +t2: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + use_bsmtp + AFFIX + + +# End diff --git a/test/confs/0432 b/test/confs/0432 new file mode 100644 index 000000000..1f69870de --- /dev/null +++ b/test/confs/0432 @@ -0,0 +1,47 @@ +# Exim test configuration 0432 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +# This isn't relevant - it's just here to test that -odi +# can override it. + +acl_smtp_mail = mail + + +# ----- ACLs ----- + +begin acl + +mail: + accept verify = sender/callout=1s,maxwait=1s + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = <; 127.0.0.1 ; + port = PORT_S + allow_localhost + +# End diff --git a/test/confs/0433 b/test/confs/0433 new file mode 100644 index 000000000..9183cc0c3 --- /dev/null +++ b/test/confs/0433 @@ -0,0 +1,22 @@ +# Exim test configuration 0433 + +PORT= +IFACE= + + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +PORT +IFACE +disable_ipv6 + +# End diff --git a/test/confs/0434 b/test/confs/0434 new file mode 100644 index 000000000..808caa62c --- /dev/null +++ b/test/confs/0434 @@ -0,0 +1,38 @@ +# Exim test configuration 0434 + +ELI= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +extra_local_interfaces=ELI + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + route_list = * 1.2.3.4 + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + + + +# End diff --git a/test/confs/0435 b/test/confs/0435 new file mode 100644 index 000000000..010f7cce7 --- /dev/null +++ b/test/confs/0435 @@ -0,0 +1,15 @@ +# Exim test configuration 0435 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# End diff --git a/test/confs/0436 b/test/confs/0436 new file mode 100644 index 000000000..e944668d8 --- /dev/null +++ b/test/confs/0436 @@ -0,0 +1,35 @@ +# Exim test configuration 0436 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + envelope_to_add + use_bsmtp + file = DIR/test-mail/$sender_address_local_part + user = CALLER + batch_max = 20000 + +# End diff --git a/test/confs/0437 b/test/confs/0437 new file mode 100644 index 000000000..73ad8b39e --- /dev/null +++ b/test/confs/0437 @@ -0,0 +1,34 @@ +# Exim test configuration 0437 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex + +rfc1413_query_timeout = 0s +spool_directory = DIR/${lookup{spool}lsearch{DIR/aux-fixed/TESTNUM.ls}} +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +queue_run_in_order + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = ${lookup{transport}lsearch{DIR/aux-fixed/TESTNUM.ls}} + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/${lookup{file}lsearch{DIR/aux-fixed/TESTNUM.ls}} + user = CALLER + +# End diff --git a/test/confs/0438 b/test/confs/0438 new file mode 100644 index 000000000..2b129db05 --- /dev/null +++ b/test/confs/0438 @@ -0,0 +1,17 @@ +# Exim test configuration 0438 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +disable_ipv6 + +# End diff --git a/test/confs/0439 b/test/confs/0439 new file mode 100644 index 000000000..67c51f4e0 --- /dev/null +++ b/test/confs/0439 @@ -0,0 +1,17 @@ +# Exim test configuration 0439 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +message_size_limit = 2048M + +# End diff --git a/test/confs/0440 b/test/confs/0440 new file mode 100644 index 000000000..9c3bb73de --- /dev/null +++ b/test/confs/0440 @@ -0,0 +1,39 @@ +# Exim test configuration 0440 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + transport = t1 + self = send + route_list = * 127.0.0.1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + port = PORT_S + transport_filter = /bin/cat + + +# End diff --git a/test/confs/0441 b/test/confs/0441 new file mode 100644 index 000000000..12931ec6a --- /dev/null +++ b/test/confs/0441 @@ -0,0 +1,16 @@ +# Exim test configuration 0441 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + + +# End diff --git a/test/confs/0442 b/test/confs/0442 new file mode 100644 index 000000000..604abab74 --- /dev/null +++ b/test/confs/0442 @@ -0,0 +1,46 @@ +# Exim test configuration 0442 + +BAD= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +###################################################################### +# ACL CONFIGURATION # +# Specifies access control lists for incoming SMTP mail # +###################################################################### + +.include DIR/aux-fixed/TESTNUM.acl + + +###################################################################### +# ROUTERS CONFIGURATION # +# Specifies how addresses are handled # +###################################################################### + +.include DIR/aux-fixed/TESTNUM.routers + + +###################################################################### +# TRANSPORTS CONFIGURATION # +###################################################################### + +.include_if_exists DIR/aux-fixed/TESTNUM.transports + +.include_if_exists /junk/not/exist + +BAD + + +# End diff --git a/test/confs/0443 b/test/confs/0443 new file mode 100644 index 000000000..39f07bff9 --- /dev/null +++ b/test/confs/0443 @@ -0,0 +1,37 @@ +# Exim test configuration 0443 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +acl_smtp_rcpt = rcpt + + +# ----- ACLs ----- + +begin acl + +rcpt: + accept verify = sender/callout=1s + + +# ----- Routers ----- + +begin routers + +r1: + driver = dnslookup + verify_only + + +# End diff --git a/test/confs/0444 b/test/confs/0444 new file mode 100644 index 000000000..d696a9c8e --- /dev/null +++ b/test/confs/0444 @@ -0,0 +1,44 @@ +# Exim test configuration 0444 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +system_filter = DIR/aux-fixed/TESTNUM.sysfilter +system_filter_reply_transport = t2 +system_filter_user = EXIMUSER + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t2: + driver = autoreply + user = CALLER + + +# End diff --git a/test/confs/0445 b/test/confs/0445 new file mode 100644 index 000000000..55c65799a --- /dev/null +++ b/test/confs/0445 @@ -0,0 +1,40 @@ +# Exim test configuration 0445 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +acl_smtp_rcpt = rcpt + + +# ----- ACL ----- + +begin acl + +rcpt: + deny !verify = sender + + +# ----- Routers ----- + +begin routers + +bad_addresses: + driver = redirect + data = ${lookup{$local_part@$domain}lsearch{DIR/aux-fixed/TESTNUM.data}\ + {:fail:$value}fail} + allow_fail + verify_only + debug_print = "+++ sender_address=<$sender_address>" + +# End diff --git a/test/confs/0446 b/test/confs/0446 new file mode 100644 index 000000000..f74289fe9 --- /dev/null +++ b/test/confs/0446 @@ -0,0 +1,54 @@ +# Exim test configuration 0446 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +acl_smtp_rcpt = accept +acl_smtp_data = smtp_data +acl_not_smtp = not_smtp + + +#----- ACL ----- + +begin acl + +smtp_data: + warn message = X-ACL: $received_count + accept + +not_smtp: + warn message = X-ACL: $received_count + accept + + +#----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + headers_add = X-Router: $received_count + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0447 b/test/confs/0447 new file mode 100644 index 000000000..d3ce5f7ed --- /dev/null +++ b/test/confs/0447 @@ -0,0 +1,60 @@ +# Exim test configuration 0447 + +INSERT= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +#----- Routers ----- + +begin routers + +r0: + driver = dnslookup + domains = *.test.again.dns + transport = t1 + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +# A connection timeout of 999999 turns connection refused into connection +# timeout when running in the test harness. + +t1: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + connect_timeout = 999999s + + +# ----- Retry ----- + +begin retry + +INSERT +#* timeout_dns F,1d,13s +* timeout_connect F,1d,1m +* timeout F,1d,2m +* auth_failed F,1d,10m +* * F,1d,3m + + +# End diff --git a/test/confs/0448 b/test/confs/0448 new file mode 100644 index 000000000..cf70f2513 --- /dev/null +++ b/test/confs/0448 @@ -0,0 +1,39 @@ +# Exim test configuration 0448 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +acl_smtp_rcpt = rcpt +queue_only = true +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +rcpt: + accept local_parts = CALLER + accept verify = sender + + +# ----- Rewrite ------ + +begin rewrite + +^postmaster\@my\.domain <> S + +postmaster@my.domain <> F + +# End diff --git a/test/confs/0449 b/test/confs/0449 new file mode 100644 index 000000000..b67d267ca --- /dev/null +++ b/test/confs/0449 @@ -0,0 +1,38 @@ +# Exim test configuration 0449 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +queue_only_file = DIR/test-data + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0450 b/test/confs/0450 new file mode 100644 index 000000000..fa0b0272b --- /dev/null +++ b/test/confs/0450 @@ -0,0 +1,47 @@ +# Exim test configuration 0450 + +EXTRA= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + allow_localhost + port = ${if queue_running{PORT_D2}{PORT_D}}EXTRA + + + +# ----- Retry ----- + +begin retry + +* * F,1d,10m + +# End diff --git a/test/confs/0451 b/test/confs/0451 new file mode 100644 index 000000000..8c24991a9 --- /dev/null +++ b/test/confs/0451 @@ -0,0 +1,47 @@ +# Exim test configuration 0451 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +acl_smtp_rcpt = accept +acl_smtp_data = data_check + + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + allow_fail + data = ${if eq{$local_part}{good}{}{:fail:custom message}} + +r2: + driver = accept + local_parts = good + verify_only + + + +# ----- ACL ----- + +begin AcL + +data_check: + accept message = message="$acl_verify_message" + verify = sender + + +# End diff --git a/test/confs/0452 b/test/confs/0452 new file mode 100644 index 000000000..59243205b --- /dev/null +++ b/test/confs/0452 @@ -0,0 +1,47 @@ +# Exim test configuration 0452 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + allow_filter + file = DIR/aux-fixed/TESTNUM.filter-$h_fno: + reply_transport = t2 + user = CALLER + +r2: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t2: + driver = autoreply + + +# End diff --git a/test/confs/0453 b/test/confs/0453 new file mode 100644 index 000000000..87aa65b58 --- /dev/null +++ b/test/confs/0453 @@ -0,0 +1,22 @@ +# Exim test configuration 0453 + +LIMIT= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +LIMIT + + +# End diff --git a/test/confs/0454 b/test/confs/0454 new file mode 100644 index 000000000..d0c1844ea --- /dev/null +++ b/test/confs/0454 @@ -0,0 +1,54 @@ +# Exim test configuration 0454 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +acl_smtp_rcpt = accept +log_selector = +address_rewrite + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + allow_filter + file = DIR/aux-fixed/TESTNUM.filter + redirect_router = r2 + user = CALLER + +r2: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + + +# ----- Rewrite ----- + +begin rewrite + +*@cam $local_part@cam.ac.uk + + +# End diff --git a/test/confs/0455 b/test/confs/0455 new file mode 100644 index 000000000..eb6982fd6 --- /dev/null +++ b/test/confs/0455 @@ -0,0 +1,56 @@ +# Exim test configuration 0455 + +HOSTS_MAX_TRY=4 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_not_smtp = non + +ignore_bounce_errors_after = 0s +qualify_domain = test.ex + + +# ----- ACLs ----- + +begin acl + +non: + warn senders = : + control = queue_only + accept + + +# ----- Routers ----- + +begin routers + +r1: + driver = dnslookup + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + connect_timeout = 1s + hosts_max_try = HOSTS_MAX_TRY + + +# ----- Retry ----- + +begin retry + +* * F,2s,1s + +# End diff --git a/test/confs/0456 b/test/confs/0456 new file mode 100644 index 000000000..3adcce54a --- /dev/null +++ b/test/confs/0456 @@ -0,0 +1,47 @@ +# Exim test configuration 0456 + +HOSTS_MAX_TRY=4 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +ignore_bounce_errors_after = 0s +qualify_domain = test.ex + +# ----- Routers ----- + +begin routers + +test_bus_error: + driver = redirect + local_parts = test-bus-error + errors_to = owner-bus-error@localhost + data = postmaster@localhost + +accept: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# ----- Retry ----- + +begin retry + +* * F,4s,1s + +# End diff --git a/test/confs/0457 b/test/confs/0457 new file mode 100644 index 000000000..162ed5611 --- /dev/null +++ b/test/confs/0457 @@ -0,0 +1,28 @@ +# Exim test configuration 0457 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_helo = helo +acl_smtp_mail = mail + + +# ----- ACLs ----- + +begin acl + +helo: + deny message = testing deny + +mail: + warn log_message = sender_helo_name is >$sender_helo_name< + deny message = testing deny + +# End diff --git a/test/confs/0458 b/test/confs/0458 new file mode 100644 index 000000000..65fa24080 --- /dev/null +++ b/test/confs/0458 @@ -0,0 +1,29 @@ +# Exim test configuration 0458 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +acl_smtp_mail = mail +log_selector = +smtp_protocol_error+incoming_interface+incoming_port + + +# ----- ACLs ----- + +begin acl + +mail: + deny condition = ${if eq{$sender_address_local_part}{deny}{yes}{no}} + accept + +# End diff --git a/test/confs/0459 b/test/confs/0459 new file mode 100644 index 000000000..f04d907fc --- /dev/null +++ b/test/confs/0459 @@ -0,0 +1,32 @@ +# Exim test configuration 0459 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +acl_smtp_rcpt = $local_part + + +# ----- ACLs ----- + +begin acl + +inner: + defer log_message = forced defer + +outer: + deny senders = ${lookup{xxx}lsearch{/non/exist}} + deny acl = inner + + +# End diff --git a/test/confs/0460 b/test/confs/0460 new file mode 100644 index 000000000..5c3483190 --- /dev/null +++ b/test/confs/0460 @@ -0,0 +1,38 @@ +# Exim test configuration 0460 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + +acl_smtp_rcpt = accept + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0461 b/test/confs/0461 new file mode 100644 index 000000000..3a8907265 --- /dev/null +++ b/test/confs/0461 @@ -0,0 +1,61 @@ +# Exim test configuration 0461 + +FALLBACK=fallback_hosts = 127.0.0.1 +ROUTE_DATA=V4NET.0.0.1 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r0: + driver = accept + senders = : + transport = t2 + +r1: + driver = manualroute + route_data = ROUTE_DATA + transport = t1 + FALLBACK + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + port = PORT_S + connect_timeout = 1s + allow_localhost + +t2: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +V4NET.0.0.1 * F,1s,1s +V4NET.0.0.2 * F,1s,2s +* * F,1d,1s + + +# End diff --git a/test/confs/0462 b/test/confs/0462 new file mode 100644 index 000000000..31560b90f --- /dev/null +++ b/test/confs/0462 @@ -0,0 +1,58 @@ +# Exim test configuration 0462 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = $local_part +smtp_return_error_details + +# ----- ACL ----- + +begin acl + +checkpm: + deny !verify = sender/callout=postmaster + accept + +nocheckpm: + deny !verify = sender/callout + accept + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + route_list = * 127.0.0.1 + self = send + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0463 b/test/confs/0463 new file mode 100644 index 000000000..e81afcfb5 --- /dev/null +++ b/test/confs/0463 @@ -0,0 +1,36 @@ +# Exim test configuration 0463 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +# ----- Routers ----- + +begin routers + +all: + driver = dnslookup + domains = !@mx_any + qualify_single + transport = smtp + widen_domains = test.ex + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + +# End diff --git a/test/confs/0464 b/test/confs/0464 new file mode 100644 index 000000000..1709839b4 --- /dev/null +++ b/test/confs/0464 @@ -0,0 +1,55 @@ +# Exim test configuration 0464 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = rcpt + +domainlist local_domains = test.ex +domainlist special_domains = lsearch;DIR/aux-fixed/TESTNUM.domains + + +# ----- ACLs ----- + +begin acl + +rcpt: + require domains = +special_domains + verify = recipient + + require domains = +special_domains + verify = recipient + accept + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + domains = +special_domains + data = $local_part@xxx.$domain + +r2: + driver = accept + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + +# End diff --git a/test/confs/0465 b/test/confs/0465 new file mode 100644 index 000000000..32c1664cd --- /dev/null +++ b/test/confs/0465 @@ -0,0 +1,27 @@ +# Exim test configuration 0465 + +STD= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +acl_smtp_data = check_data +queue_only +trusted_users = CALLER +STD + + +begin acl +check_data: + accept verify = header_syntax + +# End diff --git a/test/confs/0466 b/test/confs/0466 new file mode 100644 index 000000000..575f2ce60 --- /dev/null +++ b/test/confs/0466 @@ -0,0 +1,59 @@ +# Exim test configuration 0466 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + self = send + transport = t1 + route_list = * "${if eq {1}{1}{127.0.0.1}{\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ + }}" + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +# End diff --git a/test/confs/0467 b/test/confs/0467 new file mode 100644 index 000000000..56011f4a3 --- /dev/null +++ b/test/confs/0467 @@ -0,0 +1,36 @@ +# Exim test configuration 0467 + +SRV=smtp + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = +outgoing_port +disable_ipv6 + +# ----- Routers ----- + +begin routers + +r1: + driver = dnslookup + check_srv = SRV + transport = t1 + self = send + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +# End diff --git a/test/confs/0468 b/test/confs/0468 new file mode 100644 index 000000000..293e061fd --- /dev/null +++ b/test/confs/0468 @@ -0,0 +1,31 @@ +# Exim test configuration 0468 + +SRV=smtp + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +acl_smtp_data = data + +message_body_visible = 50 + + +# ----- ACLs ----- + +begin acl + +data: + deny message = message body <$message_body> message end <$message_body_end> + + + +# End diff --git a/test/confs/0469 b/test/confs/0469 new file mode 100644 index 000000000..45901515c --- /dev/null +++ b/test/confs/0469 @@ -0,0 +1,34 @@ +# Exim test configuration 0469 + +SRV=smtp + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +disable_ipv6 + +# ----- Routers ----- + +begin routers + +r1: + driver = dnslookup + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +# End diff --git a/test/confs/0470 b/test/confs/0470 new file mode 100644 index 000000000..69fd848e4 --- /dev/null +++ b/test/confs/0470 @@ -0,0 +1,28 @@ +# Exim test configuration 0470 + +SRV=smtp + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = acl1 + + +# ----- ACLs ----- + +begin acl + +acl1: + warn log_message = "This is the log message" + deny + + +# End diff --git a/test/confs/0471 b/test/confs/0471 new file mode 100644 index 000000000..df8daa9c2 --- /dev/null +++ b/test/confs/0471 @@ -0,0 +1,22 @@ +# Exim test configuration 0471 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Rewrite ----- + +begin rewrite + +*@* $1@${lookup{${lc:$2}}partial-lsearch{DIR/aux-fixed/TESTNUM.rw}{$value}fail} FTbcfrt + +# End diff --git a/test/confs/0472 b/test/confs/0472 new file mode 100644 index 000000000..f134e1e00 --- /dev/null +++ b/test/confs/0472 @@ -0,0 +1,45 @@ +# Exim test configuration 0472 + +FUSER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +system_filter = DIR/aux-fixed/TESTNUM.F +FUSER + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + allow_filter + file = DIR/aux-var/TESTNUM.f + user = CALLER + +r2: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0473 b/test/confs/0473 new file mode 100644 index 000000000..acbe1ff8c --- /dev/null +++ b/test/confs/0473 @@ -0,0 +1,51 @@ +# Exim test configuration 0473 + +USE_SENDER = ,use_sender +ACL_RCPT = acl_rcpt + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = ACL_RCPT +callout_random_local_part = $primary_hostname--testing +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +acl_rcpt: + accept verify = recipient/callout=1sUSE_SENDER + +acl_rcpt_sender: + accept verify = sender/callout=1s,connect=2s + + +# ----- Routers ----- + +begin routers + +callout: + driver = manualroute + transport = smtp + route_data = 127.0.0.1 + self = send + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + +# End diff --git a/test/confs/0474 b/test/confs/0474 new file mode 100644 index 000000000..4596e3922 --- /dev/null +++ b/test/confs/0474 @@ -0,0 +1,40 @@ +# Exim test configuration 0474 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +callout: + driver = manualroute + transport = smtp + route_data = 127.0.0.1 + self = send + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + +begin retry + +* * F,5m,10s + +# End diff --git a/test/confs/0475 b/test/confs/0475 new file mode 100644 index 000000000..f279cfd63 --- /dev/null +++ b/test/confs/0475 @@ -0,0 +1,23 @@ +# Exim test configuration 0475 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = a1 + + +# ----- ACL ----- + +begin acl + +a1: + deny hosts = 1.2.3.4 : <; 1.2.3.4::5.6.7.8 + +# End diff --git a/test/confs/0476 b/test/confs/0476 new file mode 100644 index 000000000..baa3f15a5 --- /dev/null +++ b/test/confs/0476 @@ -0,0 +1,43 @@ +# Exim test configuration 0476 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + transport = t1 + route_list = * 127.0.0.1 + self = send + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + +begin retry + +* * F,1d,2h + + +# End diff --git a/test/confs/0477 b/test/confs/0477 new file mode 100644 index 000000000..5296ab4db --- /dev/null +++ b/test/confs/0477 @@ -0,0 +1,44 @@ +# Exim test configuration 0477 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + transport = t1 + route_list = * 127.0.0.1 + self = send + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + port = PORT_S + interface = 99.99.99.99 + + +# ----- Retry ----- + +begin retry + +* * F,1d,2h + + +# End diff --git a/test/confs/0478 b/test/confs/0478 new file mode 100644 index 000000000..bcdd98069 --- /dev/null +++ b/test/confs/0478 @@ -0,0 +1,47 @@ +# Exim test configuration 0478 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +deliver_drop_privilege + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + port = PORT_D + hosts = ${if eq {$sender_host_address}{}{$local_part}{V4NET.0.0.2}} + allow_localhost + connect_timeout = 1s + + +# ----- Retry ----- + +begin retry + +* * F,1d,2h + + +# End diff --git a/test/confs/0479 b/test/confs/0479 new file mode 100644 index 000000000..18c32d947 --- /dev/null +++ b/test/confs/0479 @@ -0,0 +1,54 @@ +# Exim test configuration 0479 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = rcpt + + +# ----- ACLs ----- + +begin acl + +rcpt: + require logwrite = sender address is <$sender_address> + verify = sender + accept + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + port = PORT_S + hosts = 127.0.0.1 + allow_localhost + connect_timeout = 1s + + +# ----- Rewrite ----- + +begin rewrite + +a@b rewritten-a@rewritten-b + + +# End diff --git a/test/confs/0480 b/test/confs/0480 new file mode 100644 index 000000000..3308c0663 --- /dev/null +++ b/test/confs/0480 @@ -0,0 +1,54 @@ +# Exim test configuration 0480 + +IP1=V4NET.0.0.1 +IP2=V4NET.0.0.2 +IP3=V4NET.0.0.3 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +smtp_active_hostname = ${if eq{$interface_address}{IP1}\ + {host.IP1}\ + {\ + ${if eq{$interface_address}{IP2}\ + {}\ + {\ + ${if eq{$interface_address}{IP3}\ + {${lookup{x}lsearch{/non/exist}}}\ + fail}\ + }}\ + }} + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + headers_add = X-sah: $smtp_active_hostname + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/0481 b/test/confs/0481 new file mode 100644 index 000000000..be3f923dd --- /dev/null +++ b/test/confs/0481 @@ -0,0 +1,54 @@ +# Exim test configuration 0481 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + headers_remove = Remove-Me: + data = $local_part@domain + +r2: + driver = redirect + headers_remove = Remove-Me: + data = $local_part@domain + +r3: + driver = accept + headers_remove = Remove-Me: + headers_add = X-Was-Remove-Me: >$h_remove-me:< + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/0482 b/test/confs/0482 new file mode 100644 index 000000000..787c42367 --- /dev/null +++ b/test/confs/0482 @@ -0,0 +1,28 @@ +# Exim test configuration 0482 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +acl_smtp_data = a1 + +queue_only + +# ----- ACL ----- + +begin acl + +a1: + require verify = header_syntax + accept + + +# End diff --git a/test/confs/0483 b/test/confs/0483 new file mode 100644 index 000000000..753048bc4 --- /dev/null +++ b/test/confs/0483 @@ -0,0 +1,50 @@ +# Exim test configuration 0483 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = a1 + +queue_only + +# ----- ACL ----- + +begin acl + +a1: + require recipients = lsearch;DIR/aux-fixed/TESTNUM.list + require senders = lsearch;DIR/aux-fixed/TESTNUM.list + warn log_message = sender_data=$sender_data recipient_data=$recipient_data + require verify = recipient + accept + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + senders = lsearch;DIR/aux-fixed/TESTNUM.list + debug_print = sender_data=$sender_data + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0484 b/test/confs/0484 new file mode 100644 index 000000000..641006006 --- /dev/null +++ b/test/confs/0484 @@ -0,0 +1,15 @@ +# Exim test configuration 0484 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# End diff --git a/test/confs/0485 b/test/confs/0485 new file mode 100644 index 000000000..6be2c23ad --- /dev/null +++ b/test/confs/0485 @@ -0,0 +1,65 @@ +# Exim test configuration 0485 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +hostlist ahosts = net-lsearch;DIR/aux-fixed/TESTNUM.data +hostlist bhosts = net-lsearch;DIR/aux-fixed/TESTNUM.data2 + +acl_smtp_helo = acl_check_helo +acl_smtp_mail = acl_check_mail +acl_smtp_rcpt = acl_check_rcpt +trusted_users = CALLER + + +# ----- ACLs ----- + +begin acl + +acl_check_helo: + warn hosts = +ahosts + logwrite = at HELO: >$host_data< + accept + +acl_check_mail: + warn logwrite = at MAIL: >$host_data< + warn senders = third@non-null + logwrite = other lookup at MAIL: ${lookup{xyz}lsearch{DIR/aux-fixed/TESTNUM.data3}} + warn !senders = : + hosts = +bhosts + logwrite = at MAIL (non-null): >$host_data< + accept + +acl_check_rcpt: + warn logwrite = at RCPT: >$host_data< + warn logwrite = Expansions: $qualify_domain, $local_part@$domain + accept + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0486 b/test/confs/0486 new file mode 100644 index 000000000..bebc361bc --- /dev/null +++ b/test/confs/0486 @@ -0,0 +1,72 @@ +# Exim test configuration 0486 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_mail = acl_check_mail +acl_smtp_rcpt = acl_check_rcpt +acl_smtp_data = acl_check_data +queue_only +trusted_users = CALLER + + +# ----- ACLs ----- + +begin acl + +acl_check_mail: + warn logwrite = at MAIL (1): >$sender_address< + require verify = sender + warn logwrite = at MAIL (2): >$sender_address< + accept + +acl_check_rcpt: + warn logwrite = at RCPT (1): >$sender_address< + warn logwrite = at RCPT (2): >$local_part< + require verify = recipient + warn logwrite = at RCPT (3): >$local_part< + accept + +acl_check_data: + warn logwrite = at DATA (1): >$sender_address< + warn logwrite = at DATA (2): >$recipients< + warn logwrite = at DATA (3): >From: $h_from:< + warn logwrite = at DATA (3): >To: $h_to:< + accept + + +#----- Rewrite ----- + +begin rewrite +^<(smtp.*) <SW-$1 S +*@* RW-$local_part@domain + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + + +# End diff --git a/test/confs/0487 b/test/confs/0487 new file mode 100644 index 000000000..dcf22623b --- /dev/null +++ b/test/confs/0487 @@ -0,0 +1,38 @@ +# Exim test configuration 0487 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +qualify_domain = QD +trusted_users = CALLER + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + headers_rewrite = \N$^\N bogus@bogus fw + user = CALLER + + +# End diff --git a/test/confs/0488 b/test/confs/0488 new file mode 100644 index 000000000..49261fa31 --- /dev/null +++ b/test/confs/0488 @@ -0,0 +1,30 @@ +# Exim test configuration 0488 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = a1 +queue_only + + +# ----- ACL ----- + +begin acl + +a1: + warn message = X-1: first\nX-2: second\nX-3: third + warn message = X-1: first + warn message = X-4: continued\n with some more text + accept + +# End diff --git a/test/confs/0489 b/test/confs/0489 new file mode 100644 index 000000000..70e8dfe17 --- /dev/null +++ b/test/confs/0489 @@ -0,0 +1,18 @@ +# Exim test configuration 0489 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +queue_only +trusted_users = CALLER + + +# End diff --git a/test/confs/0490 b/test/confs/0490 new file mode 100644 index 000000000..29a99ba6c --- /dev/null +++ b/test/confs/0490 @@ -0,0 +1,28 @@ +# Exim test configuration 0490 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +acl_smtp_data = a1 +queue_only + + +# ----- ACL ----- + +begin acl + +a1: + deny message = body contains $body_zerocount binary zero characters + condition = $body_zerocount + accept + +# End diff --git a/test/confs/0491 b/test/confs/0491 new file mode 100644 index 000000000..100fb9a80 --- /dev/null +++ b/test/confs/0491 @@ -0,0 +1,48 @@ +# Exim test configuration 0491 + +UL=abc@xyz +REWRITE= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +# When running in the test harness, this setting overrides the real login +# (normally it acts only if no login name can be found). + +unknown_login = UL + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Rewrite ----- + +begin rewrite + +REWRITE + +# End diff --git a/test/confs/0492 b/test/confs/0492 new file mode 100644 index 000000000..c17b11d98 --- /dev/null +++ b/test/confs/0492 @@ -0,0 +1,46 @@ +# Exim test configuration 0492 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = +return_path_on_delivery + + +# ----- Routers ----- + +begin routers + +bh: + driver = redirect + local_parts = blackhole + data = /dev/null + file_transport = t2 + +r1: + driver = accept + transport = t1 + errors_to = ${if eq{$local_part}{a}{a@aa}{b@aa}} + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + allow_localhost + +t2: + driver = appendfile + + +# End diff --git a/test/confs/0493 b/test/confs/0493 new file mode 100644 index 000000000..171617496 --- /dev/null +++ b/test/confs/0493 @@ -0,0 +1,36 @@ +# Exim test configuration 0493 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + headers_remove = to + headers_add = To: $h_to:, extra@dress + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0494 b/test/confs/0494 new file mode 100644 index 000000000..4426c2a67 --- /dev/null +++ b/test/confs/0494 @@ -0,0 +1,47 @@ +# Exim test configuration 0494 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + senders = : + transport = t1 + +r2: + driver = accept + transport = t2 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t2: + driver = autoreply + never_mail = never_mail@test.ex : never_mail2@test.ex : never3@* + to = userx@test.ex, rhubarb <never_mail2@test.ex> + cc = never_mail@test.ex, never3@some.domain + subject = testing, testing + +# End diff --git a/test/confs/0495 b/test/confs/0495 new file mode 100644 index 000000000..8706c790b --- /dev/null +++ b/test/confs/0495 @@ -0,0 +1,90 @@ +# Exim test configuration 0495 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt +mua_wrapper = TRUE +trusted_users = CALLER + +# These settings should be ignored + +queue_only +queue_smtp_domains = * +deliver_drop_privilege = FALSE +remote_max_parallel = 5 + + +# ----- ACL ----- + +begin acl + +# The controls will be ignored + +check_rcpt: + accept control = queue_only + control = freeze + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + file_transport = t3 + allow_fail + allow_defer + +r2: + driver = accept + local_parts = otherhost + transport = t2 + +r3: + driver = accept + local_parts = ^badport + transport = t4 + +r9: + driver = accept + transport = t1 + headers_add = ${if eq{$local_part}{addheader}{Added: text}} + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 : HOSTIPV4 + port = PORT_S + allow_localhost + command_timeout = 1s + +t2: + driver = smtp + hosts = V4NET.9.8.7 + port = PORT_S + +t3: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t4: + driver = smtp + hosts = V4NET.10.10.10 + port = nonexistent + +# End diff --git a/test/confs/0496 b/test/confs/0496 new file mode 100644 index 000000000..4bc2fde19 --- /dev/null +++ b/test/confs/0496 @@ -0,0 +1,47 @@ +# Exim test configuration 0496 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt + + +# ----- ACL ----- + +begin acl + +check_rcpt: + warn message = data1 data1\ndata2 data2 + warn message = :after_received:After-Received: some text\n\ + :at_start:At-Start: some text\n\ + :at_end: At-End: some text + accept + + +# ----- Routers ----- + +begin routers + +r9: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0497 b/test/confs/0497 new file mode 100644 index 000000000..4777bd20d --- /dev/null +++ b/test/confs/0497 @@ -0,0 +1,44 @@ +# Exim test configuration 0497 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + + +# ----- Retry ----- + +begin retry + +* rcpt_4xx +* * F,1d,15m + + +# End diff --git a/test/confs/0498 b/test/confs/0498 new file mode 100644 index 000000000..b00c634ae --- /dev/null +++ b/test/confs/0498 @@ -0,0 +1,49 @@ +# Exim test configuration 0498 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +r0: + driver = redirect + senders = : + data = :blackhole: + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + final_timeout = 1s + + +# ----- Retry ----- + +begin retry + +* * F,1d,10s; F,1s,10s + + +# End diff --git a/test/confs/0499 b/test/confs/0499 new file mode 100644 index 000000000..18364b7cf --- /dev/null +++ b/test/confs/0499 @@ -0,0 +1,36 @@ +# Exim test configuration 0499 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist anymx = @mx_any + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + domains = +anymx + condition = ${if match_domain{$domain}{+anymx}{yes}} + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + + +# End diff --git a/test/confs/0500 b/test/confs/0500 new file mode 100644 index 000000000..b069d2e01 --- /dev/null +++ b/test/confs/0500 @@ -0,0 +1,50 @@ +# Exim test configuration 0500 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = accept +acl_smtp_predata = acl_predata + +trusted_users = CALLER + +# ------ ACLs ------ + +begin acl + +acl_predata: + warn message = X-warning: this is a test warning ($recipients) + accept log_message = sender verify failed ($sender_verify_failure) + verify = sender + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + local_parts = userx : postmaster + transport = local_delivery + + +# ------ Transports ------ + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0501 b/test/confs/0501 new file mode 100644 index 000000000..258c5e05f --- /dev/null +++ b/test/confs/0501 @@ -0,0 +1,32 @@ +# Exim test configuration 0501 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = check_rcpt + +trusted_users = CALLER + +# ------ ACLs ------ + +begin acl + +check_rcpt: + warn logwrite = 1: $local_part ${if match{$local_part}{[A-Z]}{yes}{no}} + control = caseful_local_part + logwrite = 2: $local_part ${if match{$local_part}{[A-Z]}{yes}{no}} + control = caselower_local_part + logwrite = 3: $local_part ${if match{$local_part}{[A-Z]}{yes}{no}} + accept + +# End diff --git a/test/confs/0502 b/test/confs/0502 new file mode 100644 index 000000000..10e2abc4a --- /dev/null +++ b/test/confs/0502 @@ -0,0 +1,49 @@ +# Exim test configuration 0502 + +LAST=accept message = Your message here + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +queue_only + +acl_smtp_data = check_data +acl_smtp_mail = check_mail +acl_smtp_quit = check_quit +acl_smtp_rcpt = check_rcpt + +# ------ ACLs ------ + +begin acl + +check_data: + warn set acl_c0 = ${eval:$acl_c0+1} + set acl_c3 = ${eval:$acl_c3+$acl_m0} + accept + +check_mail: + warn set acl_c1 = ${eval:$acl_c1+1} + accept + +check_quit: + warn logwrite = Messages received: $acl_c1 + logwrite = Messages accepted: $acl_c0 + logwrite = Recipients: $acl_c2 + logwrite = Accepted: $acl_c3 + LAST + +check_rcpt: + warn set acl_c2 = ${eval:$acl_c2+1} + set acl_m0 = ${eval:$acl_m0+1} + accept + +# End diff --git a/test/confs/0503 b/test/confs/0503 new file mode 100644 index 000000000..bd3ba5b12 --- /dev/null +++ b/test/confs/0503 @@ -0,0 +1,46 @@ +# Exim test configuration 0503 + +MSIZE= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + quota = 1000 + MSIZE + + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + +# End diff --git a/test/confs/0504 b/test/confs/0504 new file mode 100644 index 000000000..f604f5e5d --- /dev/null +++ b/test/confs/0504 @@ -0,0 +1,53 @@ +# Exim test configuration 0504 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = $h_transport: + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + transport_filter = /non/existent/file + +t2: + driver = pipe + command = /bin/sh -c '/bin/cat > /dev/null' + transport_filter = /non/existent/file + +t3: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + transport_filter = /non/existent/file + + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + +# End diff --git a/test/confs/0505 b/test/confs/0505 new file mode 100644 index 000000000..f6136a435 --- /dev/null +++ b/test/confs/0505 @@ -0,0 +1,30 @@ +# Exim test configuration 0505 + +ACL= +CONTROL= +RECIPIENT=acl_smtp_rcpt=accept + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_ACL = test_acl +RECIPIENT + +queue_only + +# ----- ACLs ----- + +begin acl + +test_acl: + accept control = CONTROL + +# End diff --git a/test/confs/0506 b/test/confs/0506 new file mode 100644 index 000000000..fb18b9b95 --- /dev/null +++ b/test/confs/0506 @@ -0,0 +1,37 @@ +# Exim test configuration 0506 + +ALLOW=allow_filter +FORBID= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = +queue_time_overall + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + user = EXIMUSER + ALLOW + FORBID + file = DIR/aux-fixed/TESTNUM.$local_part + + +# ----- Retry ----- + +begin retry + +* * F,1d,1h + +# End diff --git a/test/confs/0507 b/test/confs/0507 new file mode 100644 index 000000000..81338cebb --- /dev/null +++ b/test/confs/0507 @@ -0,0 +1,29 @@ +# Exim test configuration 0507 + +ERROR_DETAILS= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +acl_smtp_data = check_data + +ERROR_DETAILS + +# ----- ACL ------ + +begin acl + +check_data: + accept verify = not_blind + + +# End diff --git a/test/confs/0508 b/test/confs/0508 new file mode 100644 index 000000000..2920ad6ee --- /dev/null +++ b/test/confs/0508 @@ -0,0 +1,50 @@ +# Exim test configuration 0508 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +r0: + driver = accept + senders = : + local_parts = postmaster + transport = t1 + +r1: + driver = redirect + pipe_transport = t2 + data = |/bin/echo "Some pipe output" + errors_to = postmaster@test.ex + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t2: + driver = pipe + return_output + user = CALLER + + +# End diff --git a/test/confs/0509 b/test/confs/0509 new file mode 100644 index 000000000..16fae0aba --- /dev/null +++ b/test/confs/0509 @@ -0,0 +1,29 @@ +# Exim test configuration 0509 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +acl_smtp_connect = check_connect + + +# ----- ACL ----- + +begin acl + +check_connect: + warn dnslists = rbl.test.ex/<;1.2.3.4;V4NET.11.12.13 + logwrite = rbl.test.ex/<;1.2.3.4;V4NET.11.12.13 + + warn dnslists = test.ex/a.b.c.d::ten-1 + logwrite = test.ex/a.b.c.d::ten-1 + +# End diff --git a/test/confs/0510 b/test/confs/0510 new file mode 100644 index 000000000..ce40aa35c --- /dev/null +++ b/test/confs/0510 @@ -0,0 +1,18 @@ +# Exim test configuration 0510 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + + + + +# End diff --git a/test/confs/0511 b/test/confs/0511 new file mode 100644 index 000000000..f76721ac9 --- /dev/null +++ b/test/confs/0511 @@ -0,0 +1,34 @@ +# Exim test configuration 0511 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + +# End diff --git a/test/confs/0512 b/test/confs/0512 new file mode 100644 index 000000000..1b10e218a --- /dev/null +++ b/test/confs/0512 @@ -0,0 +1,51 @@ +# Exim test configuration 0512 + +HARDLIMIT= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r0: + driver = redirect + senders = : + data = :blackhole: + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 : 127.0.0.1 : 127.0.0.1 : 127.0.0.1 + port = PORT_S + allow_localhost + hosts_max_try = 1 + HARDLIMIT + + +# ----- Retry ----- + +begin retry + + +* * F,1s,1s + +# End diff --git a/test/confs/0513 b/test/confs/0513 new file mode 100644 index 000000000..0db220b99 --- /dev/null +++ b/test/confs/0513 @@ -0,0 +1,46 @@ +# Exim test configuration 0513 + +HARDLIMIT= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt + + +# ----- ACL ----- + +begin acl + +check_rcpt: + defer !verify = recipient + message = >$acl_verify_message< ++++ + + +# ----- Routers ----- + +begin routers + +r1: + driver = dnslookup + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0514 b/test/confs/0514 new file mode 100644 index 000000000..29fee7e3b --- /dev/null +++ b/test/confs/0514 @@ -0,0 +1,36 @@ +# Exim test configuration 0514 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +# This overrides, as we are in test harness +unknown_login = spaced user + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0515 b/test/confs/0515 new file mode 100644 index 000000000..4fb8f5b6c --- /dev/null +++ b/test/confs/0515 @@ -0,0 +1,26 @@ +# Exim test configuration 0515 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + local_parts = orig + data = new@test.ex + unseen = $something + one_time + +# End diff --git a/test/confs/0516 b/test/confs/0516 new file mode 100644 index 000000000..74445af14 --- /dev/null +++ b/test/confs/0516 @@ -0,0 +1,63 @@ +# Exim test configuration 0516 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r0: + driver = redirect + local_parts = alwaysdefer + allow_defer + data = :defer: Always + +r1: + driver = redirect + local_parts = toplevel + data = deferfirsttime, second, third + +r2: + driver = redirect + data = $local_part@$domain, alwaysdefer + +r3: + driver = redirect + allow_defer + local_parts = deferfirsttime + condition = ${if first_delivery} + data = :defer: Defer the first time + +r4: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + batch_max = 100 + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,1h,1s + +# End diff --git a/test/confs/0517 b/test/confs/0517 new file mode 100644 index 000000000..1b10c8ea4 --- /dev/null +++ b/test/confs/0517 @@ -0,0 +1,47 @@ +# Exim test configuration 0517 + +ERROR_DETAILS= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = a1 + + +# ----- ACL ------ + +begin acl + +a1: + accept local_parts = usery + control = suppress_local_fixups + accept + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/0518 b/test/confs/0518 new file mode 100644 index 000000000..2c200f07f --- /dev/null +++ b/test/confs/0518 @@ -0,0 +1,57 @@ +# Exim test configuration 0518 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt + +queue_only + + +# ----- ACLs ----- + +begin acl + +check_rcpt: + accept verify = recipient/callout + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + local_part_prefix = *+ + local_part_suffix = -* + local_part_prefix_optional + local_part_suffix_optional + transport = ${if eq {$domain}{include}{t1}{t2}} + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + rcpt_include_affixes + +t2: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + +# End diff --git a/test/confs/0519 b/test/confs/0519 new file mode 100644 index 000000000..c516fa84c --- /dev/null +++ b/test/confs/0519 @@ -0,0 +1,35 @@ +# Exim test configuration 0519 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 : non-exist.test.ex + port = PORT_S + allow_localhost + +# End diff --git a/test/confs/0520 b/test/confs/0520 new file mode 100644 index 000000000..65e57ca4e --- /dev/null +++ b/test/confs/0520 @@ -0,0 +1,60 @@ +# Exim test configuration 0520 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = anydom + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + local_parts = alice + data = alice-1 + +r2: + driver = redirect + local_parts = alice-1 + data = alice-2 + +r3: + driver = redirect + local_parts = alice-2 + data = alice-1 + +r4: + driver = redirect + local_parts = bob + data = bob-1 + +r5: + driver = redirect + local_parts = bob-1 + data = alice-2 + +r9: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0521 b/test/confs/0521 new file mode 100644 index 000000000..fbd8f9331 --- /dev/null +++ b/test/confs/0521 @@ -0,0 +1,58 @@ +# Exim test configuration 0521 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + local_parts = abc + data = redirected@$domain + redirect_router = r3 + +r2: + driver = redirect + local_parts = xyz + data = redirected@$domain + redirect_router = r4 + +r3: + driver = redirect + local_parts = redirected + data = new1@$domain + +r4: + driver = redirect + local_parts = redirected + data = new2@$domain + +r5: + driver = accept + transport = t1 + + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/0522 b/test/confs/0522 new file mode 100644 index 000000000..6b410b3a5 --- /dev/null +++ b/test/confs/0522 @@ -0,0 +1,70 @@ +# Exim test configuration 0522 + +TIMEOUTDEFER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r0: + driver = accept + senders = : + transport = t0 + +r1: + driver = accept + local_parts = nofilter + transport = t1 + +r2: + driver = accept + transport = t2 + + + +# ----- Transports ----- + +begin transports + +t0: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +t1: + driver = pipe + timeout = 1s + command = /bin/sleep 2 + TIMEOUTDEFER + +t2: + driver = pipe + timeout = 5s + command = /bin/cat + transport_filter = /bin/sleep 2 + transport_filter_timeout = 1s + TIMEOUTDEFER + + +# ----- Retry ----- + +begin retry + +* * F,1h,1m + + +# End diff --git a/test/confs/0523 b/test/confs/0523 new file mode 100644 index 000000000..cfb9ea4a5 --- /dev/null +++ b/test/confs/0523 @@ -0,0 +1,43 @@ +# Exim test configuration 0523 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + headers_add = "Delivered-To: $local_part@$domain" + data = userx@$domain + +r2: + driver = accept + transport = t0 + + + +# ----- Transports ----- + +begin transports + +t0: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + envelope_to_add + + +# End diff --git a/test/confs/0524 b/test/confs/0524 new file mode 100644 index 000000000..0e6550cf6 --- /dev/null +++ b/test/confs/0524 @@ -0,0 +1,27 @@ +# Exim test configuration 0524 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_mail = check_mail +qualify_domain = test.ex + + +# ----- ACL ----- + +begin acl + +check_mail: + accept endpass + message = CSA status is $csa_status + verify = csa + +# End diff --git a/test/confs/0525 b/test/confs/0525 new file mode 100644 index 000000000..d8f24ae54 --- /dev/null +++ b/test/confs/0525 @@ -0,0 +1,50 @@ +# Exim test configuration 0525 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + + +# ----- Routers ----- + +begin routers + +r0: + driver = redirect + senders = : + data = /dev/null + user = CALLER + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + port = PORT_S + allow_localhost + data_timeout = 1s + + +# ----- Retry ----- + +begin retry + +* * F,1d,1h + +# End diff --git a/test/confs/0526 b/test/confs/0526 new file mode 100644 index 000000000..7f912b172 --- /dev/null +++ b/test/confs/0526 @@ -0,0 +1,29 @@ +# Exim test configuration 0526 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_connect = check_connect + + +# ----- ACLs ----- + +begin acl + +check_connect: + warn logwrite = START: >$acl_c0< >${if def:acl_c0{}{not }}defined< + set acl_c0 = 0 + logwrite = SET 0: >$acl_c0< >${if def:acl_c0{}{not }}defined< + set acl_c0 = 1 + logwrite = SET 1: >$acl_c0< >${if def:acl_c0{}{not }}defined< + accept + +# End diff --git a/test/confs/0527 b/test/confs/0527 new file mode 100644 index 000000000..f5a78699e --- /dev/null +++ b/test/confs/0527 @@ -0,0 +1,36 @@ +# Exim test configuration 0527 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt + + +# ----- ACLs ----- + +begin acl + +check_rcpt: + accept verify = sender/callout + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + route_list = * "<= 127.0.0.1:PORT_S" + self = send + verify_only + + +# End diff --git a/test/confs/0528 b/test/confs/0528 new file mode 100644 index 000000000..69ac8547e --- /dev/null +++ b/test/confs/0528 @@ -0,0 +1,51 @@ +# Exim test configuration 0528 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = +outgoing_port + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + route_list = * "<= 127.0.0.1:PORT_D = \ + 127.0.0.1:PORT_D2 = \ + [127.0.0.1]:PORT_D3 = \ + [HOSTIPV4]:PORT_D4 = \ + [HOSTIPV4]:PORT_N" + + fallback_hosts = <= 127.0.0.1:PORT_S = [HOSTIPV4]:PORT_D + self = send + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts_max_try = 20 + allow_localhost + + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + + +# End diff --git a/test/confs/1000 b/test/confs/1000 new file mode 100644 index 000000000..90c233d16 --- /dev/null +++ b/test/confs/1000 @@ -0,0 +1,31 @@ +# Exim test configuration 1000 + +HL= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +acl_smtp_connect = check_connect +HL + + +# ----- ACL ----- + +begin acl + +check_connect: + warn log_message = matched hostlist + hosts = <; 2001:ab8:37f:20:0:0:0:1 ; v6.test.ex + + accept condition = ${if eq{$sender_host_address}{2001:0ab8:037f:0020:0000:0000:0000:0001}} + +# End diff --git a/test/confs/1001 b/test/confs/1001 new file mode 100644 index 000000000..5341fc8e8 --- /dev/null +++ b/test/confs/1001 @@ -0,0 +1,40 @@ +# Exim test configuration 1001 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +helo_lookup_domains = +queue_only +queue_run_in_order + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/1002 b/test/confs/1002 new file mode 100644 index 000000000..5520cea4a --- /dev/null +++ b/test/confs/1002 @@ -0,0 +1,84 @@ +# Exim test configuration 1002 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = acl_rcpt_$local_part +allow_domain_literals +hosts_treat_as_local = other1.test.ex + + +# ------ ACLs ------ + +begin acl + +acl_rcpt_1: + require message = domain doesn't match @ or @[] + domains = @ : @[] + accept + +acl_rcpt_2: + require message = domain doesn't match @mx_any + domains = @mx_any + accept + +acl_rcpt_3: + require message = domain doesn't match @mx_primary + domains = @mx_primary + accept + +acl_rcpt_4: + require message = domain doesn't match @mx_secondary + domains = @mx_secondary + accept + +acl_rcpt_5: + require message = host doesn't match @ or @[] + hosts = @ : @[] + accept + +acl_rcpt_6: + require message = domain doesn't match @mx_any/ignore=<;127.0.0.1;::1 + domains = <+ @mx_any/ignore=<;127.0.0.1;::1 + accept + + +# ------ Routers ------ + +begin routers + +r1: + driver = dnslookup + domains = ! +local_domains + transport = dev_null + no_more + +r2: + driver = accept + local_parts = CALLER : postmaster + transport = local_delivery + + +# ------ Transports ------ + +begin transports + +dev_null: + driver = appendfile + file = /dev/null + user = CALLER + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/1003 b/test/confs/1003 new file mode 100644 index 000000000..c3b4bf5aa --- /dev/null +++ b/test/confs/1003 @@ -0,0 +1,59 @@ +# Exim test configuration 264 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +queue_only +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + transport = send_to_server + +server: + driver = accept + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +send_to_server: + driver = smtp + allow_localhost + hosts = $h_hosts + port = PORT_D + interface = ${expand:$h_interface:} + + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + +# End diff --git a/test/confs/1005 b/test/confs/1005 new file mode 100644 index 000000000..dfeee38ad --- /dev/null +++ b/test/confs/1005 @@ -0,0 +1,35 @@ +# Exim test configuration 1005 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +dns_ipv4_lookup = eximtesthost.ipv6.test.ex + + +# ----- Routers ----- + +begin routers + +lookuphost: + driver = manualroute + route_list = * $domain byname + self = send + transport = smtp + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# End diff --git a/test/confs/1006 b/test/confs/1006 new file mode 100644 index 000000000..21ce5a47e --- /dev/null +++ b/test/confs/1006 @@ -0,0 +1,47 @@ +# Exim test configuration 1006 + +SERVER= +D6= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +D6 + +# ----- Routers ----- + +begin routers + +r1: + driver = dnslookup + local_parts = dnslookup + transport = smtp + +r2: + driver = manualroute + local_parts = manualroute + route_list = * 46.test.ex + transport = smtp + + + + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# End diff --git a/test/confs/1007 b/test/confs/1007 new file mode 100644 index 000000000..1091eea25 --- /dev/null +++ b/test/confs/1007 @@ -0,0 +1,22 @@ +# Exim test configuration 1007 + +PORT= +IFACE= + + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +PORT +IFACE + + +# End diff --git a/test/confs/1008 b/test/confs/1008 new file mode 100644 index 000000000..c00a67244 --- /dev/null +++ b/test/confs/1008 @@ -0,0 +1,43 @@ +# Exim test configuration 1008 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +queue_run_in_order + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + transport = t1 + route_list = * "127.0.0.1 : ::::1" + self = send + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + +begin retry + +* * F,1d,2h + + +# End diff --git a/test/confs/2000 b/test/confs/2000 new file mode 100644 index 000000000..b1999124e --- /dev/null +++ b/test/confs/2000 @@ -0,0 +1,67 @@ +# Exim test configuration 2000 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + +tls_verify_hosts = * +tls_verify_certificates = ${if eq {SERVER}{server}{DIR/aux-fixed/cert2}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_D + tls_certificate = DIR/aux-fixed/cert2 + tls_privatekey = DIR/aux-fixed/cert2 + tls_verify_certificates = DIR/aux-fixed/cert2 + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2001 b/test/confs/2001 new file mode 100644 index 000000000..741796b67 --- /dev/null +++ b/test/confs/2001 @@ -0,0 +1,69 @@ +# Exim test configuration 2001 + +OPTION= +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + +tls_verify_hosts = * +tls_verify_certificates = ${if eq {SERVER}{server}{DIR/aux-fixed/cert2}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + OPTION + port = PORT_D + tls_certificate = DIR/aux-fixed/cert2 + tls_privatekey = DIR/aux-fixed/cert2 + tls_verify_certificates = DIR/aux-fixed/cert2 + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2002 b/test/confs/2002 new file mode 100644 index 000000000..22dc68ee8 --- /dev/null +++ b/test/confs/2002 @@ -0,0 +1,67 @@ +# Exim test configuration 2002 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = 127.0.0.1 : HOSTIPV4 + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +tls_verify_hosts = HOSTIPV4 +tls_verify_certificates = DIR/aux-fixed/cert2 + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept hosts = : + deny hosts = HOSTIPV4 + !encrypted = AES256-SHA : \ + IDEA-CBC-MD5 : \ + DES-CBC3-SHA : \ + DHE_RSA_AES_256_CBC_SHA1 : \ + DHE_RSA_3DES_EDE_CBC_SHA : \ + RSA_AES_256_CBC_SHA1 + accept + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + headers_add = tls-certificate-verified: $tls_certificate_verified + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +# End diff --git a/test/confs/2003 b/test/confs/2003 new file mode 100644 index 000000000..12087aa62 --- /dev/null +++ b/test/confs/2003 @@ -0,0 +1,64 @@ +# Exim test configuration 2003 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +queue_only +queue_run_in_order + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +tls_advertise_hosts = * + + +# ------ ACL ------ + +begin acl + +check_recipient: + deny message = unacceptable cipher $tls_cipher + !encrypted = ${if eq {$sender_host_address}{HOSTIPV4}{IDEA-CBC-MD5}{*}} + accept + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2004 b/test/confs/2004 new file mode 100644 index 000000000..280de5304 --- /dev/null +++ b/test/confs/2004 @@ -0,0 +1,56 @@ +# Exim test configuration 2004 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +hostlist tls_hosts = 127.0.0.1 + +queue_only +queue_run_in_order + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +tls_advertise_hosts = 127.0.0.1 : HOSTIPV4 + +# ----- ACL ----- + +begin acl + +check_recipient: + deny hosts = +tls_hosts + message = encryption required + !encrypted = * + accept + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +# End diff --git a/test/confs/2005 b/test/confs/2005 new file mode 100644 index 000000000..5448bf10c --- /dev/null +++ b/test/confs/2005 @@ -0,0 +1,65 @@ +# Exim test configuration 2005 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +domainlist local_domains = test.ex +hostlist tls_relay_hosts = 127.0.0.1 + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +# ----- ACL ----- + +begin acl + +check_recipient: + accept domains = +local_domains + accept hosts = +tls_relay_hosts + endpass + message = encryption required + encrypted = * + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +# End diff --git a/test/confs/2006 b/test/confs/2006 new file mode 100644 index 000000000..908783105 --- /dev/null +++ b/test/confs/2006 @@ -0,0 +1,21 @@ +# Exim test configuration 2006 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +tls_advertise_hosts = * + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +smtp_receive_timeout = 1s + +# End diff --git a/test/confs/2007 b/test/confs/2007 new file mode 100644 index 000000000..f3d150694 --- /dev/null +++ b/test/confs/2007 @@ -0,0 +1,69 @@ +# Exim test configuration 2007 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +smtp_confirmation+tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server${if eq{$local_part}{abcd}{2}{1}} + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server1: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_D + +send_to_server2: + driver = smtp + allow_localhost + hosts = HOSTIPV4 + port = PORT_D + +# End diff --git a/test/confs/2008 b/test/confs/2008 new file mode 100644 index 000000000..029c2f8d2 --- /dev/null +++ b/test/confs/2008 @@ -0,0 +1,89 @@ +# Exim test configuration 2008 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + +acl_smtp_rcpt = check_recipient +log_selector = +tls_peerdn +queue_only +queue_run_in_order +remote_max_parallel = 1 + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server${if eq{$local_part}{abcd}{2}{1}} + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server1: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_D + helo_data = helo.data.changed + +send_to_server2: + driver = smtp + allow_localhost + hosts = HOSTIPV4 + port = PORT_D + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2009 b/test/confs/2009 new file mode 100644 index 000000000..11f7bf85b --- /dev/null +++ b/test/confs/2009 @@ -0,0 +1,65 @@ +# Exim test configuration 2009 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +hostlist tls_hosts = 127.0.0.1 + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + + +# ----- ACL ----- + +begin acl + +check_recipient: + deny hosts = +tls_hosts + message = encryption required + !encrypted = * + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + hosts_avoid_tls = 127.0.0.1 + port = PORT_D + +# End diff --git a/test/confs/2010 b/test/confs/2010 new file mode 100644 index 000000000..bda63bb7a --- /dev/null +++ b/test/confs/2010 @@ -0,0 +1,51 @@ +# Exim test configuration 2010 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +queue_only +queue_run_in_order + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + +tls_advertise_hosts = HOSTIPV4 + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 : HOSTIPV4 + hosts_require_tls = * + port = PORT_D + +# End diff --git a/test/confs/2011 b/test/confs/2011 new file mode 100644 index 000000000..f5f707eb1 --- /dev/null +++ b/test/confs/2011 @@ -0,0 +1,58 @@ +# Exim test configuration 2011 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +log_selector = +tls_peerdn +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + +tls_verify_hosts = * +tls_verify_certificates = ${if eq {SERVER}{server}{DIR/aux-fixed/cert2}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = HOSTIPV4 : 127.0.0.1 + hosts_require_tls = HOSTIPV4 + port = PORT_D + tls_certificate = DIR/aux-fixed/cert2 + tls_privatekey = DIR/aux-fixed/cert2 + tls_require_ciphers = IDEA-CBC-MD5 \ + ${if eq{$host_address}{127.0.0.1}{:DES-CBC3-SHA:RSA_ARCFOUR_SHA}} + +# End diff --git a/test/confs/2012 b/test/confs/2012 new file mode 100644 index 000000000..75fa54a1c --- /dev/null +++ b/test/confs/2012 @@ -0,0 +1,59 @@ +# Exim test configuration 2012 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn+tls_certificate_verified + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + +tls_verify_hosts = * +tls_verify_certificates = ${if eq {SERVER}{server}{DIR/aux-fixed/cert2}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = HOSTIPV4 : 127.0.0.1 + hosts_require_tls = HOSTIPV4 + port = PORT_D + tls_certificate = DIR/aux-fixed/cert2 + tls_verify_certificates = \ + ${if eq{$host_address}{127.0.0.1}{DIR/aux-fixed/cert1}{DIR/aux-fixed/cert2}} + +# End diff --git a/test/confs/2013 b/test/confs/2013 new file mode 100644 index 000000000..0be277259 --- /dev/null +++ b/test/confs/2013 @@ -0,0 +1,65 @@ +# Exim test configuration 2013 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn+smtp_connection+incoming_port + +queue_only +queue_run_in_order + +smtp_accept_max_nonmail = 0 + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_D + +# End diff --git a/test/confs/2014 b/test/confs/2014 new file mode 100644 index 000000000..f657f060a --- /dev/null +++ b/test/confs/2014 @@ -0,0 +1,64 @@ +# Exim test configuration 2014 + +CRL= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +tls_verify_hosts = HOSTIPV4 +tls_try_verify_hosts = * +tls_verify_certificates = DIR/aux-fixed/cert2 +tls_crl = CRL + + +# ------ ACL ------ + +begin acl + +check_recipient: + deny message = certificate not verified: peerdn=$tls_peerdn + ! verify = certificate + accept + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +# End diff --git a/test/confs/2015 b/test/confs/2015 new file mode 100644 index 000000000..c062a211b --- /dev/null +++ b/test/confs/2015 @@ -0,0 +1,22 @@ +# Exim test configuration 2015 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = +smtp_connection + +smtp_receive_timeout = 1s + +tls_advertise_hosts = * +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +# End diff --git a/test/confs/2016 b/test/confs/2016 new file mode 100644 index 000000000..fd53a63eb --- /dev/null +++ b/test/confs/2016 @@ -0,0 +1,47 @@ +# Exim test configuration 2016 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +others: + driver = manualroute + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + command_timeout = 1s + hosts_require_tls = 127.0.0.1 + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/2017 b/test/confs/2017 new file mode 100644 index 000000000..14c724546 --- /dev/null +++ b/test/confs/2017 @@ -0,0 +1,73 @@ +# Exim test configuration 2017 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + hosts_nopass_tls = * + port = PORT_D + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2018 b/test/confs/2018 new file mode 100644 index 000000000..8c75c536b --- /dev/null +++ b/test/confs/2018 @@ -0,0 +1,31 @@ +# Exim test configuration 2018 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +queue_only + +tls_advertise_hosts = * +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +acl_smtp_rcpt = acl_tls + +# ------ ACLs ------ + +begin acl + +acl_tls: + accept endpass + message = "You must encrypt" + encrypted = * + +# End diff --git a/test/confs/2019 b/test/confs/2019 new file mode 100644 index 000000000..993c8e093 --- /dev/null +++ b/test/confs/2019 @@ -0,0 +1,66 @@ +# Exim test configuration 2019 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +tls_verify_hosts = HOSTIPV4 +tls_verify_certificates = DIR/aux-fixed/cert2 + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept hosts = : + deny hosts = HOSTIPV4 + !encrypted = AES256-SHA:\ + IDEA-CBC-MD5:\ + DES-CBC3-SHA:\ + DHE_RSA_AES_256_CBC_SHA1:\ + DHE_RSA_3DES_EDE_CBC_SHA:\ + RSA_AES_256_CBC_SHA1 + accept + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +# End diff --git a/test/confs/2020 b/test/confs/2020 new file mode 100644 index 000000000..6010a555e --- /dev/null +++ b/test/confs/2020 @@ -0,0 +1,52 @@ +# Exim test configuration 2020 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + allow_localhost + port = PORT_D + + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + +# End diff --git a/test/confs/2021 b/test/confs/2021 new file mode 100644 index 000000000..efc7f76ff --- /dev/null +++ b/test/confs/2021 @@ -0,0 +1,48 @@ +# Exim test configuration 2021 + +REQUIRE=# +TRYCLEAR=# + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_S + REQUIRE + TRYCLEAR + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2022 b/test/confs/2022 new file mode 100644 index 000000000..94dff6550 --- /dev/null +++ b/test/confs/2022 @@ -0,0 +1,19 @@ +# Exim test configuration 2022 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +tls_advertise_hosts = * + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +# End diff --git a/test/confs/2023 b/test/confs/2023 new file mode 100644 index 000000000..30db308a1 --- /dev/null +++ b/test/confs/2023 @@ -0,0 +1,28 @@ +# Exim test configuration 2023 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_starttls = starttls + +qualify_domain = test.ex +tls_advertise_hosts = * +trusted_users = CALLER + + +# ----- ACLs ----- + +begin acl + +starttls: + accept hosts = 10.9.8.8 + +# End diff --git a/test/confs/2024 b/test/confs/2024 new file mode 100644 index 000000000..a677c4c86 --- /dev/null +++ b/test/confs/2024 @@ -0,0 +1,29 @@ +# Exim test configuration 2024 + +CERT=DIR/aux-fixed/cert1 +TVC=/dev/null + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +log_selector = +tls_peerdn + +tls_advertise_hosts = * + +tls_certificate = CERT +tls_privatekey = CERT + +tls_verify_hosts = HOSTIPV4 +tls_verify_certificates = TVC + +# End diff --git a/test/confs/2025 b/test/confs/2025 new file mode 100644 index 000000000..b84407202 --- /dev/null +++ b/test/confs/2025 @@ -0,0 +1,65 @@ +# Exim test configuration 2025 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn+tls_certificate_verified + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +tls_require_ciphers = ${if eq{$sender_host_address}{HOSTIPV4}\ + {IDEA-CBC-MD5}{!RSA_AES_256:DES-CBC3-SHA}} + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = HOSTIPV4 : 127.0.0.1 + hosts_require_tls = HOSTIPV4 + port = PORT_D + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2026 b/test/confs/2026 new file mode 100644 index 000000000..4185e0b79 --- /dev/null +++ b/test/confs/2026 @@ -0,0 +1,64 @@ +# Exim test configuration 2026 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt +log_selector = +tls_peerdn + +tls_advertise_hosts = HOSTIPV4 +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + + +# ----- ACLs ----- + +begin acl + +check_rcpt: + accept local_parts = userx + + defer local_parts = usery + hosts = 127.0.0.1 + + accept + + +# ----- Routers ----- + +begin routers + +r0: + driver = accept + condition = ${if !eq {$sender_host_address}{}} + transport = t2 + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 : HOSTIPV4 + port = PORT_D + allow_localhost + +t2: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/2027 b/test/confs/2027 new file mode 100644 index 000000000..0835fb760 --- /dev/null +++ b/test/confs/2027 @@ -0,0 +1,60 @@ +# Exim test configuration 2027 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +queue_only +queue_run_in_order + +tls_advertise_hosts = * +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_try_verify_hosts = 127.0.0.1 +tls_verify_hosts = HOSTIPV4 +tls_verify_certificates = DIR/aux-fixed/cert1 + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server: + driver = smtp + allow_localhost + hosts = ${if eq{$local_part}{userx}{127.0.0.1}{HOSTIPV4}} + port = PORT_D + +# End diff --git a/test/confs/2028 b/test/confs/2028 new file mode 100644 index 000000000..df53268d6 --- /dev/null +++ b/test/confs/2028 @@ -0,0 +1,24 @@ +# Exim test configuration 2028 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +tls_advertise_hosts = * + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +tls_on_connect_ports = PORT_D2 : PORT_D3 + + +# End diff --git a/test/confs/2100 b/test/confs/2100 new file mode 100644 index 000000000..791c6bd43 --- /dev/null +++ b/test/confs/2100 @@ -0,0 +1,67 @@ +# Exim test configuration 2100 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + +tls_verify_hosts = * +tls_verify_certificates = ${if eq {SERVER}{server}{DIR/aux-fixed/cert2}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_D + tls_certificate = DIR/aux-fixed/cert2 + tls_privatekey = DIR/aux-fixed/cert2 + tls_verify_certificates = DIR/aux-fixed/cert2 + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2101 b/test/confs/2101 new file mode 100644 index 000000000..73e0bdd7d --- /dev/null +++ b/test/confs/2101 @@ -0,0 +1,69 @@ +# Exim test configuration 2101 + +OPTION= +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + +tls_verify_hosts = * +tls_verify_certificates = ${if eq {SERVER}{server}{DIR/aux-fixed/cert2}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + OPTION + port = PORT_D + tls_certificate = DIR/aux-fixed/cert2 + tls_privatekey = DIR/aux-fixed/cert2 + tls_verify_certificates = DIR/aux-fixed/cert2 + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2102 b/test/confs/2102 new file mode 100644 index 000000000..3caab6f7c --- /dev/null +++ b/test/confs/2102 @@ -0,0 +1,66 @@ +# Exim test configuration 2102 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = 127.0.0.1 : HOSTIPV4 + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +tls_verify_hosts = HOSTIPV4 +tls_verify_certificates = DIR/aux-fixed/cert2 + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept hosts = : + deny hosts = HOSTIPV4 + !encrypted = AES256-SHA : \ + IDEA-CBC-MD5 : \ + DES-CBC3-SHA : \ + DHE_RSA_AES_256_CBC_SHA1 : \ + DHE_RSA_3DES_EDE_CBC_SHA + accept + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + headers_add = tls-certificate-verified: $tls_certificate_verified + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +# End diff --git a/test/confs/2103 b/test/confs/2103 new file mode 100644 index 000000000..db3a4405b --- /dev/null +++ b/test/confs/2103 @@ -0,0 +1,64 @@ +# Exim test configuration 2103 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +queue_only +queue_run_in_order + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +tls_advertise_hosts = * + + +# ------ ACL ------ + +begin acl + +check_recipient: + deny message = unacceptable cipher $tls_cipher + !encrypted = ${if eq {$sender_host_address}{HOSTIPV4}{IDEA-CBC-MD5}{*}} + accept + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2104 b/test/confs/2104 new file mode 100644 index 000000000..5eb2f703d --- /dev/null +++ b/test/confs/2104 @@ -0,0 +1,56 @@ +# Exim test configuration 2104 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +hostlist tls_hosts = 127.0.0.1 + +queue_only +queue_run_in_order + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +tls_advertise_hosts = 127.0.0.1 : HOSTIPV4 + +# ----- ACL ----- + +begin acl + +check_recipient: + deny hosts = +tls_hosts + message = encryption required + !encrypted = * + accept + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +# End diff --git a/test/confs/2105 b/test/confs/2105 new file mode 100644 index 000000000..cd3ffcc99 --- /dev/null +++ b/test/confs/2105 @@ -0,0 +1,65 @@ +# Exim test configuration 2105 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +domainlist local_domains = test.ex +hostlist tls_relay_hosts = 127.0.0.1 + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +# ----- ACL ----- + +begin acl + +check_recipient: + accept domains = +local_domains + accept hosts = +tls_relay_hosts + endpass + message = encryption required + encrypted = * + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +# End diff --git a/test/confs/2106 b/test/confs/2106 new file mode 100644 index 000000000..c0f76e9c1 --- /dev/null +++ b/test/confs/2106 @@ -0,0 +1,21 @@ +# Exim test configuration 2106 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +tls_advertise_hosts = * + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +smtp_receive_timeout = 1s + +# End diff --git a/test/confs/2107 b/test/confs/2107 new file mode 100644 index 000000000..7903eb966 --- /dev/null +++ b/test/confs/2107 @@ -0,0 +1,69 @@ +# Exim test configuration 2107 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +smtp_confirmation+tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server${if eq{$local_part}{abcd}{2}{1}} + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server1: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_D + +send_to_server2: + driver = smtp + allow_localhost + hosts = HOSTIPV4 + port = PORT_D + +# End diff --git a/test/confs/2108 b/test/confs/2108 new file mode 100644 index 000000000..184abf806 --- /dev/null +++ b/test/confs/2108 @@ -0,0 +1,89 @@ +# Exim test configuration 2108 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + +acl_smtp_rcpt = check_recipient +log_selector = +tls_peerdn +queue_only +queue_run_in_order +remote_max_parallel = 1 + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server${if eq{$local_part}{abcd}{2}{1}} + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server1: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_D + helo_data = helo.data.changed + +send_to_server2: + driver = smtp + allow_localhost + hosts = HOSTIPV4 + port = PORT_D + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2109 b/test/confs/2109 new file mode 100644 index 000000000..afbb03d5d --- /dev/null +++ b/test/confs/2109 @@ -0,0 +1,65 @@ +# Exim test configuration 2109 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +hostlist tls_hosts = 127.0.0.1 + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + + +# ----- ACL ----- + +begin acl + +check_recipient: + deny hosts = +tls_hosts + message = encryption required + !encrypted = * + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + hosts_avoid_tls = 127.0.0.1 + port = PORT_D + +# End diff --git a/test/confs/2110 b/test/confs/2110 new file mode 100644 index 000000000..dc1656832 --- /dev/null +++ b/test/confs/2110 @@ -0,0 +1,51 @@ +# Exim test configuration 2110 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +queue_only +queue_run_in_order + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + +tls_advertise_hosts = HOSTIPV4 + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 : HOSTIPV4 + hosts_require_tls = * + port = PORT_D + +# End diff --git a/test/confs/2111 b/test/confs/2111 new file mode 100644 index 000000000..075e11519 --- /dev/null +++ b/test/confs/2111 @@ -0,0 +1,58 @@ +# Exim test configuration 2111 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +log_selector = +tls_peerdn +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + +tls_verify_hosts = * +tls_verify_certificates = ${if eq {SERVER}{server}{DIR/aux-fixed/cert2}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = HOSTIPV4 : 127.0.0.1 + hosts_require_tls = HOSTIPV4 + port = PORT_D + tls_certificate = DIR/aux-fixed/cert2 + tls_privatekey = DIR/aux-fixed/cert2 + tls_require_ciphers = IDEA-CBC-MD5 \ + ${if eq{$host_address}{127.0.0.1}{:DES-CBC3-SHA:RSA_ARCFOUR_SHA}} + +# End diff --git a/test/confs/2112 b/test/confs/2112 new file mode 100644 index 000000000..78733513e --- /dev/null +++ b/test/confs/2112 @@ -0,0 +1,59 @@ +# Exim test configuration 2112 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn+tls_certificate_verified + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + +tls_verify_hosts = * +tls_verify_certificates = ${if eq {SERVER}{server}{DIR/aux-fixed/cert2}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = HOSTIPV4 : 127.0.0.1 + hosts_require_tls = HOSTIPV4 + port = PORT_D + tls_certificate = DIR/aux-fixed/cert2 + tls_verify_certificates = \ + ${if eq{$host_address}{127.0.0.1}{DIR/aux-fixed/cert1}{DIR/aux-fixed/cert2}} + +# End diff --git a/test/confs/2113 b/test/confs/2113 new file mode 100644 index 000000000..bff43ff57 --- /dev/null +++ b/test/confs/2113 @@ -0,0 +1,65 @@ +# Exim test configuration 2113 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn+smtp_connection+incoming_port + +queue_only +queue_run_in_order + +smtp_accept_max_nonmail = 0 + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_D + +# End diff --git a/test/confs/2114 b/test/confs/2114 new file mode 100644 index 000000000..c395c73e0 --- /dev/null +++ b/test/confs/2114 @@ -0,0 +1,64 @@ +# Exim test configuration 2114 + +CRL= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +tls_verify_hosts = HOSTIPV4 +tls_try_verify_hosts = * +tls_verify_certificates = DIR/aux-fixed/cert2 +tls_crl = CRL + + +# ------ ACL ------ + +begin acl + +check_recipient: + deny message = certificate not verified: peerdn=$tls_peerdn + ! verify = certificate + accept + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +# End diff --git a/test/confs/2115 b/test/confs/2115 new file mode 100644 index 000000000..fdf184277 --- /dev/null +++ b/test/confs/2115 @@ -0,0 +1,22 @@ +# Exim test configuration 2115 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +log_selector = +smtp_connection + +smtp_receive_timeout = 1s + +tls_advertise_hosts = * +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +# End diff --git a/test/confs/2116 b/test/confs/2116 new file mode 100644 index 000000000..14a2d1eed --- /dev/null +++ b/test/confs/2116 @@ -0,0 +1,47 @@ +# Exim test configuration 2116 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +others: + driver = manualroute + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + command_timeout = 1s + hosts_require_tls = 127.0.0.1 + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/2117 b/test/confs/2117 new file mode 100644 index 000000000..16cc0c39e --- /dev/null +++ b/test/confs/2117 @@ -0,0 +1,73 @@ +# Exim test configuration 2117 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + hosts_nopass_tls = * + port = PORT_D + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2118 b/test/confs/2118 new file mode 100644 index 000000000..362d08704 --- /dev/null +++ b/test/confs/2118 @@ -0,0 +1,31 @@ +# Exim test configuration 2118 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +queue_only + +tls_advertise_hosts = * +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +acl_smtp_rcpt = acl_tls + +# ------ ACLs ------ + +begin acl + +acl_tls: + accept endpass + message = "You must encrypt" + encrypted = * + +# End diff --git a/test/confs/2119 b/test/confs/2119 new file mode 100644 index 000000000..b64ebf7c6 --- /dev/null +++ b/test/confs/2119 @@ -0,0 +1,65 @@ +# Exim test configuration 2119 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +tls_verify_hosts = HOSTIPV4 +tls_verify_certificates = DIR/aux-fixed/cert2 + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept hosts = : + deny hosts = HOSTIPV4 + !encrypted = AES256-SHA:\ + IDEA-CBC-MD5:\ + DES-CBC3-SHA:\ + DHE_RSA_AES_256_CBC_SHA1:\ + DHE_RSA_3DES_EDE_CBC_SHA + accept + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +# End diff --git a/test/confs/2120 b/test/confs/2120 new file mode 100644 index 000000000..4c9372579 --- /dev/null +++ b/test/confs/2120 @@ -0,0 +1,52 @@ +# Exim test configuration 2120 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + + +# ----- Routers ----- + +begin routers + +abc: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + allow_localhost + port = PORT_D + + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + +# End diff --git a/test/confs/2121 b/test/confs/2121 new file mode 100644 index 000000000..dbef1b794 --- /dev/null +++ b/test/confs/2121 @@ -0,0 +1,48 @@ +# Exim test configuration 2121 + +REQUIRE=# +TRYCLEAR=# + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_S + REQUIRE + TRYCLEAR + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2122 b/test/confs/2122 new file mode 100644 index 000000000..aed0aefb5 --- /dev/null +++ b/test/confs/2122 @@ -0,0 +1,19 @@ +# Exim test configuration 2122 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +tls_advertise_hosts = * + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +# End diff --git a/test/confs/2123 b/test/confs/2123 new file mode 100644 index 000000000..6c4843bf0 --- /dev/null +++ b/test/confs/2123 @@ -0,0 +1,28 @@ +# Exim test configuration 2123 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_starttls = starttls + +qualify_domain = test.ex +tls_advertise_hosts = * +trusted_users = CALLER + + +# ----- ACLs ----- + +begin acl + +starttls: + accept hosts = 10.9.8.8 + +# End diff --git a/test/confs/2124 b/test/confs/2124 new file mode 100644 index 000000000..132c624c6 --- /dev/null +++ b/test/confs/2124 @@ -0,0 +1,29 @@ +# Exim test configuration 2124 + +CERT=DIR/aux-fixed/cert1 +TVC=/dev/null + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +log_selector = +tls_peerdn + +tls_advertise_hosts = * + +tls_certificate = CERT +tls_privatekey = CERT + +tls_verify_hosts = HOSTIPV4 +tls_verify_certificates = TVC + +# End diff --git a/test/confs/2125 b/test/confs/2125 new file mode 100644 index 000000000..70736be88 --- /dev/null +++ b/test/confs/2125 @@ -0,0 +1,66 @@ +# Exim test configuration 2125 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn+tls_certificate_verified + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +tls_require_ciphers = ${if eq{$sender_host_address}{HOSTIPV4}\ + {AES}{!AES:3DES}} + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + + +# ----- Transports ----- + +begin transports + +send_to_server: + driver = smtp + allow_localhost + hosts = HOSTIPV4 : 127.0.0.1 + hosts_require_tls = HOSTIPV4 + tls_require_ciphers = DES-CBC3-SHA + port = PORT_D + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2126 b/test/confs/2126 new file mode 100644 index 000000000..0cfdbba66 --- /dev/null +++ b/test/confs/2126 @@ -0,0 +1,66 @@ +# Exim test configuration 2126 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt +log_selector = +tls_peerdn + +tls_advertise_hosts = HOSTIPV4 +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + + +# ----- ACLs ----- + +begin acl + +check_rcpt: + accept local_parts = userx + + defer local_parts = usery + hosts = 127.0.0.1 + + accept + + +# ----- Routers ----- + +begin routers + +r0: + driver = accept + condition = ${if !eq {$sender_host_address}{}} + transport = t2 + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 : HOSTIPV4 + port = PORT_D + allow_localhost + +t2: + driver = appendfile + file = /dev/null + user = CALLER + +# End diff --git a/test/confs/2127 b/test/confs/2127 new file mode 100644 index 000000000..3639c5bbf --- /dev/null +++ b/test/confs/2127 @@ -0,0 +1,60 @@ +# Exim test configuration 2127 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +queue_only +queue_run_in_order + +tls_advertise_hosts = * +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_try_verify_hosts = 127.0.0.1 +tls_verify_hosts = HOSTIPV4 +tls_verify_certificates = DIR/aux-fixed/cert1 + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server: + driver = smtp + allow_localhost + hosts = ${if eq{$local_part}{userx}{127.0.0.1}{HOSTIPV4}} + port = PORT_D + +# End diff --git a/test/confs/2128 b/test/confs/2128 new file mode 100644 index 000000000..296c27c32 --- /dev/null +++ b/test/confs/2128 @@ -0,0 +1,24 @@ +# Exim test configuration 2128 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +tls_advertise_hosts = * + +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + +tls_on_connect_ports = PORT_D2 : PORT_D3 + + +# End diff --git a/test/confs/2149 b/test/confs/2149 new file mode 100644 index 000000000..1684f11c6 --- /dev/null +++ b/test/confs/2149 @@ -0,0 +1,59 @@ +# Exim test configuration 2149 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +queue_only +queue_run_in_order + +tls_advertise_hosts = * +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_dhparam = ${if eq {SERVER}{server}{DIR/aux-fixed/dh1}fail} + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_D + +# End diff --git a/test/confs/2200 b/test/confs/2200 new file mode 100644 index 000000000..dc7dbaa18 --- /dev/null +++ b/test/confs/2200 @@ -0,0 +1,12 @@ +# Exim test configuration 2200 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# End diff --git a/test/confs/2201 b/test/confs/2201 new file mode 100644 index 000000000..861db77ba --- /dev/null +++ b/test/confs/2201 @@ -0,0 +1,54 @@ +# Exim test configuration 2201 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + domains = dnsdb;$domain + local_parts = dnsdb;$local_part + retry_use_local_part + transport = local_delivery + +r2: + driver = accept + domains = dnsdb;$domain + retry_use_local_part + senders = dnsdb;A=${domain:$sender_address} + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/2250 b/test/confs/2250 new file mode 100644 index 000000000..7a38f0b21 --- /dev/null +++ b/test/confs/2250 @@ -0,0 +1,12 @@ +# Exim test configuration 2250 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# End diff --git a/test/confs/2300 b/test/confs/2300 new file mode 100644 index 000000000..d8f6f225d --- /dev/null +++ b/test/confs/2300 @@ -0,0 +1,14 @@ +# Exim test configuration 2300 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +# End diff --git a/test/confs/2400 b/test/confs/2400 new file mode 100644 index 000000000..563adba1f --- /dev/null +++ b/test/confs/2400 @@ -0,0 +1,14 @@ +# Exim test configuration 2400 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +# End diff --git a/test/confs/2500 b/test/confs/2500 new file mode 100644 index 000000000..b0aa957ae --- /dev/null +++ b/test/confs/2500 @@ -0,0 +1,14 @@ +# Exim test configuration 2500 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +# End diff --git a/test/confs/2501 b/test/confs/2501 new file mode 100644 index 000000000..3672b30b6 --- /dev/null +++ b/test/confs/2501 @@ -0,0 +1,43 @@ +# Exim test configuration 2501 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = dsearch;DIR/aux-fixed/TESTNUM.domains + + +# ------ Routers ------ + +begin routers + +r1: + driver = accept + domains = +local_domains + transport = t1 + + +# ------ Transports ------ + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + + +# ------ Retry ------ + +begin retry + +* * F,1d,10m + +# End diff --git a/test/confs/2600 b/test/confs/2600 new file mode 100644 index 000000000..09eedef68 --- /dev/null +++ b/test/confs/2600 @@ -0,0 +1,56 @@ +# Exim test configuration 2600 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = @ +hostlist relay_hosts = sqlite;DIR/aux-fixed/sqlitedb \ + select * from them where \ + id='$sender_host_address' + +acl_smtp_rcpt = check_recipient +sqlite_lock_timeout = 2 + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept domains = +local_domains + accept hosts = +relay_hosts + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + address_data = ${lookup sqlite \ + {DIR/aux-fixed/sqlitedb select name from them where id='userx'}} + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/\ + ${lookup sqlite{DIR/aux-fixed/sqlitedb select id from them where id='userx'}\ + {$value}fail} + user = CALLER + + +# End diff --git a/test/confs/3000 b/test/confs/3000 new file mode 100644 index 000000000..b8273f190 --- /dev/null +++ b/test/confs/3000 @@ -0,0 +1,28 @@ +# Exim test configuration 3000 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt +perl_startup = do 'DIR/aux-fixed/TESTNUM.pl' +queue_only = true + + +# ----- ACLs ----- + +begin acl + +check_rcpt: + accept condition = ${if !eq {${perl{foo_warn}}}{}} + + +# End diff --git a/test/confs/3100 b/test/confs/3100 new file mode 100644 index 000000000..3d0b17517 --- /dev/null +++ b/test/confs/3100 @@ -0,0 +1,16 @@ +# Exim test configuration 3100 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# End diff --git a/test/confs/3200 b/test/confs/3200 new file mode 100644 index 000000000..349c7a524 --- /dev/null +++ b/test/confs/3200 @@ -0,0 +1,14 @@ +# Exim test configuration 3200 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +# End diff --git a/test/confs/3201 b/test/confs/3201 new file mode 100644 index 000000000..6fb89f320 --- /dev/null +++ b/test/confs/3201 @@ -0,0 +1,28 @@ +# Exim test configuration 3201 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +acl_smtp_connect = connect${substr_7:$sender_host_address} + + +# ----- ACL ----- + +begin acl + +connect1: + deny hosts = testdb;fail + +connect2: + deny hosts = net-testdb;fail + +# End diff --git a/test/confs/3202 b/test/confs/3202 new file mode 100644 index 000000000..97bbfa463 --- /dev/null +++ b/test/confs/3202 @@ -0,0 +1,31 @@ +# Exim test configuration 3202 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +# Use first three components of address to select ACL +acl_smtp_rcpt = acl_${sg{${tr{$sender_host_address}{.}{_}}}{^(.*)_.*\$}{\$1}} + +# ----- ACLs ----- + +begin acl + +acl_1_1_1: + accept hosts = net-testdb;defer + +acl_1_1_2: + deny domains = testdb;defer + +acl_1_1_3: + require local_parts = testdb;defer + + +# End diff --git a/test/confs/3203 b/test/confs/3203 new file mode 100644 index 000000000..1ccaf265f --- /dev/null +++ b/test/confs/3203 @@ -0,0 +1,34 @@ +# Exim test configuration 3203 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +test: + driver = redirect + allow_defer + data = postmaster@test.ex + retry_use_local_part + senders = testdb;defer + + +# ----- Retry ----- + +begin retry + +* * F,2h,10m + + +# End diff --git a/test/confs/3204 b/test/confs/3204 new file mode 100644 index 000000000..c4c40d861 --- /dev/null +++ b/test/confs/3204 @@ -0,0 +1,24 @@ +# Exim test configuration 3204 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + + +# ------ ACL ------ + +begin acl + +check_recipient: + deny senders = testdb;defer + +# End diff --git a/test/confs/3205 b/test/confs/3205 new file mode 100644 index 000000000..8b25b3627 --- /dev/null +++ b/test/confs/3205 @@ -0,0 +1,33 @@ +# Exim test configuration 3205 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = acl_${tr{$sender_host_address}{.}{_}} +domainlist local_domains = test.ex + +# ----- ACL ----- + +begin acl + +acl_1_2_3_4: + deny senders = testdb;defer + accept domains = +local_domains + deny message = relay not permitted + + +acl_4_3_2_1: + accept hosts = : + deny hosts = testdb;defer + accept domains = +local_domains + deny message = relay not permitted + +# End diff --git a/test/confs/3206 b/test/confs/3206 new file mode 100644 index 000000000..4434db155 --- /dev/null +++ b/test/confs/3206 @@ -0,0 +1,55 @@ +# Exim test configuration 3206 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : !*.remote.ex : testdb;defer + +hold_domains = !test.ex : hold.remote.ex : !*.go.remote.ex : testdb;defer +queue_domains = !test.ex : queue.go.remote.ex : testdb;defer + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + envelope_to_add + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,1h,10m + + +# End diff --git a/test/confs/3207 b/test/confs/3207 new file mode 100644 index 000000000..e9c59ae17 --- /dev/null +++ b/test/confs/3207 @@ -0,0 +1,100 @@ +# Exim test configuration 3207 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +domainlist local_domains = test.ex : ^d\d\.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = manualroute + domains = !^d : !r2.ex : !r3.ex : !r4.ex : testdb;defer + route_list = * V4NET.0.0.0 byname + transport = smtp + +r2: + driver = manualroute + caseful_local_part + domains = r2.ex + local_parts = testdb;defer + route_list = * V4NET.0.0.0 byname + transport = smtp + +r3: + driver = manualroute + condition = ${lookup testdb{defer}{yes}{no}} + domains = r3.ex + route_list = * V4NET.0.0.0 byname + transport = smtp + +r4: + driver = manualroute + domains = ! +local_domains + route_list = * V4NET.0.0.0 byname + senders = testdb;defer + transport = smtp + +d1: + driver = accept + domains = !d2.ex : !d3.ex : !d4.ex : testdb;defer + retry_use_local_part + transport = local_delivery + +d2: + driver = accept + domains = d2.ex + local_parts = testdb;defer + retry_use_local_part + transport = local_delivery + +d3: + driver = accept + condition = ${lookup testdb{defer}{yes}{no}} + domains = d3.ex + retry_use_local_part + transport = local_delivery + +d4: + driver = accept + retry_use_local_part + senders = testdb;defer + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + envelope_to_add + file = DIR/test-mail/$local_part + user = CALLER + +smtp: + driver = smtp + + +# ----- Retry ----- + + +begin retry + +* * F,1h,10m + + +# End diff --git a/test/confs/3208 b/test/confs/3208 new file mode 100644 index 000000000..90a85b39d --- /dev/null +++ b/test/confs/3208 @@ -0,0 +1,37 @@ +# Exim test configuration 3208 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + +domainlist local_domains = !*relay.ex : test.ex : testhack.ex : \ + testhack2.ex : testdb;defer + +domainlist relay_domains = test.ex : testhack.ex : testhack2.ex : \ + yesrelay.ex : testdb;defer + +percent_hack_domains = !*relay.ex : !test.ex : testhack.ex : testdb;defer + + +# ----- ACL ----- + +begin acl + +check_recipient: + # Exim 3 had no checking on -bs messages + accept hosts = : + accept domains = +local_domains + accept domains = +relay_domains + deny message = relay not permitted + +# End diff --git a/test/confs/3209 b/test/confs/3209 new file mode 100644 index 000000000..518ac3931 --- /dev/null +++ b/test/confs/3209 @@ -0,0 +1,47 @@ +# Exim test configuration 3209 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +qualify_domain = test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + + +# ----- Routers ----- + +begin routers + +lookuphost: + driver = dnslookup + domains = ! +local_domains + mx_domains = localhost : testdb;defer + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + connect_timeout = 1s + + +# ----- Retry ----- + + +begin retry + +* * F,1h,10m + + +# End diff --git a/test/confs/3210 b/test/confs/3210 new file mode 100644 index 000000000..5f399d686 --- /dev/null +++ b/test/confs/3210 @@ -0,0 +1,42 @@ +# Exim test configuration 3210 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist defer_lookup = testdb;defer +domainlist local_domains = +defer_lookup : test.ex +qualify_domain = test.ex + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = /dev/null + user = CALLER + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + domains = ! +local_domains + transport = t1 + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/3211 b/test/confs/3211 new file mode 100644 index 000000000..a7486df6a --- /dev/null +++ b/test/confs/3211 @@ -0,0 +1,45 @@ +# Exim test configuration 3211 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient + + +# ------ ACL ------ + +begin acl + +check_recipient: + accept verify = recipient + + +# ----- Routers ----- + +begin routers + +r1: + driver = dnslookup + local_part_prefix = r1- + domains = !testdb;fail + verify_only + +skipped: + driver = redirect + verify_only + data = ${lookup testdb{fail}} + debug_print = +++ sender_address = <$sender_address> + +temp: + driver = dnslookup + verify_only + +# End diff --git a/test/confs/3212 b/test/confs/3212 new file mode 100644 index 000000000..953f2c996 --- /dev/null +++ b/test/confs/3212 @@ -0,0 +1,15 @@ +# Exim test configuration 3212 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# End diff --git a/test/confs/3213 b/test/confs/3213 new file mode 100644 index 000000000..6fd88679e --- /dev/null +++ b/test/confs/3213 @@ -0,0 +1,25 @@ +# Exim test configuration 3213 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_mail = check_mail + + +# ----- ACLs ----- + +begin ACL + +check_mail: + accept senders = testdb;<$sender_address> + + +# End diff --git a/test/confs/3300 b/test/confs/3300 new file mode 100644 index 000000000..b0d54ad16 --- /dev/null +++ b/test/confs/3300 @@ -0,0 +1,14 @@ +# Exim test configuration 3300 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +# End diff --git a/test/confs/3400 b/test/confs/3400 new file mode 100644 index 000000000..61dc5a590 --- /dev/null +++ b/test/confs/3400 @@ -0,0 +1,158 @@ +# Exim test configuration 3400 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + +hostlist auth_hosts = 10.0.0.1 +hostlist relay_hosts = 10.0.0.4 +hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4 + +acl_smtp_etrn = check_etrn +acl_smtp_expn = check_expn +acl_smtp_rcpt = check_recipient +acl_smtp_vrfy = check_vrfy +auth_advertise_hosts = +auth_hosts : !+relay_hosts : +auth_relay_hosts : \ + 10.0.0.5 +smtp_accept_max_nonmail = 20 +system_filter = DIR/aux-fixed/TESTNUM.filter +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +check_recipient: + warn hosts = 10.0.0.5 + message = authentication-failed: $authentication_failed + accept hosts = 10.0.0.5 + accept hosts = : + deny hosts = +auth_hosts + message = authentication required + !authenticated = * + accept domains = +local_domains + accept hosts = +relay_hosts + accept hosts = +auth_relay_hosts + endpass + message = authentication required + authenticated = * + deny message = relay not permitted + +check_etrn: + deny hosts = +auth_hosts + message = authentication required + !authenticated = * + require hosts = 10.0.0.0/24 + warn log_message = accepted ETRN $smtp_command_argument + accept + +check_expn: + deny hosts = +auth_hosts + message = authentication required + !authenticated = * + accept hosts = 10.0.0.0/24 + +check_vrfy: + deny hosts = +auth_hosts + message = authentication required + !authenticated = * + accept + + +# ----- Authentication ----- + +begin authenticators + +mylogin: + driver = plaintext + public_name = mylogin + server_debug_print = +++MYLOGIN \$1="$1" \$2=\"$2" \$3="$3" + server_condition = "\ + ${if match{$1}{^(\\\\S+)\\\\s+(\\\\S+)\\$}\ + {${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}}{no}}" + +plain: + driver = plaintext + public_name = PLAIN + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + +extended_plain: + driver = plaintext + public_name = EXPLAIN + server_prompts = : + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + +expanded_prompt_plain: + driver = plaintext + public_name = EXPANDED + server_prompts = $primary_hostname + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + +expanded_prompt_plain_fail: + driver = plaintext + public_name = EXPANDFAIL + server_prompts = $nonexistent + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + +defer: + driver = plaintext + public_name = DEFER + server_condition = "account suspended" + server_set_id = $2 + +login: + driver = plaintext + public_name = LOGIN + server_prompts = "User Name : Password " + server_condition = "\ + ${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}" + server_set_id = $1 + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + +localuser: + driver = accept + local_parts = userx + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# End diff --git a/test/confs/3401 b/test/confs/3401 new file mode 100644 index 000000000..d2cf9c972 --- /dev/null +++ b/test/confs/3401 @@ -0,0 +1,73 @@ +# Exim test configuration 3401 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + + +# ----- Authentication ----- + +begin authenticators + +login: + driver = plaintext + public_name = LOGIN + client_send = : userx : secret + +plain: + driver = plaintext + public_name = PLAIN + client_send = ^userx^secret + + +# ----- Routers ----- + +begin routers + +try: + driver = manualroute + route_list = domain.com 127.0.0.1 byname + self = send + transport = smtp_try + +force: + driver = manualroute + route_list = authdomain.com 127.0.0.1 byname + self = send + transport = smtp_force + + +# ----- Transports ----- + +begin transports + +smtp_try: + driver = smtp + hosts_try_auth = * + port = PORT_S + authenticated_sender = ${if eq{$local_part}{forcesender}{force@x.y.z}fail} + +smtp_force: + driver = smtp + hosts_require_auth = * + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* auth_failed +* * F,1h,10m + +# End diff --git a/test/confs/3402 b/test/confs/3402 new file mode 100644 index 000000000..cc24582cd --- /dev/null +++ b/test/confs/3402 @@ -0,0 +1,33 @@ +# Exim test configuration 3402 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + + +# ----- Authentication ----- + +begin authenticators + +plain1: + driver = plaintext + public_name = PLAIN + server_condition = \ + ${if or {\ + {and {{eq{$2}{userx}}{eq{$3}{secret}}}}\ + {and {{eq{$2}{usery}}{eq{$3}{ab?}}}}\ + }\ + {yes}{no}} + server_set_id = $2 + server_mail_auth_condition = ${if eq{$authenticated_id}{userx}{yes}} + +# End diff --git a/test/confs/3403 b/test/confs/3403 new file mode 100644 index 000000000..6adcf65f3 --- /dev/null +++ b/test/confs/3403 @@ -0,0 +1,54 @@ +# Exim test configuration 3403 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + + +# ----- Authentication ----- + +begin authenticators + +plain1: + driver = plaintext + public_name = PLAIN + server_condition = \ + ${if or {\ + {and {{eq{$2}{userx}}{eq{$3}{secret}}}}\ + {and {{eq{$2}{usery}}{eq{$3}{ab?}}}}\ + }\ + {yes}{no}} + server_set_id = $2 + server_mail_auth_condition = ${if eq{$authenticated_id}{userx}{yes}} + + +# ----- Routers ----- + +begin routers + +d1: + driver = accept + headers_add = aid: $authenticated_id + retry_use_local_part + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/3404 b/test/confs/3404 new file mode 100644 index 000000000..afff4bf73 --- /dev/null +++ b/test/confs/3404 @@ -0,0 +1,61 @@ +# Exim test configuration 3404 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +trusted_users = CALLER + + +# ----- Authentication ----- + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + client_send = ^userx^secret + +login: + driver = plaintext + public_name = LOGIN + client_send = :userx:secret + + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + domains = domain.com : myhost.test.ex + headers_add = X-AID: >$authenticated_id< + route_list = * 127.0.0.1 byname + self = send + transport = smtp + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + hosts_try_auth = * + port = PORT_S + + +# ----- Retry ----- + +begin retry + +* * F,1h,10m + + +# End diff --git a/test/confs/3405 b/test/confs/3405 new file mode 100644 index 000000000..e3141510b --- /dev/null +++ b/test/confs/3405 @@ -0,0 +1,49 @@ +# Exim test configuration 3405 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Authentication ----- + + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + client_send = ^userx^secret + + +# ----- Routers ----- + +begin routers + +all: + driver = manualroute + headers_add = X-AID: >$authenticated_id< + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + headers_add = X-TAID: >$authenticated_id< + hosts_try_auth = * + port = PORT_S + +# End diff --git a/test/confs/3406 b/test/confs/3406 new file mode 100644 index 000000000..a6c262e8b --- /dev/null +++ b/test/confs/3406 @@ -0,0 +1,36 @@ +# Exim test configuration 3406 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +trusted_users = CALLER + + +# ----- Authentication ----- + +begin authenticators + +a1: + driver = plaintext + public_name = FIRST + server_advertise_condition = \ + ${if eq{$sender_host_address}{10.0.0.2}{yes}{no}} + server_condition = yes + +a2: + driver = plaintext + public_name = SECOND + server_advertise_condition = \ + ${if eq{$sender_host_address}{10.0.0.3}{yes}{no}} + server_condition = yes + +# End diff --git a/test/confs/3407 b/test/confs/3407 new file mode 100644 index 000000000..453e3cade --- /dev/null +++ b/test/confs/3407 @@ -0,0 +1,43 @@ +# Exim test configuration 3407 + +OPTION=server_condition = xxx + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + + +# ----- Authenticators ----- + +begin authenticators + +a1: + driver = plaintext + public_name = PLAIN + server_condition = xxx + +a2: + driver = plaintext + public_name = PLAIN + OPTION + +a3: + driver = plaintext + public_name = LOGIN + OPTION + +a4: + driver = plaintext + public_name = LOGIN + OPTION + +# End diff --git a/test/confs/3408 b/test/confs/3408 new file mode 100644 index 000000000..9b90c4bfa --- /dev/null +++ b/test/confs/3408 @@ -0,0 +1,79 @@ +# Exim test configuration 3408 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = exim.test.ex +acl_smtp_rcpt = check_recipient +domainlist local_domains = exim.test.ex + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept hosts = : + accept recipients = postmaster@exim.test.ex + deny message = host is listed in $dnslist_domain + !authenticated = * + dnslists = rbl.test.ex + require verify = sender + deny message = unrouteable address + !verify = recipient + accept domains = +local_domains + deny message = relay not permitted + + +# ----- Authentication ----- + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + + +# ----- Routers ----- + +begin routers + +system_aliases: + driver = redirect + allow_defer + data = ${lookup{$local_part}lsearch{DIR/aux-var/TESTNUM.aliases}} + retry_use_local_part + +localuser: + driver = accept + check_local_user + transport = local_delivery + +list: + driver = accept + local_parts = userx + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + +# End diff --git a/test/confs/3409 b/test/confs/3409 new file mode 100644 index 000000000..a9f35a441 --- /dev/null +++ b/test/confs/3409 @@ -0,0 +1,32 @@ +# Exim test configuration 3409 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_etrn = accept +log_selector = \ + +smtp_syntax_error \ + +smtp_protocol_error +recipients_max = 5 +smtp_max_synprot_errors = 1000 + + +# ----- Authentication ----- + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + +# End diff --git a/test/confs/3410 b/test/confs/3410 new file mode 100644 index 000000000..283a7b297 --- /dev/null +++ b/test/confs/3410 @@ -0,0 +1,48 @@ +# Exim test configuration 3410 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +# Use first three components of address to select ACL +acl_smtp_rcpt = acl_${sg{${tr{$sender_host_address}{.}{_}}}{^(.*)_.*\$}{\$1}} + +# ----- ACLs ----- + +begin acl + +# These ones test defers + +acl_5_6_9: + accept endpass + message = You must authenticate + authenticated = * + +acl_5_6_10: + accept authenticated = auth1 + + +# ------ Authenticators ---- + +begin authenticators + +auth1: + driver = plaintext + public_name = PLAIN + server_condition = ${if eq {$3}{secret}{yes}{no}} + +auth2: + driver = plaintext + public_name = LOGIN + server_prompts = "User Name : Password " + server_condition = ${if eq {$2}{secret}{yes}{no}} + + +# End diff --git a/test/confs/3411 b/test/confs/3411 new file mode 100644 index 000000000..c2f00db7b --- /dev/null +++ b/test/confs/3411 @@ -0,0 +1,98 @@ +# Exim test configuration 3411 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +domainlist relay_domains = ten-1.test.ex + +hostlist relay_hosts = 10.255.255.0/24 + +trusted_users = CALLER + +acl_smtp_rcpt = acl_rcpt + +# ------ ACLs ------ + +begin acl + +acl_rcpt: + accept hosts = : + + accept domains = +local_domains + local_parts = postmaster + + require verify = sender + + deny message = rejected because $sender_host_address is in a black list at $dnslist_domain\n$dnslist_text + dnslists = rbl.test.ex + + warn message = X-Warning: $sender_host_address is in a black list at $dnslist_domain ($dnslist_value) + log_message = found in $dnslist_domain + dnslists = rbl2.test.ex + + accept domains = +local_domains + endpass + verify = recipient + + require verify = recipient + + accept domains = +relay_domains + + accept hosts = 127.0.0.1 : +relay_hosts + + accept authenticated = * + + deny message = relay not permitted + + +# ------ Authenticators ------ + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + server_condition = ${if eq {$3}{secret}{yes}{no}} + + +# ------ Routers ------ + +begin routers + +r1: + driver = dnslookup + domains = ! +local_domains + transport = dev_null + no_more + +r2: + driver = accept + local_parts = userx : postmaster + transport = local_delivery + cannot_route_message = unknown user + + +# ------ Transports ------ + +begin transports + +dev_null: + driver = appendfile + file = /dev/null + user = CALLER + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + +# End diff --git a/test/confs/3412 b/test/confs/3412 new file mode 100644 index 000000000..bd8336e9e --- /dev/null +++ b/test/confs/3412 @@ -0,0 +1,54 @@ +# Exim test configuration 3412 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +bounce_sender_authentication = mailer-daemon@test.ex +trusted_users = CALLER + + +# ----- Authentication ----- + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + client_send = ^userx^secret + + +# ----- Routers ----- + +begin routers + +local: + driver = redirect + domains = test.ex + allow_fail + data = :fail: no deliveries made locally + +remote: + driver = accept + transport = smtp + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + port = PORT_S + hosts_try_auth = * + +# End diff --git a/test/confs/3413 b/test/confs/3413 new file mode 100644 index 000000000..2288119ef --- /dev/null +++ b/test/confs/3413 @@ -0,0 +1,30 @@ +# Exim test configuration 3413 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +smtp_accept_max_nonmail = 3 + +# Set this large to avoid it biting first +smtp_max_synprot_errors = 20 + +# ----- Authenticators ----- + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + +# End diff --git a/test/confs/3414 b/test/confs/3414 new file mode 100644 index 000000000..901386899 --- /dev/null +++ b/test/confs/3414 @@ -0,0 +1,44 @@ +# Exim test configuration 3414 + +ACL= +S= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_mail = mail +S acl_smtp_mailauth=ACL + + +# ----- ACLs ----- + +begin acl + +acl1: + accept condition = ${if eq{$authenticated_sender}{ok@ok}{1}{0}} + +mail: + warn log_message = \$authenticated_sender=$authenticated_sender + accept + + +# ----- Authenticators ----- + +begin authenticators + +ok: + driver = plaintext + public_name = PLAIN + server_prompts = : + server_condition = true + + +# End diff --git a/test/confs/3415 b/test/confs/3415 new file mode 100644 index 000000000..835484ee6 --- /dev/null +++ b/test/confs/3415 @@ -0,0 +1,48 @@ +# Exim test configuration 3415 + +SERVER= +SUBMISSION_OPTIONS= +AUTH_ID_DOMAIN= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_mail = a1 +acl_smtp_rcpt = accept + +queue_only +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +a1: + warn senders = ^(?!notsubmit@) + control = submissionSUBMISSION_OPTIONS + accept + + +# ----- Authenticators ----- + +begin authenticators + +au1: + driver = plaintext + public_name = PLAIN + server_prompts = : + server_condition = \ + ${if and {{eq{$2}{username}}{eq{$3}{mysecret}}}{yes}{no}} + server_set_id = $2AUTH_ID_DOMAIN + + +# End diff --git a/test/confs/3450 b/test/confs/3450 new file mode 100644 index 000000000..25d00ac1d --- /dev/null +++ b/test/confs/3450 @@ -0,0 +1,47 @@ +# Exim test configuration 3450 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +hostlist auth_over_tls_hosts = 127.0.0.1 + +acl_smtp_auth = check_auth + +tls_advertise_hosts = * +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + + +# ----- ACL ----- + +begin acl +check_auth: + accept hosts = +auth_over_tls_hosts + endpass + message = STARTTLS required before AUTH + encrypted = * + accept + + +# ----- Authenticators ----- + + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + +# End diff --git a/test/confs/3451 b/test/confs/3451 new file mode 100644 index 000000000..4f3621b84 --- /dev/null +++ b/test/confs/3451 @@ -0,0 +1,79 @@ +# Exim test configuration 3451 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +smtp_accept_max_nonmail = 0 + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ----- Authenticators ----- + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + client_send = ^userx^secret + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + hosts_try_auth = * + port = PORT_D + +# End diff --git a/test/confs/3452 b/test/confs/3452 new file mode 100644 index 000000000..663be3f35 --- /dev/null +++ b/test/confs/3452 @@ -0,0 +1,87 @@ +# Exim test configuration 3452 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ----- Authenticators ----- + +begin authenticators + +plain: + driver = plaintext + public_name = LOGIN + server_prompts = Username : Password + server_condition = "\ + ${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}" + server_set_id = $1 + client_send = : userx : secret + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + hosts_try_auth = * + port = PORT_D + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/3453 b/test/confs/3453 new file mode 100644 index 000000000..9771050f2 --- /dev/null +++ b/test/confs/3453 @@ -0,0 +1,35 @@ +# Exim test configuration 3453 + +REMEMBER=false + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +tls_advertise_hosts = * +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 +tls_remember_esmtp = REMEMBER + + +# ----- Authenticators ----- + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + +# End diff --git a/test/confs/3460 b/test/confs/3460 new file mode 100644 index 000000000..496bcd8c2 --- /dev/null +++ b/test/confs/3460 @@ -0,0 +1,47 @@ +# Exim test configuration 3460 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +hostlist auth_over_tls_hosts = 127.0.0.1 + +acl_smtp_auth = check_auth + +tls_advertise_hosts = * +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 + + +# ----- ACL ----- + +begin acl +check_auth: + accept hosts = +auth_over_tls_hosts + endpass + message = STARTTLS required before AUTH + encrypted = * + accept + + +# ----- Authenticators ----- + + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + +# End diff --git a/test/confs/3461 b/test/confs/3461 new file mode 100644 index 000000000..48fe4da3e --- /dev/null +++ b/test/confs/3461 @@ -0,0 +1,79 @@ +# Exim test configuration 3461 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +smtp_accept_max_nonmail = 0 + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ----- Authenticators ----- + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + client_send = ^userx^secret + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + hosts_try_auth = * + port = PORT_D + +# End diff --git a/test/confs/3462 b/test/confs/3462 new file mode 100644 index 000000000..ec155bfdd --- /dev/null +++ b/test/confs/3462 @@ -0,0 +1,87 @@ +# Exim test configuration 3462 + +SERVER = + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + +log_selector = +tls_peerdn + +queue_only +queue_run_in_order + +tls_advertise_hosts = * + +# Set certificate only if server + +tls_certificate = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} +tls_privatekey = ${if eq {SERVER}{server}{DIR/aux-fixed/cert1}fail} + + +# ----- Authenticators ----- + +begin authenticators + +plain: + driver = plaintext + public_name = LOGIN + server_prompts = Username : Password + server_condition = "\ + ${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}" + server_set_id = $1 + client_send = : userx : secret + + +# ----- Routers ----- + +begin routers + +client: + driver = accept + condition = ${if eq {SERVER}{server}{no}{yes}} + retry_use_local_part + transport = send_to_server + +server: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + headers_add = TLS: cipher=$tls_cipher peerdn=$tls_peerdn + user = CALLER + +send_to_server: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + hosts_try_auth = * + port = PORT_D + + +# ----- Retry ----- + + +begin retry + +* * F,5d,10s + + +# End diff --git a/test/confs/3463 b/test/confs/3463 new file mode 100644 index 000000000..d20d1c30b --- /dev/null +++ b/test/confs/3463 @@ -0,0 +1,35 @@ +# Exim test configuration 3463 + +REMEMBER=false + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +tls_advertise_hosts = * +tls_certificate = DIR/aux-fixed/cert1 +tls_privatekey = DIR/aux-fixed/cert1 +tls_remember_esmtp = REMEMBER + + +# ----- Authenticators ----- + +begin authenticators + +plain: + driver = plaintext + public_name = PLAIN + server_condition = "\ + ${if and {{eq{$2}{userx}}{eq{$3}{secret}}}{yes}{no}}" + server_set_id = $2 + +# End diff --git a/test/confs/3500 b/test/confs/3500 new file mode 100644 index 000000000..999cd5673 --- /dev/null +++ b/test/confs/3500 @@ -0,0 +1,114 @@ +# Exim test configuration 3500 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + +hostlist auth_hosts = 10.0.0.1 +hostlist relay_hosts = 10.0.0.4 +hostlist auth_relay_hosts = 10.0.0.3 : 10.0.0.4 + +acl_smtp_etrn = check_etrn +acl_smtp_expn = check_expn +acl_smtp_rcpt = check_recipient +acl_smtp_vrfy = check_vrfy +auth_advertise_hosts = +auth_hosts : !+relay_hosts : +auth_relay_hosts : \ + 10.0.0.5 +smtp_accept_max_nonmail = 20 +system_filter = DIR/aux-fixed/TESTNUM.filter +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +check_recipient: + warn hosts = 10.0.0.5 + message = authentication-failed: $authentication_failed + accept hosts = 10.0.0.5 + accept hosts = : + deny hosts = +auth_hosts + message = authentication required + !authenticated = * + accept domains = +local_domains + accept hosts = +relay_hosts + accept hosts = +auth_relay_hosts + endpass + message = authentication required + authenticated = * + deny message = relay not permitted + +check_etrn: + deny hosts = +auth_hosts + message = authentication required + !authenticated = * + require hosts = 10.0.0.0/24 + warn log_message = accepted ETRN $smtp_command_argument + accept + +check_expn: + deny hosts = +auth_hosts + message = authentication required + !authenticated = * + accept hosts = 10.0.0.0/24 + +check_vrfy: + deny hosts = +auth_hosts + message = authentication required + !authenticated = * + accept + + +# ----- Authentication ----- + +begin authenticators + +cram_md5: + driver = cram_md5 + public_name = CRAM-MD5 + server_debug_print = +++CRAM-MD5 \$1="$1" \$2=\"$2" \$3="$3" + server_secret = "${if eq{$1}{tim}{tanstaaftanstaaf}\ + {${if eq{$1}{userx}{secret}fail}}}" + server_set_id = $1 + + + +# ----- Routers ----- + +begin routers + +fail_remote_domains: + driver = redirect + domains = ! +local_domains + data = :fail: unrouteable mail domain "$domain" + +localuser: + driver = accept + local_parts = userx + transport = appendfile + + +# ----- Transports ----- + +begin transports + +appendfile: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + + +# End diff --git a/test/confs/3501 b/test/confs/3501 new file mode 100644 index 000000000..3f458a1bf --- /dev/null +++ b/test/confs/3501 @@ -0,0 +1,69 @@ +# Exim test configuration 3501 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept + + +# ----- Authentication ----- + +begin authenticators + +cram_md5: + driver = cram_md5 + public_name = CRAM-MD5 + client_name = tim + client_secret = tanstaaftanstaaf + + +# ----- Routers ----- + +begin routers + +try: + driver = manualroute + route_list = domain.com 127.0.0.1 byname + self = send + transport = smtp_try + +force: + driver = manualroute + route_list = authdomain.com 127.0.0.1 byname + self = send + transport = smtp_force + + +# ----- Transports ----- + +begin transports + +smtp_try: + driver = smtp + hosts_try_auth = * + port = PORT_S + authenticated_sender = ${if eq{$local_part}{forcesender}{force@x.y.z}fail} + +smtp_force: + driver = smtp + hosts_require_auth = * + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* auth_failed +* * F,1h,10m + +# End diff --git a/test/confs/3600 b/test/confs/3600 new file mode 100644 index 000000000..5550c3b11 --- /dev/null +++ b/test/confs/3600 @@ -0,0 +1,78 @@ +# Exim test configuration 3600 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +queue_only +trusted_users = CALLER + + +# ----- ACL ----- + +begin acl + +check_recipient: + deny message = authentication required + !authenticated = * + accept + + +# ----- Authentication ----- + +begin authenticators + +# Forced expansion failure +spabad: + driver = spa + public_name = NTLMX + client_password = ${if eq{1}{0}{xxx}fail} + client_username = username + server_password = ok@test.ex + +spa: + driver = spa + public_name = NTLM + client_password = $sender_address + client_username = username + server_password = ok@test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + hosts = 127.0.0.1 + port = PORT_D + allow_localhost + hosts_require_auth = * + + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + +# End diff --git a/test/confs/4000 b/test/confs/4000 new file mode 100644 index 000000000..cc08c71d4 --- /dev/null +++ b/test/confs/4000 @@ -0,0 +1,91 @@ +# Exim test configuration 4000 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +acl_smtp_rcpt = check_rcpt +acl_smtp_data = check_data +acl_not_smtp = check_data +acl_smtp_mime = check_mime +acl_not_smtp_mime = check_mime + +av_scanner = clamd:CLAMSOCKET + + +# ----- ACL ----- + +begin acl + +check_rcpt: + accept + +check_data: + deny message = Found $malware_name + malware = * + + warn spam = nobody + + warn set acl_m0 = $spam_score_int + + warn message = X-Regex: Regex matched + regex = THIS REGEX + + warn condition = ${if !eq{$h_fakereject:}{}} + control = fakereject + + warn condition = ${if !eq{$h_fakedefer:}{}} + control = fakedefer + + accept + +check_mime: + warn decode = default + message = X-$mime_part_count-content-type: $mime_content_type\n\ + X-$mime_part_count-filename: $mime_filename\n\ + X-$mime_part_count-charset: $mime_charset\n\ + X-$mime_part_count-boundary: $mime_boundary\n\ + X-$mime_part_count-content-disposition: $mime_content_disposition\n\ + X-$mime_part_count-content-transfer-encoding: $mime_content_transfer_encoding\n\ + X-$mime_part_count-content-id: $mime_content_id\n\ + X-$mime_part_count-content-description: $mime_content_description\n\ + X-$mime_part_count-is-multipart: $mime_is_multipart\n\ + X-$mime_part_count-is-coverletter: $mime_is_coverletter\n\ + X-$mime_part_count-is-rfc822: $mime_is_rfc822\n\ + X-$mime_part_count-decode-filename: $mime_decoded_filename\n\ + X-$mime_part_count-content-size: $mime_content_size + + accept + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + headers_add = X-Router-SSint: \ + ${if eq {$spam_score_int}{$acl_m0}\ + {was preserved}{was not preserver}} + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/4100 b/test/confs/4100 new file mode 100644 index 000000000..bd6362946 --- /dev/null +++ b/test/confs/4100 @@ -0,0 +1,16 @@ +# Exim test configuration 4100 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + +# End diff --git a/test/confs/4950 b/test/confs/4950 new file mode 100644 index 000000000..ef5ce9c59 --- /dev/null +++ b/test/confs/4950 @@ -0,0 +1,42 @@ +# Exim test configuration 4950 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = check_recipient +acl_smtp_data = check_message + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +lookuphost: + driver = dnslookup + domains = ! +local_domains + translate_ip_address = "\ + ${if eq {${mask:$host_address/24}}{V4NET.11.12.0/24}{1.2.3.4}\ + {${lookup{${mask:$host_address/27}}lsearch{DIR/aux-var/TESTNUM.tr}{$value}fail}}}" + transport = smtp + no_more + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + + +# End diff --git a/test/confs/5000 b/test/confs/5000 new file mode 100644 index 000000000..67089100f --- /dev/null +++ b/test/confs/5000 @@ -0,0 +1,69 @@ +# Exim test configuration 5000 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_parts = userx + transport = $h_maildir:appendfile + + +# ----- Transports ----- + +begin transports + +maildir_appendfile: + driver = appendfile + directory = DIR/test-mail + maildir_format + quota = 10K + user = CALLER + +maildir_tagged_appendfile: + driver = appendfile + directory = DIR/test-mail + envelope_to_add + maildir_format + maildir_tag = ${expand:$h_tag:} + message_prefix = + quota = 20K + quota_size_regex = S=(\d+)$ + message_suffix = + user = CALLER + +maildir_taggedX_appendfile: + driver = appendfile + directory = DIR/test-mail + envelope_to_add + maildir_format + maildir_tag = ${expand:$h_tag:} + message_prefix = + quota = 20K + quota_size_regex = ,S=(\d+): + message_suffix = + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/5001 b/test/confs/5001 new file mode 100644 index 000000000..279bea3d4 --- /dev/null +++ b/test/confs/5001 @@ -0,0 +1,49 @@ +# Exim test configuration 5001 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +maildiruser: + driver = accept + retry_use_local_part + transport = maildir + transport_home_directory = DIR/test-mail + + +# ----- Transports ----- + +begin transports + +maildir: + driver = appendfile + maildir_format + create_file = belowhome + directory = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.filelist}\ + {${if match{$value}{^/}{}{DIR/}}$value}\ + {DIR/test-mail/$local_part}} + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/5002 b/test/confs/5002 new file mode 100644 index 000000000..78dd5bbc6 --- /dev/null +++ b/test/confs/5002 @@ -0,0 +1,47 @@ +# Exim test configuration 5002 + +exim_path = EXIM_PATH +primary_hostname = myhost.test.ex +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + directory = DIR/test-mail + maildir_format + quota = 1.5K + quota_filecount = ${if eq {$local_part}{qqq}{1}{4}} + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/5003 b/test/confs/5003 new file mode 100644 index 000000000..66cb72b08 --- /dev/null +++ b/test/confs/5003 @@ -0,0 +1,53 @@ +# Exim test configuration 5003 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +all: + driver = accept + retry_use_local_part + transport = local_delivery${if eq{$local_part}{dir3}{2}} + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + directory = DIR/test-mail/$local_part + maildir_format + quota = 1.5K + user = CALLER + +local_delivery2: + driver = appendfile + directory = DIR/test-mail/$local_part/ + maildir_format + quota = 1.5K + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/5004 b/test/confs/5004 new file mode 100644 index 000000000..c88668c9f --- /dev/null +++ b/test/confs/5004 @@ -0,0 +1,41 @@ +# Exim test configuration 5004 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +primary_hostname = mail.test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + data = "# Exim filter\nsave DIR/test-mail" + allow_filter + file_transport = t1 + user = CALLER + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + maildir_format + message_prefix = + message_suffix = + user = CALLER + + +# End diff --git a/test/confs/5005 b/test/confs/5005 new file mode 100644 index 000000000..61e22e303 --- /dev/null +++ b/test/confs/5005 @@ -0,0 +1,49 @@ +# Exim test configuration 5005 + +QUOTA=500 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +delay_warning = +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + directory = DIR/test-mail/$local_part + user = CALLER + maildir_format + maildir_use_size_file + quota = QUOTA + + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + + +# End diff --git a/test/confs/5006 b/test/confs/5006 new file mode 100644 index 000000000..c8cb539fe --- /dev/null +++ b/test/confs/5006 @@ -0,0 +1,46 @@ +# Exim test configuration 5006 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + directory = DIR/test-mail/$local_part + user = CALLER + maildir_format + maildir_use_size_file + quota_warn_threshold = 50% + + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + + +# End diff --git a/test/confs/5050 b/test/confs/5050 new file mode 100644 index 000000000..934cf3db2 --- /dev/null +++ b/test/confs/5050 @@ -0,0 +1,74 @@ +# Exim test configuration 5050 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +localuser: + driver = accept + local_part_prefix = bsmtp_ : mmdf_ : mbx_ + local_part_prefix_optional + retry_use_local_part + transport = ${local_part_prefix}local_delivery + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + file_format = "From : local_delivery :\ + *mbx*\r\n : mbx_local_delivery :\ + tpmissing : tpmissing" + return_path_add + user = CALLER + +bsmtp_local_delivery: + driver = appendfile + batch_max = 100 + use_bsmtp + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +mbx_local_delivery: + driver = appendfile + check_string = + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + mbx_format + message_prefix = + return_path_add + message_suffix = + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,2d,2d + +# End diff --git a/test/confs/5100 b/test/confs/5100 new file mode 100644 index 000000000..a1b5c67d0 --- /dev/null +++ b/test/confs/5100 @@ -0,0 +1,58 @@ +# Exim test configuration 5100 + +IGNORE_QUOTA=FALSE + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + + +# ----- Routers ----- + +begin routers + +bounces: + driver = redirect + allow_defer + data = :blackhole: + retry_use_local_part + senders = : + +smartuser: + driver = accept + retry_use_local_part + transport = lmtp + + +# ----- Transports ----- + +begin transports + +lmtp: + driver = lmtp + batch_max = 100 + command = DIR/bin/mtpscript DIR/aux-fixed/TESTNUM.script.$h_script: +DIR/spool/log/mainlog + timeout = 1s + user = EXIMUSER + ignore_quota = IGNORE_QUOTA + + +# ----- Retry ----- + + +begin retry + +* rcpt_4xx F,1d,1m +* * F,5d,1d + + +# End diff --git a/test/confs/5101 b/test/confs/5101 new file mode 100644 index 000000000..20b3dbb27 --- /dev/null +++ b/test/confs/5101 @@ -0,0 +1,65 @@ +# Exim test configuration 5101 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + + +# ----- Routers ----- + +begin routers + +bounces: + driver = accept + retry_use_local_part + senders = : + transport = local_delivery + +smartuser: + driver = accept + retry_use_local_part + transport = lmtp + router_home_directory = /usr + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + envelope_to_add + headers_add = X-Recipient: local_part=$local_part domain=$domain\n\ + X-Home: $home + file = DIR/test-mail/${if eq{$sender_address}{}{copied}{$h_mailbox:}} + user = CALLER + +lmtp: + driver = lmtp + batch_max = 100 + command = DIR/bin/mtpscript DIR/aux-fixed/TESTNUM.script +DIR/spool/log/mainlog + shadow_transport = local_delivery + shadow_condition = ${if eq {$home}{/usr}{yes}{no}} + timeout = 1s + transport_filter = DIR/aux-fixed/TESTNUM.filter + user = EXIMUSER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/5102 b/test/confs/5102 new file mode 100644 index 000000000..67679fa92 --- /dev/null +++ b/test/confs/5102 @@ -0,0 +1,54 @@ +# Exim test configuration 5102 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex : *.test.ex + + +# ----- Routers ----- + +begin routers + +bounces: + driver = redirect + allow_defer + data = :blackhole: + retry_use_local_part + senders = : + +smartuser: + driver = accept + retry_use_local_part + transport = lmtp + + +# ----- Transports ----- + +begin transports + +lmtp: + driver = lmtp + batch_max = 100 + socket = DIR/test.socket + timeout = 1s + user = EXIMUSER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/5103 b/test/confs/5103 new file mode 100644 index 000000000..32370a766 --- /dev/null +++ b/test/confs/5103 @@ -0,0 +1,40 @@ +# Exim test configuration 5103 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + transport = $h_transport: + + +# ----- Transports ----- + +begin transports + +t1: + driver = lmtp + command = DIR/bin/mtpscript DIR/aux-fixed/TESTNUM.script +DIR/spool/log/mainlog + transport_filter = /non/existent/file + + +# ----- Retry ----- + +begin retry + +* * F,1d,1d + +# End diff --git a/test/confs/5200 b/test/confs/5200 new file mode 100644 index 000000000..415d2f9a7 --- /dev/null +++ b/test/confs/5200 @@ -0,0 +1,62 @@ +# Exim test configuration 5200 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +freeze_tell = postmaster + + +# ----- Routers ----- + +begin routers + +mailmaster: + driver = accept + local_parts = postmaster + retry_use_local_part + transport = local_delivery + user = CALLER + +freeze: + driver = queryprogram + retry_use_local_part + transport = blackhole + command = /bin/echo freeze forced freeze + command_user = CALLER + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + delivery_date_add + envelope_to_add + file = DIR/test-mail/$local_part + return_path_add + user = CALLER + +blackhole: + driver = appendfile + file = /dev/null + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,2d,2d + + +# End diff --git a/test/confs/5201 b/test/confs/5201 new file mode 100644 index 000000000..7de922887 --- /dev/null +++ b/test/confs/5201 @@ -0,0 +1,54 @@ +# Exim test configuration 5201 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +system_filter = DIR/aux-fixed/TESTNUM.filter +move_frozen_messages + + +# ----- Routers ----- + +begin routers + +no_freeze: + driver = accept + local_parts = notfrozen + retry_use_local_part + transport = local_delivery + +freeze_all: + driver = queryprogram + retry_use_local_part + command = /bin/echo freeze forced freeze + command_user = CALLER + + +# ----- Transports ----- + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/5202 b/test/confs/5202 new file mode 100644 index 000000000..33a6f593b --- /dev/null +++ b/test/confs/5202 @@ -0,0 +1,39 @@ +# Exim test configuration 5202 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +system_filter = DIR/aux-fixed/TESTNUM.filter +move_frozen_messages +split_spool_directory + + +# ----- Routers ----- + +begin routers + +freeze_all: + driver = queryprogram + retry_use_local_part + command = /bin/echo freeze forced freeze + command_user = CALLER + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/5203 b/test/confs/5203 new file mode 100644 index 000000000..aeb5e0b10 --- /dev/null +++ b/test/confs/5203 @@ -0,0 +1,40 @@ +# Exim test configuration 5203 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + + +# ----- Routers ----- + +begin routers + +query: + driver = queryprogram + command = DIR/bin/fd -q + command_user = nobody + domains = ! +local_domains + transport = userx_delivery + no_more + +# ----- Transports ----- + +begin transports + +userx_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + message_suffix = "$address_data\n" + user = CALLER + + +# End diff --git a/test/confs/5204 b/test/confs/5204 new file mode 100644 index 000000000..a134270a6 --- /dev/null +++ b/test/confs/5204 @@ -0,0 +1,78 @@ +# Exim test configuration 5204 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +# ----- Routers ----- + +begin routers + +b: + driver = accept + senders = : + transport = local_delivery + +q: + driver = queryprogram + caseful_local_part + command = /bin/echo \ + "${if match{$local_part}{^\"([^\"]*)\"(.*)\\$}{$1$2}{$local_part}}" + command_user = EXIMUSER + domains = ! +local_domains + no_more + transport = smtp + +s: + driver = manualroute + domains = ! +local_domains + route_list = * 127.0.0.1 byname + self = send + transport = smtp + no_more + +pm: + driver = accept + local_parts = postmaster + retry_use_local_part + transport = null + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + +other_smtp: + driver = smtp + +null: + driver = appendfile + file = /dev/null + user = CALLER + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,2h,15m + + +# End diff --git a/test/confs/5205 b/test/confs/5205 new file mode 100644 index 000000000..fbbed48cf --- /dev/null +++ b/test/confs/5205 @@ -0,0 +1,36 @@ +# Exim test configuration 5205 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex +qualify_domain = test.ex + +# ----- Routers ----- + +begin routers + +queryprogram: + driver = queryprogram + command = /bin/echo ACCEPT transport=smtp hosts=ten-3.test.ex lookup=byname + command_user = nobody + domains = ten-3.test.ex + ignore_target_hosts = V4NET.0.0.0/8 + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + +# End diff --git a/test/confs/5206 b/test/confs/5206 new file mode 100644 index 000000000..d0a3abf9a --- /dev/null +++ b/test/confs/5206 @@ -0,0 +1,47 @@ +# Exim test configuration 5206 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +qualify_domain = test.ex +allow_mx_to_ip + +# ----- Routers ----- + +begin routers + +queryprogram: + driver = queryprogram + command = /bin/echo accept transport=smtp hosts=ten-3.test.ex lookup=bydns + command_user = nobody + domains = ten-3.test.ex + ignore_target_hosts = V4NET.0.0.0/8 + + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + + +begin retry + +* * F,5d,1d + + +# End diff --git a/test/confs/5207 b/test/confs/5207 new file mode 100644 index 000000000..73e5ee499 --- /dev/null +++ b/test/confs/5207 @@ -0,0 +1,56 @@ +# Exim test configuration 5207 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/${if eq{$address_data}{}{$local_part}{$address_data}} + user = CALLER + +# ----- Routers ----- + +begin routers + +# Delivered without changing address_data + +nodata: + driver = accept + local_parts = nodata + transport = t1 + +r6: + driver = queryprogram + domains = r6 + address_data = qpgm + command = /bin/echo ACCEPT transport=t1 + command_user = nobody + +r7: + driver = queryprogram + domains = r7 + address_data = qpgm + command = /bin/echo redirect nodata@test.ex + command_user = nobody + +# ----- Retry ----- + +begin retry + +* * F,5d,5m + +# End diff --git a/test/confs/5208 b/test/confs/5208 new file mode 100644 index 000000000..4f6a981b2 --- /dev/null +++ b/test/confs/5208 @@ -0,0 +1,37 @@ +# Exim test configuration 5208 + +LIST= +SELF=freeze + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = queryprogram + domains = query.program + transport = t1 + command = /bin/echo "accept hosts=LIST" + command_user = CALLER + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +# End diff --git a/test/confs/5209 b/test/confs/5209 new file mode 100644 index 000000000..fb1da45e0 --- /dev/null +++ b/test/confs/5209 @@ -0,0 +1,44 @@ +# Exim test configuration 5209 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r1: + driver = queryprogram + command_user = EXIMUSER + command = /bin/echo fail 67890B234567890C234567890D234567890E234567890\ + F234567890G234567890H234567890I234567890J234567890\ + K234567890L234567890M234567890N234567890O234567890\ + P234567890Q234567890R234567890S234567890T234567890\ + U234567890V234567890W234567890X234567890Y234567890\ + a234567890b234567890c234567890d234567890e234567890\ + f234567890g234567890h234567890i234567890j234567890\ + k234567890l234567890m234567890n234567890o234567890\ + p234567890q234567890r234567890s234567890t234567890\ + u234567890v234567890w234567890x234567890y234567890\ + A234567890B234567890C234567890D234567890E234567890\ + F234567890G234567890H234567890I234567890J234567890\ + K234567890L234567890M234567890N234567890O234567890\ + P234567890Q234567890R234567890S234567890T234567890\ + U234567890V234567890W234567890X234567890Y234567890\ + a234567890b234567890c234567890d234567890e234567890\ + f234567890g234567890h234567890i234567890j234567890\ + k234567890l234567890m234567890n234567890o234567890\ + p234567890q234567890r234567890s234567890t234567890\ + u234567890v234567890w234567890x234567890y234567890\ + A234567890B234567890C234567890D234567890E234567890 + +# End diff --git a/test/confs/5300 b/test/confs/5300 new file mode 100644 index 000000000..6865447e6 --- /dev/null +++ b/test/confs/5300 @@ -0,0 +1,57 @@ +# Exim test configuration 5300 + +ALLOW=true + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +qualify_domain = test.ex +allow_domain_literals = ALLOW +trusted_users = CALLER + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +# ----- Routers ----- + +begin routers + +r0: + driver = ipliteral + transport = t1 + ignore_target_hosts = V4NET.9.8.7 : 127.0.0.1 + +r1: + driver = ipliteral + domains = [V4NET.9.8.7] + transport = t1 + +r2: + driver = ipliteral + transport = t1 + self = pass + +r3: + driver = accept + transport = t1 + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + +# End diff --git a/test/confs/5301 b/test/confs/5301 new file mode 100644 index 000000000..115604f49 --- /dev/null +++ b/test/confs/5301 @@ -0,0 +1,58 @@ +# Exim test configuration 5301 + +D6= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +allow_domain_literals +qualify_domain = test.ex +trusted_users = CALLER +D6 + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + +# ----- Routers ----- + +begin routers + +r0: + driver = ipliteral + transport = t1 + ignore_target_hosts = V4NET.9.8.7 : 127.0.0.1 + +r1: + driver = ipliteral + domains = [V4NET.9.8.7] + transport = t1 + +r2: + driver = ipliteral + transport = t1 + self = pass + +r3: + driver = accept + transport = t1 + +# ----- Retry ----- + +begin retry + +* * F,5d,10s + +# End diff --git a/test/confs/9000 b/test/confs/9000 new file mode 100644 index 000000000..8f48594fe --- /dev/null +++ b/test/confs/9000 @@ -0,0 +1,18 @@ +# Exim test configuration 9000 + +LDAPSERVERS= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +LDAPSERVERS + +# End diff --git a/test/confs/9001 b/test/confs/9001 new file mode 100644 index 000000000..b4177159c --- /dev/null +++ b/test/confs/9001 @@ -0,0 +1,40 @@ +# Exim test configuration 9001 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +r0: + driver = accept + senders = : + transport = t1 + +r1: + driver = redirect + data = ${lookup ldap user="cn=xxx,o=yyy,c=UK" pass="secret" \ + ldap:///o=zzz,c=UK,?sn?sub?(cn=foo)}} + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + + +# End diff --git a/test/confs/9100 b/test/confs/9100 new file mode 100644 index 000000000..eb4fd142e --- /dev/null +++ b/test/confs/9100 @@ -0,0 +1,53 @@ +# Exim test configuration 9100 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = @ +hostlist relay_hosts = net-mysql;select * from them where id='$sender_host_address' + +acl_smtp_rcpt = check_recipient + +mysql_servers = localhost/test/root/password + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept domains = +local_domains + accept hosts = +relay_hosts + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + address_data = ${lookup mysql{select name from them where id='ph10'}} + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/\ + ${lookup mysql{select id from them where id='ph10'}{$value}fail} + user = CALLER + + +# End diff --git a/test/confs/9200 b/test/confs/9200 new file mode 100644 index 000000000..022e589d9 --- /dev/null +++ b/test/confs/9200 @@ -0,0 +1,56 @@ +# Exim test configuration 9200 + +SERVERS=localhost/test/ph10/ + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +domainlist local_domains = @ +hostlist relay_hosts = net-pgsql;select * from them where \ + id='$sender_host_address' + +acl_smtp_rcpt = check_recipient + +pgsql_servers = SERVERS + + +# ----- ACL ----- + +begin acl + +check_recipient: + accept domains = +local_domains + accept hosts = +relay_hosts + deny message = relay not permitted + + +# ----- Routers ----- + +begin routers + +r1: + driver = accept + address_data = ${lookup pgsql{select name from them where id='ph10'}} + transport = t1 + + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/\ + ${lookup pgsql{select id from them where id='ph10'}{$value}fail} + user = CALLER + + +# End diff --git a/test/confs/9300 b/test/confs/9300 new file mode 100644 index 000000000..8f413c0f2 --- /dev/null +++ b/test/confs/9300 @@ -0,0 +1,31 @@ +# Exim test configuration 9300 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Authentication ----- + +begin authenticators + +sasl1: + driver = cyrus_sasl + public_name = ANONYMOUS + server_set_id = $1 + +sasl2: + driver = cyrus_sasl + public_name = PLAIN + server_set_id = $1 + +# End diff --git a/test/confs/9400 b/test/confs/9400 new file mode 100644 index 000000000..3f7dbe932 --- /dev/null +++ b/test/confs/9400 @@ -0,0 +1,54 @@ +# Exim test configuration 9400 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME +trusted_users = CALLER + +# ----- Main settings ----- + +domainlist local_domains = test.ex + +acl_smtp_rcpt = accept +local_scan_timeout = 1s + + +# ----- Local_scan ----- + +begin local_scan + +local_scan_int = 24 +local_scan_string = the quick brown fox + + +# ------ Routers ------ + +begin routers + +r0: + driver = redirect + local_parts = bounce + allow_fail + data = :fail: bounced (:fail:) + +r1: + driver = accept + transport = local_delivery + + +# ------ Transports ------ + +begin transports + +local_delivery: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + headers_add = ${if eq {$local_scan_data}{}{}{LSD: $local_scan_data}} + +# End diff --git a/test/confs/9401 b/test/confs/9401 new file mode 100644 index 000000000..34f7aad40 --- /dev/null +++ b/test/confs/9401 @@ -0,0 +1,48 @@ +# Exim test configuration 9401 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +qualify_domain = test.ex +queue_run_in_order +trusted_users = CALLER + + +# ----- Routers ----- + +begin routers + +r1: + driver = redirect + condition = ${if first_delivery{true}{false}} + allow_defer + data = :defer: first delivery defer forced + +r2: + driver = accept + transport = t1 + +# ----- Transports ----- + +begin transports + +t1: + driver = appendfile + file = DIR/test-mail/$local_part + user = CALLER + headers_add = X-lsd: >$local_scan_data< + +# ----- Retry ----- + +begin retry + +* * F,3s,1s; G,1h,2s,2 + +# End diff --git a/test/confs/9402 b/test/confs/9402 new file mode 100644 index 000000000..6eb8db5e5 --- /dev/null +++ b/test/confs/9402 @@ -0,0 +1,21 @@ +# Exim test configuration 9402 + +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +queue_only + +smtp_receive_timeout = 2s + +# End diff --git a/test/confs/9450 b/test/confs/9450 new file mode 100644 index 000000000..ea5f703aa --- /dev/null +++ b/test/confs/9450 @@ -0,0 +1,35 @@ +# Exim test configuration 9450 + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + + +# ----- Routers ----- + +begin routers + +alias: + driver = redirect + data = ${lookup{$local_part}lsearch{DIR/aux-fixed/TESTNUM.alias}} + +null: + driver = redirect + data = :blackhole: + +# ----- Retry ----- + + +begin retry + +* * F,5d,10m + + +# End diff --git a/test/confs/9900 b/test/confs/9900 new file mode 100644 index 000000000..2a69d0115 --- /dev/null +++ b/test/confs/9900 @@ -0,0 +1,44 @@ +# Exim test configuration 1006 + +exim_path = EXIM_PATH +host_lookup_order = bydns +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +local_interfaces = 127.0.0.1 +primary_hostname = myhost.text.ex +qualify_domain = test.ex + + + +# ----- Routers ----- + +begin routers + +lookuphost: + driver = dnslookup + transport = smtp + +# ----- Transports ----- + +begin transports + +smtp: + driver = smtp + port = PORT_S + + +# ----- Retry ----- + +begin retry + +46c.test.ex * F,1s,1s +46d.test.ex * F,1m,1s + + +# End diff --git a/test/confs/9901 b/test/confs/9901 new file mode 100644 index 000000000..86f70033b --- /dev/null +++ b/test/confs/9901 @@ -0,0 +1,69 @@ +# Exim test configuration 9901 + +COM= +SERVER= + +exim_path = EXIM_PATH +host_lookup_order = bydns +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/SERVER%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + +# ----- Main settings ----- + +acl_smtp_rcpt = accept +qualify_domain = test.ex +queue_run_in_order +smtp_receive_timeout = 1s + + +# ----- Routers ----- + +begin routers + +# These are commented out for the server + +COM r1: +COM driver = accept +COM domains = no.delay +COM transport = t1 + +COM r2: +COM driver = dnslookup +COM transport = t1 + +# This is the only one available for the server + +r3: + driver = accept + transport = t2 + + +# ----- Transports ----- + +begin transports + +t1: + driver = smtp + allow_localhost + hosts = 127.0.0.1 + hosts_override + port = PORT_D + +t2: + driver = appendfile + file = /dev/null + user = CALLER + + +# ----- Retry ----- + +begin retry + +* * F,1d,10m + + +# End diff --git a/test/confs/9902 b/test/confs/9902 new file mode 100644 index 000000000..730d633fb --- /dev/null +++ b/test/confs/9902 @@ -0,0 +1,21 @@ +# Exim test configuration 9902 + +# NOT WORKING! + +ORDER= + +exim_path = EXIM_PATH +primary_hostname = myhost.test.ex +rfc1413_query_timeout = 0s +spool_directory = DIR/spool +log_file_path = DIR/spool/log/%slog +gecos_pattern = "" +gecos_name = CALLER_NAME + + +# ----- Main settings ----- + +host_lookup = * +ORDER + +# End |