diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/4032 | 41 | ||||
l--------- | test/confs/4033 | 1 | ||||
l--------- | test/confs/4034 | 1 | ||||
-rw-r--r-- | test/log/4032 | 27 | ||||
-rw-r--r-- | test/log/4034 | 29 | ||||
-rw-r--r-- | test/rejectlog/4032 | 5 | ||||
-rw-r--r-- | test/rejectlog/4034 | 5 | ||||
-rwxr-xr-x | test/runtest | 3 | ||||
-rw-r--r-- | test/scripts/4032-xclient/4032 | 140 | ||||
-rw-r--r-- | test/scripts/4032-xclient/4033 | 62 | ||||
-rw-r--r-- | test/scripts/4032-xclient/REQUIRES | 1 | ||||
-rw-r--r-- | test/scripts/4034-xclient-tls/4034 | 179 | ||||
-rw-r--r-- | test/scripts/4034-xclient-tls/REQUIRES | 2 | ||||
-rw-r--r-- | test/stdout/4032 | 199 | ||||
-rw-r--r-- | test/stdout/4033 | 108 |
15 files changed, 803 insertions, 0 deletions
diff --git a/test/confs/4032 b/test/confs/4032 new file mode 100644 index 000000000..9dbe36b9c --- /dev/null +++ b/test/confs/4032 @@ -0,0 +1,41 @@ +# Exim test configuration 4032 +# XCLIENT proxy + +.ifdef OPTION +.include DIR/aux-var/tls_conf_prefix +.else +.include DIR/aux-var/std_conf_prefix +.endif + +primary_hostname = myhost.test.ex +hosts_xclient = HOSTIPV4 +queue_only + +# ----- Main settings ----- + +log_selector = +proxy +incoming_port + +acl_smtp_rcpt = r_acl + + +begin acl + +r_acl: + accept + logwrite = tls session: ${if def:tls_in_cipher {yes}{no}} + logwrite = proxy session: $proxy_session + logwrite = local [$received_ip_address]:$received_port + logwrite = proxy internal [$proxy_local_address]:$proxy_local_port + logwrite = proxy external [$proxy_external_address]:$proxy_external_port + logwrite = remote [$sender_host_address]:$sender_host_port + + +# ----- Routers ----- + +begin routers + +dump: + driver = redirect + data = :blackhole: + +# End diff --git a/test/confs/4033 b/test/confs/4033 new file mode 120000 index 000000000..06b9789ad --- /dev/null +++ b/test/confs/4033 @@ -0,0 +1 @@ +4032
\ No newline at end of file diff --git a/test/confs/4034 b/test/confs/4034 new file mode 120000 index 000000000..06b9789ad --- /dev/null +++ b/test/confs/4034 @@ -0,0 +1 @@ +4032
\ No newline at end of file diff --git a/test/log/4032 b/test/log/4032 new file mode 100644 index 000000000..b02c0c263 --- /dev/null +++ b/test/log/4032 @@ -0,0 +1,27 @@ + +******** SERVER ******** +1999-03-02 09:44:33 exim x.yz daemon started: pid=p1234, no queue runs, listening for SMTP on port PORT_D +1999-03-02 09:44:33 tls session: no +1999-03-02 09:44:33 proxy session: no +1999-03-02 09:44:33 local [127.0.0.1]:1113 +1999-03-02 09:44:33 proxy internal []:0 +1999-03-02 09:44:33 proxy external []:0 +1999-03-02 09:44:33 remote [127.0.0.1]:1114 +1999-03-02 09:44:33 10HmaX-0005vi-00 <= a@test.ex H=(plainclient) [127.0.0.1]:1114 P=esmtp S=sss +1999-03-02 09:44:33 tls session: no +1999-03-02 09:44:33 proxy session: yes +1999-03-02 09:44:33 local [ip4.ip4.ip4.ip4]:1113 +1999-03-02 09:44:33 proxy internal [ip4.ip4.ip4.ip4]:1115 +1999-03-02 09:44:33 proxy external [10.42.42.42]:1116 +1999-03-02 09:44:33 remote [127.0.0.2]:1117 +1999-03-02 09:44:33 10HmaY-0005vi-00 <= c@test.ex H=proxylookedupname.net (clienthelo) [127.0.0.2]:1117 P=esmtpa A=xclient:hisloginname PRX=ip4.ip4.ip4.ip4 S=sss +1999-03-02 09:44:33 tls session: no +1999-03-02 09:44:33 proxy session: yes +1999-03-02 09:44:33 local [ip4.ip4.ip4.ip4]:1113 +1999-03-02 09:44:33 proxy internal [127.0.0.2]:1117 +1999-03-02 09:44:33 proxy external [10.42.42.42]:1116 +1999-03-02 09:44:33 remote [127.0.0.3]:1111 +1999-03-02 09:44:33 10HmaZ-0005vi-00 <= c2@test.ex H=(anotherhelo) [127.0.0.3]:1111 P=esmtp PRX=127.0.0.2 S=sss +1999-03-02 09:44:33 rejected XCLIENT from (anotherhelo) [127.0.0.3]:1111: mail transaction in progress +1999-03-02 09:44:33 rejected MAIL from miss.ehlo.after.xclient (anotherhelo) [127.0.0.3]:1111: no HELO/EHLO given +1999-03-02 09:44:33 SMTP call from (xclientproxy) [ip4.ip4.ip4.ip4]:1112 dropped: too many syntax or protocol errors (last command was "XCLIENT SIXSIX=", C=EHLO,XCLIENT,XCLIENT,XCLIENT,XCLIENT) diff --git a/test/log/4034 b/test/log/4034 new file mode 100644 index 000000000..9ec307501 --- /dev/null +++ b/test/log/4034 @@ -0,0 +1,29 @@ + +******** SERVER ******** +1999-03-02 09:44:33 Warning: No server certificate defined; will use a selfsigned one. + Suggested action: either install a certificate or change tls_advertise_hosts option +1999-03-02 09:44:33 exim x.yz daemon started: pid=p1234, no queue runs, listening for SMTP on port PORT_D +1999-03-02 09:44:33 tls session: yes +1999-03-02 09:44:33 proxy session: no +1999-03-02 09:44:33 local [127.0.0.1]:1113 +1999-03-02 09:44:33 proxy internal []:0 +1999-03-02 09:44:33 proxy external []:0 +1999-03-02 09:44:33 remote [127.0.0.1]:1114 +1999-03-02 09:44:33 10HmaX-0005vi-00 <= a@test.ex H=(plainclient) [127.0.0.1]:1114 P=esmtps X=TLS1.x:ke-RSA-AES256-SHAnnn:xxx CV=no S=sss +1999-03-02 09:44:33 tls session: yes +1999-03-02 09:44:33 proxy session: yes +1999-03-02 09:44:33 local [ip4.ip4.ip4.ip4]:1113 +1999-03-02 09:44:33 proxy internal [ip4.ip4.ip4.ip4]:1115 +1999-03-02 09:44:33 proxy external [10.42.42.42]:1116 +1999-03-02 09:44:33 remote [127.0.0.2]:1117 +1999-03-02 09:44:33 10HmaY-0005vi-00 <= c@test.ex H=proxylookedupname.net (clienthelo) [127.0.0.2]:1117 P=esmtpsa X=TLS1.x:ke-RSA-AES256-SHAnnn:xxx CV=no A=xclient:hisloginname PRX=ip4.ip4.ip4.ip4 S=sss +1999-03-02 09:44:33 tls session: yes +1999-03-02 09:44:33 proxy session: yes +1999-03-02 09:44:33 local [ip4.ip4.ip4.ip4]:1113 +1999-03-02 09:44:33 proxy internal [127.0.0.2]:1117 +1999-03-02 09:44:33 proxy external [10.42.42.42]:1116 +1999-03-02 09:44:33 remote [127.0.0.3]:1111 +1999-03-02 09:44:33 10HmaZ-0005vi-00 <= c2@test.ex H=(anotherhelo) [127.0.0.3]:1111 P=esmtps X=TLS1.x:ke-RSA-AES256-SHAnnn:xxx CV=no PRX=127.0.0.2 S=sss +1999-03-02 09:44:33 rejected XCLIENT from (anotherhelo) [127.0.0.3]:1111: mail transaction in progress +1999-03-02 09:44:33 rejected MAIL from miss.ehlo.after.xclient (anotherhelo) [127.0.0.3]:1111: no HELO/EHLO given +1999-03-02 09:44:33 SMTP call from (xclientproxy) [ip4.ip4.ip4.ip4]:1112 dropped: too many syntax or protocol errors (last command was "XCLIENT SIXSIX=", C=EHLO,STARTTLS,EHLO,XCLIENT,XCLIENT,XCLIENT,XCLIENT) diff --git a/test/rejectlog/4032 b/test/rejectlog/4032 new file mode 100644 index 000000000..96c50b75e --- /dev/null +++ b/test/rejectlog/4032 @@ -0,0 +1,5 @@ + +******** SERVER ******** +1999-03-02 09:44:33 rejected XCLIENT from (anotherhelo) [127.0.0.3]:1111: mail transaction in progress +1999-03-02 09:44:33 rejected MAIL from miss.ehlo.after.xclient (anotherhelo) [127.0.0.3]:1111: no HELO/EHLO given +1999-03-02 09:44:33 SMTP call from (xclientproxy) [ip4.ip4.ip4.ip4]:1112 dropped: too many syntax or protocol errors (last command was "XCLIENT SIXSIX=", C=EHLO,XCLIENT,XCLIENT,XCLIENT,XCLIENT) diff --git a/test/rejectlog/4034 b/test/rejectlog/4034 new file mode 100644 index 000000000..de477a533 --- /dev/null +++ b/test/rejectlog/4034 @@ -0,0 +1,5 @@ + +******** SERVER ******** +1999-03-02 09:44:33 rejected XCLIENT from (anotherhelo) [127.0.0.3]:1111: mail transaction in progress +1999-03-02 09:44:33 rejected MAIL from miss.ehlo.after.xclient (anotherhelo) [127.0.0.3]:1111: no HELO/EHLO given +1999-03-02 09:44:33 SMTP call from (xclientproxy) [ip4.ip4.ip4.ip4]:1112 dropped: too many syntax or protocol errors (last command was "XCLIENT SIXSIX=", C=EHLO,STARTTLS,EHLO,XCLIENT,XCLIENT,XCLIENT,XCLIENT) diff --git a/test/runtest b/test/runtest index 8d96e13bd..53e12d412 100755 --- a/test/runtest +++ b/test/runtest @@ -1387,6 +1387,9 @@ RESET_AFTER_EXTRA_LINE_READ: } next if / in limits_advertise_hosts?\? no \(matched "!\*"\)/; + # Experimental_XCLIENT + next if / in hosts_xclient?\? no \(option unset\)/; + # TCP Fast Open next if /^(ppppp )?setsockopt FASTOPEN: Network Error/; diff --git a/test/scripts/4032-xclient/4032 b/test/scripts/4032-xclient/4032 new file mode 100644 index 000000000..fa0d0b8c3 --- /dev/null +++ b/test/scripts/4032-xclient/4032 @@ -0,0 +1,140 @@ +# XCLIENT proxy on inbound smtp +# +munge loopback +# +exim -bd -DSERVER=server -oX PORT_D +**** +# +### (1) non-prox plain receive (not advertised) (2) XCLIENT refules when not advertised +client 127.0.0.1 PORT_D +??? 220 +EHLO plainclient +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250 HELP +MAIL FROM:<a@test.ex> +??? 250 +RCPT TO:<b@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +XCLIENT NAME=proxylookedupname.net ADDR=127.0.0.2 PORT=4242 +??? 550 +QUIT +??? 221 +**** +# +### receive, (1) fully loaded (2) new conn (3) bad: transaction in progress (4) bad: missing EHLO after XCLIENT +client HOSTIPV4 PORT_D +??? 220 +EHLO xclientproxy +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-XCLIENT +??? 250 HELP +XCLIENT NAME=proxylookedupname.net ADDR=127.0.0.2 PORT=4242 DESTADDR=10.42.42.42 DESTPORT=25 LOGIN=hisloginname +??? 220 +EHLO clienthelo +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-XCLIENT +??? 250 HELP +MAIL FROM:<c@test.ex> +??? 250 +RCPT TO:<d@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +XCLIENT NAME=[TEMPUNAVAIL] ADDR=127.0.0.3 PORT=4243 LOGIN=[UNAVAILABLE] +??? 220 +EHLO anotherhelo +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-XCLIENT +??? 250 HELP +MAIL FROM:<c2@test.ex> +??? 250 +RCPT TO:<d2@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +MAIL FROM:<c2@test.ex> +??? 250 +XCLIENT NAME=bad.time.for.xclient +??? 503 +RSET +??? 250 +XCLIENT NAME=miss.ehlo.after.xclient +??? 220 +MAIL FROM:<bad@test.ex> +??? 503 +QUIT +??? 221 +**** +# +### (5) no operands to XCLIENT (6,7) unrecognised operands +client HOSTIPV4 PORT_D +??? 220 +EHLO xclientproxy +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-XCLIENT +??? 250 HELP +XCLIENT +??? 501 +XCLIENT NONO= +??? 501 +XCLIENT NAMEfoobar= +??? 501 +XCLIENT SIXSIX= +??? 501- +??? 501 Too many +???* +**** +# +### (7) operand with zero-len value (8) operand with no value +client HOSTIPV4 PORT_D +??? 220 +EHLO xclientproxy +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-XCLIENT +??? 250 HELP +XCLIENT NAME= +??? 501 +XCLIENT NAME +??? 501 +**** +# +# +killdaemon +no_msglog_check +no_stdout_check +no_stderr_check diff --git a/test/scripts/4032-xclient/4033 b/test/scripts/4032-xclient/4033 new file mode 100644 index 000000000..f3a4ecdeb --- /dev/null +++ b/test/scripts/4032-xclient/4033 @@ -0,0 +1,62 @@ +# XCLIENT proxy on inbound -bh +# +### (1) non-prox plain receive (not advertised) (2) XCLIENT refules when not advertised +exim -bh 127.0.0.1.4241 -oMi 127.0.0.1 +EHLO plainclient +MAIL FROM:<a@test.ex> +RCPT TO:<b@test.ex> +DATA +Subject: test + +body +. +XCLIENT NAME=proxylookedupname.net ADDR=127.0.0.2 PORT=4242 +QUIT +**** +# +### receive, (1) fully loaded (2) new conn (3) bad: transaction in progress +exim -bh HOSTIPV4.4241 -oMi HOSTIPV4 +EHLO xclientproxy +XCLIENT NAME=proxylookedupname.net ADDR=127.0.0.2 PORT=4242 DESTADDR=10.42.42.42 DESTPORT=25 LOGIN=hisloginname +EHLO clienthelo +MAIL FROM:<c@test.ex> +RCPT TO:<d@test.ex> +DATA +Subject: test + +body +. +XCLIENT NAME=[TEMPUNAVAIL] ADDR=127.0.0.3 PORT=4243 LOGIN=[UNAVAILABLE] +EHLO anotherhelo +MAIL FROM:<c2@test.ex> +RCPT TO:<d2@test.ex> +DATA +Subject: test + +body +. +MAIL FROM:<c2@test.ex> +XCLIENT NAME=bad.time.for.xclient +RSET +XCLIENT NAME=miss.ehlo.after.xclient +MAIL FROM:<bad@test.ex> +QUIT +**** +# +### (4) no operands to XCLIENT (5,6) unrecognised operands +exim -bh HOSTIPV4.4241 -oMi HOSTIPV4 +EHLO xclientproxy +XCLIENT +XCLIENT NONO= +XCLIENT NAMEfoobar= +XCLIENT SIXSIX= +**** +# +### (7) operand with zero-len value (8) operand with no value +exim -bh HOSTIPV4.4241 -oMi HOSTIPV4 +EHLO xclientproxy +XCLIENT NAME= +XCLIENT NAME +**** +# +no_stderr_check diff --git a/test/scripts/4032-xclient/REQUIRES b/test/scripts/4032-xclient/REQUIRES new file mode 100644 index 000000000..5f4d76eed --- /dev/null +++ b/test/scripts/4032-xclient/REQUIRES @@ -0,0 +1 @@ +support Experimental_XCLIENT diff --git a/test/scripts/4034-xclient-tls/4034 b/test/scripts/4034-xclient-tls/4034 new file mode 100644 index 000000000..c8a4f10c4 --- /dev/null +++ b/test/scripts/4034-xclient-tls/4034 @@ -0,0 +1,179 @@ +# XCLIENT under TLS +# +munge loopback +# +exim -bd -DSERVER=server -DOPTION -oX PORT_D +**** +# +### (1) non-prox plain receive (not advertised) (2) XCLIENT refusal when not advertised +client-anytls 127.0.0.1 PORT_D +??? 220 +EHLO plainclient +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-STARTTLS +??? 250 HELP +STARTTLS +??? 220 +EHLO plainclient +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250 HELP +MAIL FROM:<a@test.ex> +??? 250 +RCPT TO:<b@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +XCLIENT NAME=proxylookedupname.net ADDR=127.0.0.2 PORT=4242 +??? 550 +QUIT +??? 221 +**** +# +### receive, (1) fully loaded (2) new conn (3) bad: transaction in progress (4) bad: missing EHLO after XCLIENT +client-anytls HOSTIPV4 PORT_D +??? 220 +EHLO xclientproxy +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-STARTTLS +??? 250-XCLIENT +??? 250 HELP +STARTTLS +??? 220 +EHLO xclientproxy +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-XCLIENT +??? 250 HELP +XCLIENT NAME=proxylookedupname.net ADDR=127.0.0.2 PORT=4242 DESTADDR=10.42.42.42 DESTPORT=25 LOGIN=hisloginname +??? 220 +EHLO clienthelo +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-XCLIENT +??? 250 HELP +MAIL FROM:<c@test.ex> +??? 250 +RCPT TO:<d@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +XCLIENT NAME=[TEMPUNAVAIL] ADDR=127.0.0.3 PORT=4243 LOGIN=[UNAVAILABLE] +??? 220 +EHLO anotherhelo +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-XCLIENT +??? 250 HELP +MAIL FROM:<c2@test.ex> +??? 250 +RCPT TO:<d2@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +MAIL FROM:<c2@test.ex> +??? 250 +XCLIENT NAME=bad.time.for.xclient +??? 503 +RSET +??? 250 +XCLIENT NAME=miss.ehlo.after.xclient +??? 220 +MAIL FROM:<bad@test.ex> +??? 503 +QUIT +??? 221 +**** +# +### (5) no operands to XCLIENT (6,7) unrecognised operands +client-anytls HOSTIPV4 PORT_D +??? 220 +EHLO xclientproxy +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-STARTTLS +??? 250-XCLIENT +??? 250 HELP +STARTTLS +??? 220 +EHLO xclientproxy +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-XCLIENT +??? 250 HELP +XCLIENT +??? 501 +XCLIENT NONO= +??? 501 +XCLIENT NAMEfoobar= +??? 501 +XCLIENT SIXSIX= +??? 501- +??? 501 Too many +???* +**** +# +### (7) operand with zero-len value (8) operand with no value +client-anytls HOSTIPV4 PORT_D +??? 220 +EHLO xclientproxy +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-STARTTLS +??? 250-XCLIENT +??? 250 HELP +STARTTLS +??? 220 +EHLO xclientproxy +??? 250- +??? 250-SIZE +??? 250-8BITMIME +??? 250-PIPELINING +??? 250-XCLIENT +??? 250 HELP +XCLIENT NAME= +??? 501 +XCLIENT NAME +??? 501 +**** +# +# +killdaemon +no_msglog_check +no_stdout_check +no_stderr_check diff --git a/test/scripts/4034-xclient-tls/REQUIRES b/test/scripts/4034-xclient-tls/REQUIRES new file mode 100644 index 000000000..4361afb13 --- /dev/null +++ b/test/scripts/4034-xclient-tls/REQUIRES @@ -0,0 +1,2 @@ +support Experimental_XCLIENT +feature _HAVE_TLS diff --git a/test/stdout/4032 b/test/stdout/4032 new file mode 100644 index 000000000..41c916c0e --- /dev/null +++ b/test/stdout/4032 @@ -0,0 +1,199 @@ +### (1) non-prox plain receive (not advertised) (2) XCLIENT refules when not advertised +Connecting to 127.0.0.1 port 1225 ... connected +??? 220 +<<< 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000 +>>> EHLO plainclient +??? 250- +<<< 250-myhost.test.ex Hello plainclient [IP_LOOPBACK_ADDR] +??? 250-SIZE +<<< 250-SIZE 52428800 +??? 250-8BITMIME +<<< 250-8BITMIME +??? 250-PIPELINING +<<< 250-PIPELINING +??? 250 HELP +<<< 250 HELP +>>> MAIL FROM:<a@test.ex> +??? 250 +<<< 250 OK +>>> RCPT TO:<b@test.ex> +??? 250 +<<< 250 Accepted +>>> DATA +??? 354 +<<< 354 Enter message, ending with "." on a line by itself +>>> Subject: test +>>> +>>> body +>>> . +??? 250 +<<< 250 OK id=10HmaX-0005vi-00 +>>> XCLIENT NAME=proxylookedupname.net ADDR=127.0.0.2 PORT=4242 +??? 550 +<<< 550 XCLIENT command used when not advertised +>>> QUIT +??? 221 +<<< 221 myhost.test.ex closing connection +End of script +### receive, (1) fully loaded (2) new conn (3) bad: transaction in progress (4) bad: missing EHLO after XCLIENT +Connecting to ip4.ip4.ip4.ip4 port 1225 ... connected +??? 220 +<<< 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000 +>>> EHLO xclientproxy +??? 250- +<<< 250-myhost.test.ex Hello xclientproxy [ip4.ip4.ip4.ip4] +??? 250-SIZE +<<< 250-SIZE 52428800 +??? 250-8BITMIME +<<< 250-8BITMIME +??? 250-PIPELINING +<<< 250-PIPELINING +??? 250-XCLIENT +<<< 250-XCLIENT ADDR NAME PORT LOGIN DESTADDR DESTPORT +??? 250 HELP +<<< 250 HELP +>>> XCLIENT NAME=proxylookedupname.net ADDR=127.0.0.2 PORT=4242 DESTADDR=10.42.42.42 DESTPORT=25 LOGIN=hisloginname +??? 220 +<<< 220 XCLIENT success +>>> EHLO clienthelo +??? 250- +<<< 250-myhost.test.ex Hello proxylookedupname.net [127.0.0.2] +??? 250-SIZE +<<< 250-SIZE 52428800 +??? 250-8BITMIME +<<< 250-8BITMIME +??? 250-PIPELINING +<<< 250-PIPELINING +??? 250-XCLIENT +<<< 250-XCLIENT ADDR NAME PORT LOGIN DESTADDR DESTPORT +??? 250 HELP +<<< 250 HELP +>>> MAIL FROM:<c@test.ex> +??? 250 +<<< 250 OK +>>> RCPT TO:<d@test.ex> +??? 250 +<<< 250 Accepted +>>> DATA +??? 354 +<<< 354 Enter message, ending with "." on a line by itself +>>> Subject: test +>>> +>>> body +>>> . +??? 250 +<<< 250 OK id=10HmaY-0005vi-00 +>>> XCLIENT NAME=[TEMPUNAVAIL] ADDR=127.0.0.3 PORT=4243 LOGIN=[UNAVAILABLE] +??? 220 +<<< 220 XCLIENT success +>>> EHLO anotherhelo +??? 250- +<<< 250-myhost.test.ex Hello anotherhelo [127.0.0.3] +??? 250-SIZE +<<< 250-SIZE 52428800 +??? 250-8BITMIME +<<< 250-8BITMIME +??? 250-PIPELINING +<<< 250-PIPELINING +??? 250-XCLIENT +<<< 250-XCLIENT ADDR NAME PORT LOGIN DESTADDR DESTPORT +??? 250 HELP +<<< 250 HELP +>>> MAIL FROM:<c2@test.ex> +??? 250 +<<< 250 OK +>>> RCPT TO:<d2@test.ex> +??? 250 +<<< 250 Accepted +>>> DATA +??? 354 +<<< 354 Enter message, ending with "." on a line by itself +>>> Subject: test +>>> +>>> body +>>> . +??? 250 +<<< 250 OK id=10HmaZ-0005vi-00 +>>> MAIL FROM:<c2@test.ex> +??? 250 +<<< 250 OK +>>> XCLIENT NAME=bad.time.for.xclient +??? 503 +<<< 503 mail transaction in progress +>>> RSET +??? 250 +<<< 250 Reset OK +>>> XCLIENT NAME=miss.ehlo.after.xclient +??? 220 +<<< 220 XCLIENT success +>>> MAIL FROM:<bad@test.ex> +??? 503 +<<< 503 HELO or EHLO required +>>> QUIT +??? 221 +<<< 221 myhost.test.ex closing connection +End of script +### (5) no operands to XCLIENT (6,7) unrecognised operands +Connecting to ip4.ip4.ip4.ip4 port 1225 ... connected +??? 220 +<<< 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000 +>>> EHLO xclientproxy +??? 250- +<<< 250-myhost.test.ex Hello xclientproxy [ip4.ip4.ip4.ip4] +??? 250-SIZE +<<< 250-SIZE 52428800 +??? 250-8BITMIME +<<< 250-8BITMIME +??? 250-PIPELINING +<<< 250-PIPELINING +??? 250-XCLIENT +<<< 250-XCLIENT ADDR NAME PORT LOGIN DESTADDR DESTPORT +??? 250 HELP +<<< 250 HELP +>>> XCLIENT +??? 501 +<<< 501 XCLIENT must have at least one operand +>>> XCLIENT NONO= +??? 501 +<<< 501 XCLIENT: unrecognised parameter 'NONO' +>>> XCLIENT NAMEfoobar= +??? 501 +<<< 501 XCLIENT: unrecognised parameter 'NAMEfoobar' +>>> XCLIENT SIXSIX= +??? 501- +<<< 501-XCLIENT: unrecognised parameter 'SIXSIX' +??? 501 Too many +<<< 501 Too many syntax or protocol errors +???* +Expected EOF read +End of script +### (7) operand with zero-len value (8) operand with no value +Connecting to ip4.ip4.ip4.ip4 port 1225 ... connected +??? 220 +<<< 220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000 +>>> EHLO xclientproxy +??? 250- +<<< 250-myhost.test.ex Hello xclientproxy [ip4.ip4.ip4.ip4] +??? 250-SIZE +<<< 250-SIZE 52428800 +??? 250-8BITMIME +<<< 250-8BITMIME +??? 250-PIPELINING +<<< 250-PIPELINING +??? 250-XCLIENT +<<< 250-XCLIENT ADDR NAME PORT LOGIN DESTADDR DESTPORT +??? 250 HELP +<<< 250 HELP +>>> XCLIENT NAME= +??? 501 +<<< 501 XCLIENT: zero-length value for param +>>> XCLIENT NAME +??? 501 +<<< 501 XCLIENT: missing value for parameter 'NAME' +End of script + +******** SERVER ******** +### (1) non-prox plain receive (not advertised) (2) XCLIENT refules when not advertised +### receive, (1) fully loaded (2) new conn (3) bad: transaction in progress (4) bad: missing EHLO after XCLIENT +### (5) no operands to XCLIENT (6,7) unrecognised operands +### (7) operand with zero-len value (8) operand with no value diff --git a/test/stdout/4033 b/test/stdout/4033 new file mode 100644 index 000000000..546ca8b1a --- /dev/null +++ b/test/stdout/4033 @@ -0,0 +1,108 @@ +### (1) non-prox plain receive (not advertised) (2) XCLIENT refules when not advertised + +**** SMTP testing session as if from host 127.0.0.1 +**** but without any ident (RFC 1413) callback. +**** This is not for real! + +220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250-myhost.test.ex Hello plainclient [127.0.0.1]
+250-SIZE 52428800
+250-8BITMIME
+250-PIPELINING
+250 HELP
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmaX-0005vi-00
+ +**** SMTP testing: that is not a real message id! + +550 XCLIENT command used when not advertised
+221 myhost.test.ex closing connection
+### receive, (1) fully loaded (2) new conn (3) bad: transaction in progress + +**** SMTP testing session as if from host ip4.ip4.ip4.ip4 +**** but without any ident (RFC 1413) callback. +**** This is not for real! + +220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250-myhost.test.ex Hello xclientproxy [ip4.ip4.ip4.ip4]
+250-SIZE 52428800
+250-8BITMIME
+250-PIPELINING
+250-XCLIENT ADDR NAME PORT LOGIN DESTADDR DESTPORT
+250 HELP
+220 XCLIENT success
+250-myhost.test.ex Hello proxylookedupname.net [127.0.0.2]
+250-SIZE 52428800
+250-8BITMIME
+250-PIPELINING
+250-XCLIENT ADDR NAME PORT LOGIN DESTADDR DESTPORT
+250 HELP
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmaY-0005vi-00
+ +**** SMTP testing: that is not a real message id! + +220 XCLIENT success
+250-myhost.test.ex Hello anotherhelo [127.0.0.3]
+250-SIZE 52428800
+250-8BITMIME
+250-PIPELINING
+250-XCLIENT ADDR NAME PORT LOGIN DESTADDR DESTPORT
+250 HELP
+250 OK
+250 Accepted
+354 Enter message, ending with "." on a line by itself
+250 OK id=10HmaZ-0005vi-00
+ +**** SMTP testing: that is not a real message id! + +250 OK
+503 mail transaction in progress
+250 Reset OK
+220 XCLIENT success
+503 HELO or EHLO required
+221 myhost.test.ex closing connection
+### (4) no operands to XCLIENT (5,6) unrecognised operands + +**** SMTP testing session as if from host ip4.ip4.ip4.ip4 +**** but without any ident (RFC 1413) callback. +**** This is not for real! + +220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250-myhost.test.ex Hello xclientproxy [ip4.ip4.ip4.ip4]
+250-SIZE 52428800
+250-8BITMIME
+250-PIPELINING
+250-XCLIENT ADDR NAME PORT LOGIN DESTADDR DESTPORT
+250 HELP
+501 XCLIENT must have at least one operand
+501 XCLIENT: unrecognised parameter 'NONO'
+501 XCLIENT: unrecognised parameter 'NAMEfoobar'
+501-XCLIENT: unrecognised parameter 'SIXSIX'
+501 Too many syntax or protocol errors
+### (7) operand with zero-len value (8) operand with no value + +**** SMTP testing session as if from host ip4.ip4.ip4.ip4 +**** but without any ident (RFC 1413) callback. +**** This is not for real! + +220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000
+250-myhost.test.ex Hello xclientproxy [ip4.ip4.ip4.ip4]
+250-SIZE 52428800
+250-8BITMIME
+250-PIPELINING
+250-XCLIENT ADDR NAME PORT LOGIN DESTADDR DESTPORT
+250 HELP
+501 XCLIENT: zero-length value for param
+501 XCLIENT: missing value for parameter 'NAME'
+421 myhost.test.ex lost input connection
+ +******** SERVER ******** +### (1) non-prox plain receive (not advertised) (2) XCLIENT refules when not advertised +### receive, (1) fully loaded (2) new conn (3) bad: transaction in progress +### (4) no operands to XCLIENT (5,6) unrecognised operands +### (7) operand with zero-len value (8) operand with no value |