This yielded a 503 5.5.2 error "Send Hello First"
} else {
TCP::respond "530 Must issue a STARTTLS command first\r\n"
comment below line (the below line swallow client data...)
TCP::payload replace 0 [TCP::payload length] ""
TCP::release
release and never collect again
TCP::collect
}
I then tried to uncomment this TCP::respond "530 Must issue a STARTTLS command first\r\n" with this:
TCP::respond "EHLO\r\n"
and got an error I forgot to write down.
SSL/TLS on port 25 does work with my original code but I get no telnet and as Damion pointed out no clear text.