Benjamin
Firstly, you'll see 220 at the very start, and then 250 after sending EHLO
or HELO. So you were correct the first time, with "expect 220".
Secondly, the mail server uses STARTTLS, so it's not doing encryption at
the point that the EHLO and QUIT strings are sent. The "ssl" option in
protocols.cfg assumes SSL/TLS is present during the handshake, immediately
after the TCP connection is established, rather than after issuing the
"send" string. Try removing the "ssl" option from protocols.cfg and see if
that helps.
Cheers
Jeremy
On Wed, 16 Jun 2021 at 05:07, Lists <user-bd60c1f964ce@xymon.invalid> wrote:
After some squinting, I noticed that smtp service on telnet responds with
220
but over SSL with the openssl command it returns 250. I changed the
"expect"
parameter in [smtps] section of protocols.cnf to "250" and it made no
difference.
Whatever it's complaining about it has something to do with SSL.