Testsuite: testcase for 3013
authorJeremy Harris <jgh146exb@wizmail.org>
Thu, 3 Aug 2023 19:52:15 +0000 (20:52 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Thu, 3 Aug 2023 19:52:15 +0000 (20:52 +0100)
test/confs/0635 [new file with mode: 0644]
test/scripts/0000-Basic/0635 [new file with mode: 0644]
test/stdout/0635 [new file with mode: 0644]

diff --git a/test/confs/0635 b/test/confs/0635
new file mode 100644 (file)
index 0000000..2b6a726
--- /dev/null
@@ -0,0 +1,45 @@
+# Exim test configuration 0635
+
+.include DIR/aux-var/std_conf_prefix
+
+
+# ----- Main settings -----
+
+domainlist local_domains = @
+
+acl_smtp_rcpt = accept
+acl_smtp_data = check_data
+trusted_users = CALLER
+
+
+# ----- ACL -----
+
+begin acl
+
+check_data:
+  accept logwrite = \$recipients: "$recipients"
+        logwrite = run-wrapped \$recipients: "${run{/bin/echo $recipients}}"
+
+# ----- 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
+
+# ----- Transports -----
+
+begin transports
+
+local_delivery:
+  driver = appendfile
+  file = DIR/test-mail/$local_part_data
+
+# End
diff --git a/test/scripts/0000-Basic/0635 b/test/scripts/0000-Basic/0635
new file mode 100644 (file)
index 0000000..7719d74
--- /dev/null
@@ -0,0 +1,12 @@
+# $recipients used in ${run...}
+exim -bs -odi
+helo test
+mail from:someone@some.domain
+rcpt to:CALLER@HOSTNAME
+data
+This is a test message.
+.
+quit
+****
+exim -q
+****
diff --git a/test/stdout/0635 b/test/stdout/0635
new file mode 100644 (file)
index 0000000..42fc047
--- /dev/null
@@ -0,0 +1,7 @@
+220 the.local.host.name ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000\r
+250 the.local.host.name Hello CALLER at test\r
+250 OK\r
+250 Accepted\r
+354 Enter message, ending with "." on a line by itself\r
+250 OK id=10HmaX-000000005vi-0000\r
+221 the.local.host.name closing connection\r