Taint: reject or log more tainted list metadata elements
[exim.git] / test / confs / 2202
index a004578028331928b8e758b2f20b34116666d391..7a1ddcbc85ea3295ee24faca2e89c79e1b121085 100644 (file)
@@ -1,30 +1,38 @@
 # Exim test configuration 2202
 
-CONNECTCOND=
+.include DIR/aux-var/std_conf_prefix
 
-exim_path = EXIM_PATH
-host_lookup_order = bydns
 primary_hostname = myhost.test.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 = vrfy
 acl_smtp_rcpt = rcpt
-dns_again_means_nonexist = *
 disable_ipv6
 
+# need to use this sublist due to taint
+hostlist goodhosts = *.$sender_address_domain : $sender_address_domain : \
+                     ${lookup dnsdb{>:defer_never,mxh=$sender_address_domain}}
+
+.ifdef DNS_RECURSE
+hosts_treat_as_local =         test.again.dns
+domainlist try_again_dns_list =        @mx_any
+dns_again_means_nonexist =     !+try_again_dns_list
+# that last line tries to set up a recursion
+.else
+dns_again_means_nonexist =     *
+.endif
+
 # ----- ACL -----
 
 begin acl
 
+vrfy:
+.ifdef DNS_RECURSE
+  warn domains = +try_again_dns_list
+.endif
+
 rcpt:
-  accept hosts = +ignore_unknown : \
-    *.$sender_address_domain : \
-    $sender_address_domain : \
-    ${lookup dnsdb{>:defer_never,mxh=$sender_address_domain}}
+  accept hosts = +ignore_unknown : +goodhosts
 
 # End