X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/9883af7240d3c25b7a8a859c9e8482caacd5f1aa..7c498df16cbb3d35eb8df3668ec426388f0dc974:/test/scripts/0000-Basic/0583 diff --git a/test/scripts/0000-Basic/0583 b/test/scripts/0000-Basic/0583 new file mode 100644 index 000000000..c4ae477c1 --- /dev/null +++ b/test/scripts/0000-Basic/0583 @@ -0,0 +1,65 @@ +# verify = not_blind/case_insensitive +# +# Accept: the env rcpt matches a header To: +exim -odq -bs +mail from:<> +rcpt to: +data +To: a@b.c, himself +. +quit +**** +### Reject: no match +exim -odq -bs +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 +mail from:<> +rcpt to: +data +To: c@b.c, himself +. +quit +**** +### Accept, matches in header CC: +exim -odq -bs +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 +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 +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