summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-06-01 17:07:44 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2020-06-01 17:15:31 +0100
commitda47dd4d092ba35e4f8ff055d79693cc1266c816 (patch)
tree43c12fd264f585b6512b35b49fc122b74d25ad71 /test/scripts/0000-Basic
parent8fee5c5df34587b1faec194d5073395f693e0492 (diff)
parent361615d1e97b82f4797381b749bc5977d7a1d66b (diff)
Merge branch '4.next'
Diffstat (limited to 'test/scripts/0000-Basic')
-rw-r--r--test/scripts/0000-Basic/058845
-rw-r--r--test/scripts/0000-Basic/058944
2 files changed, 89 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0588 b/test/scripts/0000-Basic/0588
new file mode 100644
index 000000000..44328a70c
--- /dev/null
+++ b/test/scripts/0000-Basic/0588
@@ -0,0 +1,45 @@
+# message_linelength_limit
+#
+# The "write" script cmd subtracts 1 for the newline,
+# and the linecount in exim doesn't count the line-ending.
+write test-data-good 1x999
+++++
+****
+write test-data-bad 1x1000
+++++
+****
+#
+exim -bd -DSERVER=server -oX PORT_D
+****
+client 127.0.0.1 PORT_D
+??? 220
+HELO test
+??? 250
+MAIL FROM:<CALLER@test.ex>
+??? 250
+RCPT TO:<good@test.ex>
+??? 250
+DATA
+??? 354
+Subject: should be good
+
+<<< test-data-good
+.
+??? 250
+MAIL FROM:<CALLER@test.ex>
+??? 250
+RCPT TO:<bad@test.ex>
+??? 250
+DATA
+??? 354
+Subject: should be bad
+
+<<< test-data-bad
+.
+??? 250
+QUIT
+??? 221
+****
+#
+sleep 1
+killdaemon
diff --git a/test/scripts/0000-Basic/0589 b/test/scripts/0000-Basic/0589
new file mode 100644
index 000000000..8cea367eb
--- /dev/null
+++ b/test/scripts/0000-Basic/0589
@@ -0,0 +1,44 @@
+# verify quota at smtp time
+#
+exim -bd -DSERVER=server -oX PORT_D
+****
+client 127.0.0.1 PORT_D
+??? 220
+EHLO test
+??? 250-
+??? 250-SIZE
+??? 250-8BITMIME
+??? 250-PIPELINING
+??? 250 HELP
+MAIL FROM:<a@test.ex>\r\nRCPT TO:<quota_good@test.ex>
+??? 250
+??? 250
+RSET
+??? 250
+MAIL FROM:<b@test.ex> SIZE=2048\r\nRCPT TO:<quota_fail@test.ex>
+??? 250
+??? 550
+RSET
+??? 250
+MAIL FROM:<c@test.ex>\r\nRCPT TO:<route_fail@test.ex>
+??? 250
+??? 550
+RSET
+??? 250
+MAIL FROM:<d@test.ex>\r\nRCPT TO:<quota_good@test.ex>
+??? 250
+??? 250
+RSET
+??? 250
+MAIL FROM:<e@test.ex> SIZE=512\r\nRCPT TO:<quota_fail@test.ex>
+??? 250
+??? 550
+RSET
+??? 250
+MAIL FROM:<f@test.ex>\r\nRCPT TO:<route_fail@test.ex>
+??? 250
+??? 550
+QUIT
+****
+#
+killdaemon