Forum Discussion
kraigk_52257
Apr 23, 2011Nimbostratus
SMTP STARTTLS iRule
I need help with getting a STARTTLS iRule working for SMTP on our 1600's. We are on version 10.2.1. And to be clear it is working but there are a few tweaks I can't figure out. The main issue is ...
Nat_Thirasuttakorn
May 03, 2011Employee
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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects