quickjs-tart

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

test905 (899B)


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