Imported Upstream version 7.59.0
[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 </servercmd>
16 </reply>
17
18 #
19 # Client-side
20 <client>
21 <server>
22 smtp
23 </server>
24  <name>
25 RFC821-only SMTP server (EHLO not supported)
26  </name>
27 <stdin>
28 From: different
29 To: another
30
31 body
32 </stdin>
33  <command>
34 smtp://%HOSTIP:%SMTPPORT/902 --mail-rcpt recipient@example.com --mail-from sender@example.com -T -
35 </command>
36 </client>
37
38 #
39 # Verify data after the test has been "shot"
40 <verify>
41 <protocol>
42 EHLO 902
43 HELO 902
44 MAIL FROM:<sender@example.com>
45 RCPT TO:<recipient@example.com>
46 DATA
47 QUIT
48 </protocol>
49 <upload>
50 From: different
51 To: another
52
53 body
54 .
55 </upload>
56 </verify>
57 </testcase>