1<testcase> 2<info> 3<keywords> 4SMTP 5SASL 6SASL AUTH NTLM 7RFC4954 8</keywords> 9</info> 10 11# 12# Server-side 13<reply> 14<servercmd> 15AUTH NTLM 16REPLY AUTH 334 NTLM supported 17REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 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 30!SSPI 31debug 32</features> 33 <name> 34SMTP NTLM authentication 35 </name> 36 <setenv> 37# we force our own host name, in order to make the test machine independent 38CURL_GETHOSTNAME=curlhost 39# we try to use the LD_PRELOAD hack, if not a debug build 40LD_PRELOAD=%PWD/libtest/.libs/libhostname.so 41 </setenv> 42<stdin> 43mail body 44</stdin> 45 <command> 46smtp://%HOSTIP:%SMTPPORT/906 --mail-rcpt recipient@example.com --mail-from sender@example.com -u testuser:testpass -T - 47</command> 48<precheck> 49chkhostname curlhost 50</precheck> 51</client> 52 53# 54# Verify data after the test has been "shot" 55<verify> 56<protocol> 57EHLO 906 58AUTH NTLM 59TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 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