Home | History | Annotate | Download | only in data
      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 </features>
     31  <name>
     32 SMTP CRAM-MD5 authentication
     33  </name>
     34 <stdin>
     35 mail body
     36 </stdin>
     37  <command>
     38 smtp://%HOSTIP:%SMTPPORT/905 --mail-rcpt recipient (a] example.com --mail-from sender (a] example.com -u user:secret -T -
     39 </command>
     40 </client>
     41 
     42 #
     43 # Verify data after the test has been "shot"
     44 <verify>
     45 <protocol>
     46 EHLO 905
     47 AUTH CRAM-MD5
     48 dXNlciA3MDMxNzI1NTk5ZmRiYjVkNDEyNjg5YWEzMjNlM2UwYg==
     49 MAIL FROM:<sender (a] example.com>
     50 RCPT TO:<recipient (a] example.com>
     51 DATA
     52 QUIT
     53 </protocol>
     54 <upload>
     55 mail body
     56 .
     57 </upload>
     58 </verify>
     59 </testcase>
     60