Move ESMPT LIMITS extension from experimental to mainline
[exim.git] / test / scripts / 4032-xclient / 4032
1 # XCLIENT proxy on inbound smtp
2 #
3 munge loopback
4 #
5 exim -bd -DSERVER=server -oX PORT_D
6 ****
7 #
8 ### (1) non-prox plain receive (not advertised) (2) XCLIENT refules when not advertised
9 client 127.0.0.1 PORT_D
10 ??? 220
11 EHLO plainclient
12 ??? 250-
13 ??? 250-SIZE
14 ??? 250-LIMITS
15 ??? 250-8BITMIME
16 ??? 250-PIPELINING
17 ??? 250 HELP
18 MAIL FROM:<a@test.ex>
19 ??? 250
20 RCPT TO:<b@test.ex>
21 ??? 250
22 DATA
23 ??? 354
24 Subject: test
25
26 body
27 .
28 ??? 250
29 XCLIENT NAME=proxylookedupname.net ADDR=127.0.0.2 PORT=4242
30 ??? 550
31 QUIT
32 ??? 221
33 ****
34 #
35 ### receive, (1) fully loaded (2) new conn (3) bad: transaction in progress (4) bad: missing EHLO after XCLIENT
36 client HOSTIPV4 PORT_D
37 ??? 220
38 EHLO xclientproxy
39 ??? 250-
40 ??? 250-SIZE
41 ??? 250-LIMITS
42 ??? 250-8BITMIME
43 ??? 250-PIPELINING
44 ??? 250-XCLIENT
45 ??? 250 HELP
46 XCLIENT NAME=proxylookedupname.net ADDR=127.0.0.2 PORT=4242 DESTADDR=10.42.42.42 DESTPORT=25 LOGIN=hisloginname
47 ??? 220
48 EHLO clienthelo
49 ??? 250-
50 ??? 250-SIZE
51 ??? 250-LIMITS
52 ??? 250-8BITMIME
53 ??? 250-PIPELINING
54 ??? 250-XCLIENT
55 ??? 250 HELP
56 MAIL FROM:<c@test.ex>
57 ??? 250
58 RCPT TO:<d@test.ex>
59 ??? 250
60 DATA
61 ??? 354
62 Subject: test
63
64 body
65 .
66 ??? 250
67 XCLIENT NAME=[TEMPUNAVAIL] ADDR=127.0.0.3 PORT=4243 LOGIN=[UNAVAILABLE]
68 ??? 220
69 EHLO anotherhelo
70 ??? 250-
71 ??? 250-SIZE
72 ??? 250-LIMITS
73 ??? 250-8BITMIME
74 ??? 250-PIPELINING
75 ??? 250-XCLIENT
76 ??? 250 HELP
77 MAIL FROM:<c2@test.ex>
78 ??? 250
79 RCPT TO:<d2@test.ex>
80 ??? 250
81 DATA
82 ??? 354
83 Subject: test
84
85 body
86 .
87 ??? 250
88 MAIL FROM:<c2@test.ex>
89 ??? 250
90 XCLIENT NAME=bad.time.for.xclient
91 ??? 503
92 RSET
93 ??? 250
94 XCLIENT NAME=miss.ehlo.after.xclient
95 ??? 220
96 MAIL FROM:<bad@test.ex>
97 ??? 503
98 QUIT
99 ??? 221
100 ****
101 #
102 ###          (5) no operands to XCLIENT (6,7) unrecognised operands
103 client HOSTIPV4 PORT_D
104 ??? 220
105 EHLO xclientproxy
106 ??? 250-
107 ??? 250-SIZE
108 ??? 250-LIMITS
109 ??? 250-8BITMIME
110 ??? 250-PIPELINING
111 ??? 250-XCLIENT
112 ??? 250 HELP
113 XCLIENT
114 ??? 501
115 XCLIENT NONO=
116 ??? 501
117 XCLIENT NAMEfoobar=
118 ??? 501
119 XCLIENT SIXSIX=
120 ??? 501-
121 ??? 501 Too many
122 ???*
123 ****
124 #
125 ###          (7) operand with zero-len value (8) operand with no value
126 client HOSTIPV4 PORT_D
127 ??? 220
128 EHLO xclientproxy
129 ??? 250-
130 ??? 250-SIZE
131 ??? 250-LIMITS
132 ??? 250-8BITMIME
133 ??? 250-PIPELINING
134 ??? 250-XCLIENT
135 ??? 250 HELP
136 XCLIENT NAME=
137 ??? 501
138 XCLIENT NAME
139 ??? 501
140 ****
141 #
142 #
143 killdaemon
144 no_msglog_check
145 no_stdout_check
146 no_stderr_check