4da1b991293fddcacbcb23e1d277b720bb5e3df7
[platform/upstream/curl.git] / tests / data / test902
1 <testcase>
2 <info>
3 <keywords>
4 SMTP
5 SMTP HELO
6 RFC821
7 </keywords>
8 </info>
9
10 #
11 # Server-side
12 <reply>
13 <servercmd>
14 REPLY EHLO 500 Command unrecognized
15 REPLY HELO 250 Already old but still servicing...
16 </servercmd>
17 </reply>
18
19 #
20 # Client-side
21 <client>
22 <server>
23 smtp
24 </server>
25  <name>
26 RFC821-only SMTP server (EHLO not supported)
27  </name>
28 <stdin>
29 From: different\r
30 To: another\r
31 \r
32 body\r
33 </stdin>
34  <command>
35 smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 902@foo --mail-from 902@from -T -
36 </command>
37 </client>
38
39 #
40 # Verify data after the test has been "shot"
41 <verify>
42 <protocol>
43 EHLO user\r
44 HELO user\r
45 MAIL FROM:<902@from>\r
46 RCPT TO:<902@foo>\r
47 DATA\r
48 QUIT\r
49 </protocol>
50 <upload>
51 From: different\r
52 To: another\r
53 \r
54 body\r
55 .\r
56 </upload>
57 </verify>
58 </testcase>