summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2023-08-03 20:52:15 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2023-08-03 20:52:15 +0100
commit8c5ab0901f665bfd16bb0a0e85cef8b26e4e7818 (patch)
treeb0f5547b49cc238a04d97c2c91cd6391222773e0 /test
parent3a947de5f5b62adabe34d7e2cf0ac395b7aa47af (diff)
Testsuite: testcase for 3013
Diffstat (limited to 'test')
-rw-r--r--test/confs/063545
-rw-r--r--test/scripts/0000-Basic/063512
-rw-r--r--test/stdout/06357
3 files changed, 64 insertions, 0 deletions
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@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
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