Gitweb:
https://git.exim.org/exim.git/commitdiff/8c5ab0901f665bfd16bb0a0e85cef8b26e4e7818
Commit: 8c5ab0901f665bfd16bb0a0e85cef8b26e4e7818
Parent: 3a947de5f5b62adabe34d7e2cf0ac395b7aa47af
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Aug 3 20:52:15 2023 +0100
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Thu Aug 3 20:52:15 2023 +0100
Testsuite: testcase for 3013
---
test/confs/0635 | 45 ++++++++++++++++++++++++++++++++++++++++++++
test/scripts/0000-Basic/0635 | 12 ++++++++++++
test/stdout/0635 | 7 +++++++
3 files changed, 64 insertions(+)
diff --git a/test/confs/0635 b/test/confs/0635
new file mode 100644
index 000000000..2b6a726d1
--- /dev/null
+++ b/test/confs/0635
@@ -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
index 000000000..7719d74f7
--- /dev/null
+++ b/test/scripts/0000-Basic/0635
@@ -0,0 +1,12 @@
+# $recipients used in ${run...}
+exim -bs -odi
+helo test
+mail from:someone@???
+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
index 000000000..42fc04796
--- /dev/null
+++ b/test/stdout/0635
@@ -0,0 +1,7 @@
+220 the.local.host.name ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250 the.local.host.name Hello CALLER at test
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmaX-000000005vi-0000
+221 the.local.host.name closing connection
--
## subscription configuration (requires account):
##
https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at
http://www.exim.org/
## Please use the Wiki with this list -
http://wiki.exim.org/