#
# Accept: the env rcpt matches a header To:
exim -odq -bs
+helo test
mail from:<>
rcpt to:<userx@dom.com>
data
****
### Reject: no match
exim -odq -bs
+helo test
mail from:<>
rcpt to:<userx@dom.com>
data
****
### Reject, with specific SMTP message
exim -DERROR_DETAILS=smtp_return_error_details -odq -bs
+helo test
mail from:<>
rcpt to:<userx@dom.com>
data
****
### Accept, matches in header CC:
exim -odq -bs
+helo test
mail from:<>
rcpt to:<userx@dom.com>
rcpt to:<usery@dom.com>
****
### Reject: To: & CC: combo, an env rcpt missing
exim -odq -bs
+helo test
mail from:<>
rcpt to:<userx@dom.com>
rcpt to:<usery@dom.com>
****
### Accept: Resent-To: & Resent-CC: combo
exim -odq -bs
+helo test
mail from:<>
rcpt to:<userx@dom.com>
rcpt to:<usery@dom.com>