I think we are getting closer.
üôÇ
I believe, we might change the ehlo block to one of either 2 options
if { $lcpayload starts_with "ehlo" } {
TCP::release
TCP::collect
}
1) use original method but include all features that server support example:
set response "250-mail.company.com Hello\r\n\"
append response "250-PIPELINING\r\n"
append response "250-DNS\r\n"
append response "250-ENHANCEDSTATUSCODES\r\n"
append response "250-AUTH GSSAPI NTLM LOGIN\r\n"
append response "250-8BITMIME\r\n"
append response "250-BINARYMIME\r\n"
append response "250-CHUNKING\r\n"
append response "250 STARTTLS\r\n"
TCP::respond $response
2) do something like...
set ehlo 0
if { $lcpayload starts_with "ehlo" } {
TCP::release
serverside { TCP::collect}
set ehlo 1
TCP::collect
}
in when SERVER_DATA insert 250-STARTTLS\r\n to payload of server response
if { $ehlo == 1 } {
insert 250-STARTTLS... at beginning of the payload
TCP::payload replace 0 0 "250-STARTTLS\r\n"
TCP::release
set ehlo 0
}
Nat