aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test804
diff options
context:
space:
mode:
authorPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2010-02-22 12:41:02 +0000
committerPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2010-02-22 12:41:02 +0000
commit338553eda38a7ed163f935e28461eeda6dde294f (patch)
tree62e46e9a2580449f181c6933fa580d37443c4098 /tests/data/test804
parent2abcd132f832cbd1f3a476e655f47b6a02862db3 (diff)
- Proper handling of STARTTLS on SMTP, taking CURLUSESSL_TRY into account.
- SMTP falls back to RFC821 HELO when EHLO fails (and SSL is not required). - Use of true local host name (i.e.: via gethostname()) when available, as default argument to SMTP HELO/EHLO. - Test case 804 for HELO fallback.
Diffstat (limited to 'tests/data/test804')
-rw-r--r--tests/data/test80459
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/data/test804 b/tests/data/test804
new file mode 100644
index 000000000..e1fc419e9
--- /dev/null
+++ b/tests/data/test804
@@ -0,0 +1,59 @@
+<testcase>
+<info>
+<keywords>
+SMTP
+SMTP HELO
+RFC821
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<servercmd>
+REPLY EHLO 500 Command unrecognized
+REPLY HELO 250 Already old but still servicing...
+</servercmd>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+smtp
+</server>
+ <name>
+RFC821-only SMTP server (EHLO not supported)
+ </name>
+<stdin>
+From: different
+To: another
+
+body
+</stdin>
+ <command>
+smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 804@foo --mail-from 804@from -T -
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+EHLO user
+HELO user
+MAIL FROM:804@from
+RCPT TO:<804@foo>
+DATA
+QUIT
+</protocol>
+<upload>
+From: different
+To: another
+
+body
+
+.
+</upload>
+</verify>
+</testcase>