quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test935 (974B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 SMTP
      5 SASL
      6 SASL AUTH CRAM-MD5
      7 SASL AUTH PLAIN
      8 SASL DOWNGRADE
      9 RFC2195
     10 RFC4954
     11 </keywords>
     12 </info>
     13 
     14 #
     15 # Server-side
     16 <reply>
     17 <servercmd>
     18 AUTH CRAM-MD5 PLAIN
     19 REPLY "AUTH CRAM-MD5" 334 Rubbish
     20 REPLY * 501 AUTH exchange cancelled by client
     21 REPLY "AUTH PLAIN" 334 PLAIN supported
     22 REPLY AHVzZXIAc2VjcmV0 235 Authenticated
     23 </servercmd>
     24 </reply>
     25 
     26 #
     27 # Client-side
     28 <client>
     29 <server>
     30 smtp
     31 </server>
     32 <features>
     33 crypto
     34 digest
     35 </features>
     36 <name>
     37 SMTP CRAM-MD5 authentication with SASL downgrade
     38 </name>
     39 <stdin>
     40 mail body
     41 </stdin>
     42 <command>
     43 smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user:secret -T -
     44 </command>
     45 </client>
     46 
     47 #
     48 # Verify data after the test has been "shot"
     49 <verify>
     50 <protocol>
     51 EHLO %TESTNUMBER
     52 AUTH CRAM-MD5
     53 *
     54 AUTH PLAIN
     55 AHVzZXIAc2VjcmV0
     56 MAIL FROM:<sender@example.com>
     57 RCPT TO:<recipient@example.com>
     58 DATA
     59 QUIT
     60 </protocol>
     61 <upload>
     62 mail body
     63 .
     64 </upload>
     65 </verify>
     66 </testcase>