getting “530 5.7.0 Must issue a STARTTLS command first.” error when sending mail via netcat

前端 未结 3 1789
误落风尘
误落风尘 2021-01-11 15:44

I\'m trying to send an email with netcat, this is what i get:

****-MacBook-Pro:~ ***$ nc smtp.gmail.com 25
220 mx.google.com ESMTP h8sm66301168eew.16 - gsmtp         


        
相关标签:
3条回答
  • 2021-01-11 16:00

    STARTTLS is an extension to plain text communication protocols, which offers a way to upgrade a plain text connection to an encrypted (TLS or SSL) connection instead of using a separate port for encrypted communication.

    http://en.wikipedia.org/wiki/STARTTLS

    The smtp server is saying it won't accept plain text connections.

    0 讨论(0)
  • 2021-01-11 16:02

    Use EHLO instead of HELO. This will start 250-STARTTLS.

    0 讨论(0)
  • 2021-01-11 16:03

    You basicaly just need to specify that you're using TLS.

    0 讨论(0)
提交回复
热议问题