Email

Error 530 5.7.0: "Must issue a STARTTLS command first"

In short. The mail server you connect to refuses everything until the connection is encrypted with STARTTLS. Your mail program, website or device is sending its commands in clear text. In nearly every case you only need to turn on encryption in the sending (SMTP) settings or switch port.

530 5.7.0 Must issue a STARTTLS command first is the reply defined by RFC 3207: a server that requires TLS returns it for every SMTP command except NOOP, EHLO, STARTTLS and QUIT. Google lists it word for word among its Gmail SMTP errors.

Last verified: November 27, 2026, against RFC 3207, Google Workspace's official list of SMTP errors and RFC 8314.

How to fix it

  1. Turn on encryption in the SMTP settings of your mail program, application or printer: choose STARTTLS (or TLS) as the connection security. This is Google's fix: start a TLS session with STARTTLS before sending other commands.
  2. Check the port and mode. RFC 8314 describes two modes: STARTTLS on port 587, which starts in clear text and then upgrades to TLS, and Implicit TLS on port 465, where the TLS handshake begins immediately. Use the port and mode pair your provider gives you: Implicit TLS on port 587 or the reverse fails.
  3. In a script or library, call the STARTTLS command (or the library's equivalent option) before authenticating and sending, or choose Implicit TLS if your provider offers it.
  4. If you run the server that answers 530, it is the one enforcing TLS. Postfix does this with smtpd_tls_security_level = encrypt. Its documentation notes that, per RFC 2487, this must not be applied to a publicly referenced server (your domain's MX); RFC 3207 reserves this reply for servers that are not publicly referenced. Keep it for an authenticated submission service.
  5. Send a test message and check that it goes out without an error.

This is not a DNS problem

Error 530 5.7.0 says nothing about SPF, DKIM or DMARC: it only concerns the connection between your client and the server. Once sending works again, check your domain's authentication with our free tools.

Free tool. DMARC checker

Check your domain for free. AttackScout reads your public SPF, DKIM and DMARC records and tells you what to change. Run the free check

Frequently asked questions

Do I need a certificate on my side?

No. The server presents a certificate; your software only has to ask for the encrypted connection.

Does Gmail use the same error?

Yes. Google's list contains "530 5.7.0 Must issue a STARTTLS command first"; the same list also has "530 5.7.0 Authentication required", which is a different error about authentication.

Sources

Accessed on 11/27/2026.

Get the free alerts