diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2018-09-23 12:07:26 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2018-09-23 16:01:30 +0100 |
commit | ea97267cea0f7e6054806504b3616f2bf9723bce (patch) | |
tree | 1680964272769e495dc83cfbf2cde84b75043996 /test/scripts | |
parent | 70e384dde1f5b1290b807bc69c73887a7cbbe773 (diff) |
DSN: tescase for ESMTP DSN extension, RCPT options
Diffstat (limited to 'test/scripts')
-rw-r--r-- | test/scripts/0000-Basic/0618 | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0618 b/test/scripts/0000-Basic/0618 new file mode 100644 index 000000000..c09322844 --- /dev/null +++ b/test/scripts/0000-Basic/0618 @@ -0,0 +1,112 @@ +# DSN ESMTP extension RCPT options +# +# Server does not advertise by default +exim -DSERVER=server -bd -oX PORT_D +**** +client 127.0.0.1 PORT_D +??? 220 +EHLO testclient +??? 250- +??? 250-SIZE +??? 250 HELP +**** +killdaemon +# +# +# Server does advertise when told. Client requests no bounces, and this one gets a reject. +exim -DSERVER=server -DOPT=y -bd -oX PORT_D +**** +client HOSTIPV4 PORT_D +??? 220 +EHLO testclient +??? 250- +??? 250-SIZE +??? 250-DSN +??? 250 HELP +MAIL FROM:<a@dump.ex> +??? 250 +RCPT TO:<any@test.ex> NOTIFY=foo +??? 501 +RCPT TO:<rmt_reject@test.ex> NOTIFY=never +??? 250 +DATA +??? 354 +Subject: test +. +??? 250 +QUIT +??? 221 +**** +# Client requests delivery notification; the server supports DSN to takes responsibility +client HOSTIPV4 PORT_D +??? 220 +EHLO testclient +??? 250- +??? 250-SIZE +??? 250-DSN +??? 250 HELP +MAIL FROM:<b@dump.ex> +??? 250 +RCPT TO:<rmt_accept@test.ex> NOTIFY=success +??? 250 +DATA +??? 354 +Subject: test +. +??? 250 +QUIT +??? 221 +**** +# Client requests notification of deferral. First time of trying, the +# queue-time probably has not hit the 1st retry time yet, so no DSN will +# be sent and the message remains queued. +client HOSTIPV4 PORT_D +??? 220 +EHLO testclient +??? 250- +??? 250-SIZE +??? 250-DSN +??? 250 HELP +MAIL FROM:<c@dump.ex> +??? 250 +RCPT TO:<rmt_defer@test.ex> NOTIFY=delay +??? 250 +DATA +??? 354 +Subject: test +. +??? 250 +QUIT +??? 221 +**** +# Clients requests no DSNs, and this one gets deferred +client HOSTIPV4 PORT_D +??? 220 +EHLO testclient +??? 250- +??? 250-SIZE +??? 250-DSN +??? 250 HELP +MAIL FROM:<d@dump.ex> +??? 250 +RCPT TO:<rmt_defer@test.ex> NOTIFY=never +??? 250 +DATA +??? 354 +Subject: test +. +??? 250 +QUIT +??? 221 +**** +# This attemmpt the set of all the above, for the first time. +exim -q +**** +sleep 3 +# Second time, for the queued deferrals. Final delivery for the acceptance. +exim -q +**** +killdaemon +# +# +no_msglog_check |