Testsuite script for client-side PRDR.
authorJeremy Harris <jgh146exb@wizmail.org>
Tue, 25 Dec 2012 12:59:31 +0000 (12:59 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Tue, 25 Dec 2012 12:59:31 +0000 (12:59 +0000)
test/confs/5510 [new file with mode: 0644]
test/scripts/5500-PRDR/5510 [new file with mode: 0644]

diff --git a/test/confs/5510 b/test/confs/5510
new file mode 100644 (file)
index 0000000..4872421
--- /dev/null
@@ -0,0 +1,62 @@
+# Exim test configuration 5510
+# Client PRDR
+
+LOG_SELECTOR=
+
+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 -----
+
+domainlist local_domains = test.ex : *.test.ex
+
+LOG_SELECTOR
+
+qualify_domain = test.ex
+trusted_users = CALLER
+
+prdr_enable = true
+
+acl_smtp_rcpt = accept
+acl_smtp_data = data_acl
+
+# ----- ACLs -----
+
+begin acl
+
+data_acl:
+  deny local_parts = usery
+  accept
+
+# ----- Transports -----
+
+begin transports
+
+t1:
+  driver = smtp
+  hosts = 127.0.0.1
+  port = PORT_S
+  allow_localhost
+  hosts_try_prdr = *
+
+# ----- Routers -----
+
+begin routers
+
+r0:
+  driver = accept
+  transport = t1
+
+# ----- Retry -----
+
+begin retry
+
+*                *   F,5d,5m
+
+# End
diff --git a/test/scripts/5500-PRDR/5510 b/test/scripts/5500-PRDR/5510
new file mode 100644 (file)
index 0000000..cdc571a
--- /dev/null
@@ -0,0 +1,24 @@
+# PRDR client
+need_ipv4
+#
+server PORT_S
+220 Server ready
+EHLO
+250-PRDR
+250 OK
+MAIL FROM:<userx> PRDR
+250 OK
+RCPT TO
+250 OK
+DATA
+300 go ahead
+.
+353 prdr responses coming up
+250 first one
+250 OK, overall
+QUIT
+250 OK
+****
+exim -d -odi page+userx
+Some message text.
+****