X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/9214d2e4dfd9d4f29e9cb7a0eea8a0758ed1b34a..2f8e0a5f6bc17ccd0749c0dc28f5da28da5d25a2:/test/scripts/0000-Basic/0585 diff --git a/test/scripts/0000-Basic/0585 b/test/scripts/0000-Basic/0585 index 5fbc9319c..b4d825893 100644 --- a/test/scripts/0000-Basic/0585 +++ b/test/scripts/0000-Basic/0585 @@ -1,4 +1,71 @@ -# tainted data for pipe transport command -exim -odi pipe-userx=DIR/bin/iefbr14@test.ex -A test message. +# verify = not_blind/case_insensitive +# +# Accept: the env rcpt matches a header To: +exim -odq -bs +helo test +mail from:<> +rcpt to: +data +To: a@b.c, himself +. +quit **** +### Reject: no match +exim -odq -bs +helo test +mail from:<> +rcpt to: +data +To: b@b.c, himself +. +quit +**** +### Reject, with specific SMTP message +exim -DERROR_DETAILS=smtp_return_error_details -odq -bs +helo test +mail from:<> +rcpt to: +data +To: c@b.c, himself +. +quit +**** +### Accept, matches in header CC: +exim -odq -bs +helo test +mail from:<> +rcpt to: +rcpt to: +data +To: d@b.c, himself +Cc: unqualified, UserX@dom.com, x@y.z +. +quit +**** +### Reject: To: & CC: combo, an env rcpt missing +exim -odq -bs +helo test +mail from:<> +rcpt to: +rcpt to: +rcpt to: +data +To: e@b.c, himself +Cc: unqualified, UserX@dom.com, x@y.z +. +quit +**** +### Accept: Resent-To: & Resent-CC: combo +exim -odq -bs +helo test +mail from:<> +rcpt to: +rcpt to: +data +Resent-To: f@b.c, himself +Resent-Cc: unqualified, UserX@dom.com, x@y.z +To: an@other +. +quit +**** +no_msglog_check