1<testcase> 2<info> 3<keywords> 4SMTP 5SASL 6SASL AUTH NTLM 7SASL-IR 8RFC4954 9</keywords> 10</info> 11 12# 13# Server-side 14<reply> 15<servercmd> 16AUTH NTLM 17REPLY AUTH 334 TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 18REPLY TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q= 235 Authenticated 19</servercmd> 20</reply> 21 22# 23# Client-side 24<client> 25<server> 26smtp 27</server> 28<features> 29NTLM 30SSL 31!SSPI 32debug 33</features> 34 <name> 35SMTP NTLM authentication with initial response 36 </name> 37 <setenv> 38# we force our own host name, in order to make the test machine independent 39CURL_GETHOSTNAME=curlhost 40# we try to use the LD_PRELOAD hack, if not a debug build 41LD_PRELOAD=%PWD/libtest/.libs/libhostname.so 42 </setenv> 43<stdin> 44mail body 45</stdin> 46 <command> 47smtp://%HOSTIP:%SMTPPORT/921 --mail-rcpt recipient@example.com --mail-from sender@example.com -u testuser:testpass --sasl-ir -T - 48</command> 49<precheck> 50chkhostname curlhost 51</precheck> 52</client> 53 54# 55# Verify data after the test has been "shot" 56<verify> 57<protocol> 58EHLO 921 59AUTH NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 60TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q= 61MAIL FROM:<sender@example.com> 62RCPT TO:<recipient@example.com> 63DATA 64QUIT 65</protocol> 66<upload> 67mail body 68. 69</upload> 70</verify> 71</testcase> 72