X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/59371ea735c941334861aa5b8e1e9a06facf044f..32a167571d19dc17c709616320917276e8d82c3b:/test/scripts/0000-Basic/0026 diff --git a/test/scripts/0000-Basic/0026 b/test/scripts/0000-Basic/0026 index e81e0d9d0..cb1a3081f 100644 --- a/test/scripts/0000-Basic/0026 +++ b/test/scripts/0000-Basic/0026 @@ -2,6 +2,7 @@ # # Syntax OK, non-null sender => should be accepted exim -odq -bs +helo test mail from: rcpt to: data @@ -11,6 +12,7 @@ quit **** # Syntax error in header => should fail exim -odq -bs +helo test mail from: rcpt to: data @@ -20,8 +22,23 @@ Message 2 . quit **** +# Syntax error (version 2) in header => should fail +exim -odq -bs +helo test +mail from: +rcpt to: +data +To: should fail even with null sender exim -odq -bs +helo test mail from:<> rcpt to: data @@ -33,6 +50,7 @@ quit **** # Null sender, invalid sender in header => fail exim -odq -bs +helo test mail from:<> rcpt to: data @@ -44,6 +62,7 @@ quit **** # Null sender, valid sender in header => accept exim -odq -bs +helo test mail from:<> rcpt to: data @@ -56,6 +75,7 @@ quit **** # Syntax OK, non-null sender, but bad data => reject exim -odq -bs +helo test mail from: rcpt to: data @@ -65,6 +85,7 @@ quit **** # Syntax OK, non-null sender, good data exim -odi -bs +helo test mail from: rcpt to: data @@ -74,6 +95,7 @@ quit **** # -bh test: Syntax error in header => should fail exim -bh 10.0.0.0 +helo test mail from: rcpt to: data @@ -85,6 +107,7 @@ quit **** # -bh test: Syntax OK, non-null sender, but bad data => reject exim -bh 10.0.0.0 +helo test mail from: rcpt to: data @@ -94,6 +117,7 @@ quit **** # Group syntax in reply-to header exim -odi -bs +helo test mail from: rcpt to: data @@ -104,4 +128,33 @@ Message 10 . quit **** +# Group syntax in reply-to header, but no address (falls back to From: for +# header_sender check - From: is valid) +exim -odi -bs +helo test +mail from:<> +rcpt to: +data +to: group name: x@y, p@q; +reply-to: group name:; +from: userx@test.ex + +Message 11 +. +quit +**** +# Group syntax in reply-to header, but no address (falls back to From: for +# header_sender check - but there is no From:) +exim -odi -bs +helo test +mail from:<> +rcpt to: +data +to: group name: x@y, p@q; +reply-to: group name:; + +Message 12 +. +quit +**** no_msglog_check