---
title: "How to resolve error: The SMTP server requires a secure connection or the client was not authenticated. The server response was 5.7.0 authentication required."
description: "How to resolve error: The SMTP server requires a secure connection or the client was not authenticated. The server response was 5.7.0 authentication required."
---

[Skip to content](https://learn.getservicebox.com/how-to-resolve-error-the-smtp-server-requires-a-secure-connection-or-the-client-was-not-authenticated.-the-server-response-was-5.7.0-authentication-required#main-content)

English

Show submenu for translations

[![ServiceBox Workmark OrangeGradient](https://learn.getservicebox.com/hs-fs/hubfs/ServiceBox%20Workmark%20OrangeGradient.png?width=225&height=57&name=ServiceBox%20Workmark%20OrangeGradient.png)](https://learn.getservicebox.com/knowledge-base?hsLang=en)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations

 How can we help you?

- There are no suggestions because the search field is empty.

1. [ServiceBox Support Knowledge Base](https://learn.getservicebox.com/?hsLang=en)
2. [Configuring Your ServiceBox Site](https://learn.getservicebox.com/configuring-your-servicebox-site?hsLang=en)
3. [FAQ](https://learn.getservicebox.com/configuring-your-servicebox-site?hsLang=en#faq)

# How to resolve error: The SMTP server requires a secure connection or the client was not authenticated. The server response was 5.7.0 authentication required.

If you're trying to set up **custom SMTP server settings** in ServiceBox and receive the following error when sending a test message:

> **Error:** The SMTP server requires a secure connection or the client was not authenticated. The server response was 5.7.0 authentication required.

It’s likely that **Two-Factor Authentication (2FA)** is enabled on your Google account. In this case, you’ll need to generate an **App Password** to use with your SMTP settings instead of your regular Google account password.

### Step 1: Check if Two-Factor Authentication is Enabled

1. Log in to your Google Account: [https://www.google.com/](https://www.google.com/)
2. Click on the **Security** tab from the left-hand menu.
3. Under **“2-Step Verification”**, check the status.
   
     - If it says **“On”**, then 2FA is enabled.
4. Click on **“2-Step Verification”** to manage or confirm your settings.

### Step 2: Generate an App Password for SMTP

If 2FA is enabled, follow these steps to generate a Google App Password:

1. From the **Security** tab in your Google account, scroll to **“App Passwords.”**
2. Select **Mail** from the **“Select app”** dropdown.
3. Choose **Other** in the **“Select device”** dropdown.
4. Enter a name (e.g., “SMTP Server”) and click **Generate**.
5. A 16-digit app password will be displayed. Copy this code.

### Step 3: Use the App Password in ServiceBox

When configuring your **SMTP server settings in ServiceBox**, use the **16-digit app password** instead of your regular Google password. This should resolve the authentication error and allow successful test messages.

### **Need Help?**

If you have any questions or need support, please click the Help button in your ServiceBox account or email us at **support@getservicebox.com**.

- [Video Learning](https://learn.getservicebox.com/video-learning?hsLang=en#main-content)

    - [Accounting Integrations](https://learn.getservicebox.com/video-learning?hsLang=en#accounting-integrations)
- [FAQs](https://learn.getservicebox.com/faqs?hsLang=en)
- [Getting started](https://learn.getservicebox.com/getting-started?hsLang=en#main-content)

    - [User Guides](https://learn.getservicebox.com/getting-started?hsLang=en#user-guides)
- [ServiceBox Mobile](https://learn.getservicebox.com/servicebox-mobile?hsLang=en#main-content)

    - [Getting Started](https://learn.getservicebox.com/servicebox-mobile?hsLang=en#getting-started)
    - [User Guide Technician](https://learn.getservicebox.com/servicebox-mobile?hsLang=en#user-guide-technician)
    - [User Guide Admin](https://learn.getservicebox.com/servicebox-mobile?hsLang=en#user-guide-admin)
    - [FAQ](https://learn.getservicebox.com/servicebox-mobile?hsLang=en#faq)
    - [New Release](https://learn.getservicebox.com/servicebox-mobile?hsLang=en#new-release)
- [Invoices](https://learn.getservicebox.com/invoices?hsLang=en#main-content)

    - [Getting Started](https://learn.getservicebox.com/invoices?hsLang=en#getting-started)
    - [Advanced Functionality](https://learn.getservicebox.com/invoices?hsLang=en#advanced-functionality)
    - [User Guide](https://learn.getservicebox.com/invoices?hsLang=en#user-guide)
    - [FAQ](https://learn.getservicebox.com/invoices?hsLang=en#faq)
- [Quotes](https://learn.getservicebox.com/quotes?hsLang=en#main-content)

    - [Getting Started](https://learn.getservicebox.com/quotes?hsLang=en#getting-started)
    - [User Guide](https://learn.getservicebox.com/quotes?hsLang=en#user-guide)
    - [Advanced Functionality](https://learn.getservicebox.com/quotes?hsLang=en#advanced-functionality)
    - [FAQ](https://learn.getservicebox.com/quotes?hsLang=en#faq)
- [Work Orders](https://learn.getservicebox.com/work-orders?hsLang=en#main-content)

    - [Getting Started](https://learn.getservicebox.com/work-orders?hsLang=en#getting-started)
    - [User Guide](https://learn.getservicebox.com/work-orders?hsLang=en#user-guide)
    - [Advanced Functionalities](https://learn.getservicebox.com/work-orders?hsLang=en#advanced-functionalities)
    - [Work Order - FAQ](https://learn.getservicebox.com/work-orders?hsLang=en#work-order-faq)
- [Job Sites](https://learn.getservicebox.com/job-sites?hsLang=en#main-content)

    - [User Guide](https://learn.getservicebox.com/job-sites?hsLang=en#user-guide)
    - [Advanced Functionality](https://learn.getservicebox.com/job-sites?hsLang=en#advanced-functionality)
    - [FAQ](https://learn.getservicebox.com/job-sites?hsLang=en#faq)
- [Recurring Work](https://learn.getservicebox.com/recurring-work?hsLang=en#main-content)

    - [User Guide](https://learn.getservicebox.com/recurring-work?hsLang=en#user-guide)
    - [FAQ](https://learn.getservicebox.com/recurring-work?hsLang=en#faq)
- [Scheduler](https://learn.getservicebox.com/scheduler?hsLang=en#main-content)

    - [User Guide](https://learn.getservicebox.com/scheduler?hsLang=en#user-guide)
    - [Advanced Functionality](https://learn.getservicebox.com/scheduler?hsLang=en#advanced-functionality)
    - [FAQ](https://learn.getservicebox.com/scheduler?hsLang=en#faq)
- [Timesheets](https://learn.getservicebox.com/timesheets?hsLang=en#main-content)

    - [User Guide](https://learn.getservicebox.com/timesheets?hsLang=en#user-guide)
    - [Advanced Functionality](https://learn.getservicebox.com/timesheets?hsLang=en#advanced-functionality)
    - [FAQ](https://learn.getservicebox.com/timesheets?hsLang=en#faq)
- [Inventory](https://learn.getservicebox.com/inventory?hsLang=en#main-content)

    - [User Guides](https://learn.getservicebox.com/inventory?hsLang=en#user-guides)
    - [FAQ](https://learn.getservicebox.com/inventory?hsLang=en#faq)
- [Vendor Orders](https://learn.getservicebox.com/vendor-orders?hsLang=en#main-content)

    - [Getting Started](https://learn.getservicebox.com/vendor-orders?hsLang=en#getting-started)
    - [Advanced Functionality](https://learn.getservicebox.com/vendor-orders?hsLang=en#advanced-functionality)
    - [User Guide](https://learn.getservicebox.com/vendor-orders?hsLang=en#user-guide)
    - [FAQ](https://learn.getservicebox.com/vendor-orders?hsLang=en#faq)
- [Reporting](https://learn.getservicebox.com/reporting?hsLang=en#main-content)

    - [Getting Started](https://learn.getservicebox.com/reporting?hsLang=en#getting-started)
    - [FAQ](https://learn.getservicebox.com/reporting?hsLang=en#faq)
    - [User Guide](https://learn.getservicebox.com/reporting?hsLang=en#user-guide)
- [Integrations](https://learn.getservicebox.com/integrations?hsLang=en#main-content)

    - [Accounting Connector](https://learn.getservicebox.com/integrations?hsLang=en#accounting-connector)
    - [ServiceBox Payments](https://learn.getservicebox.com/integrations?hsLang=en#servicebox-payments)
- [Product Updates](https://learn.getservicebox.com/product-updates?hsLang=en)
- [Data Services](https://learn.getservicebox.com/data-services?hsLang=en#main-content)

    - [FAQ](https://learn.getservicebox.com/data-services?hsLang=en#faq)
- [QuickBooks Desktop](https://learn.getservicebox.com/quickbooks-desktop?hsLang=en#main-content)

    - [User Guide](https://learn.getservicebox.com/quickbooks-desktop?hsLang=en#user-guide)
    - [Getting Started](https://learn.getservicebox.com/quickbooks-desktop?hsLang=en#getting-started)
    - [FAQ](https://learn.getservicebox.com/quickbooks-desktop?hsLang=en#faq)
- [QuickBooks Online](https://learn.getservicebox.com/quickbooks-online?hsLang=en#main-content)

    - [Getting Started](https://learn.getservicebox.com/quickbooks-online?hsLang=en#getting-started)
    - [User Guide](https://learn.getservicebox.com/quickbooks-online?hsLang=en#user-guide)
    - [FAQ](https://learn.getservicebox.com/quickbooks-online?hsLang=en#faq)
- [Printing](https://learn.getservicebox.com/printing?hsLang=en)
- [Sage 50 (Canada)](https://learn.getservicebox.com/sage-50-canada?hsLang=en#main-content)

    - [Configuration](https://learn.getservicebox.com/sage-50-canada?hsLang=en#configuration)
    - [FAQ](https://learn.getservicebox.com/sage-50-canada?hsLang=en#faq)
    - [User Guide](https://learn.getservicebox.com/sage-50-canada?hsLang=en#user-guide)
- [First Steps for ServiceBox Users](https://learn.getservicebox.com/first-steps-for-servicebox-users?hsLang=en#main-content)

    - [User Guide](https://learn.getservicebox.com/first-steps-for-servicebox-users?hsLang=en#user-guide)
    - [FAQ](https://learn.getservicebox.com/first-steps-for-servicebox-users?hsLang=en#faq)
- [Configuring Your ServiceBox Site](https://learn.getservicebox.com/configuring-your-servicebox-site?hsLang=en#main-content)

    - [Getting Started](https://learn.getservicebox.com/configuring-your-servicebox-site?hsLang=en#getting-started)
    - [User Guides](https://learn.getservicebox.com/configuring-your-servicebox-site?hsLang=en#user-guides)
    - [FAQ](https://learn.getservicebox.com/configuring-your-servicebox-site?hsLang=en#faq)
    - [Advanced Functionality](https://learn.getservicebox.com/configuring-your-servicebox-site?hsLang=en#advanced-functionality)
- [Customer](https://learn.getservicebox.com/customer?hsLang=en#main-content)

    - [User Guide](https://learn.getservicebox.com/customer?hsLang=en#user-guide)
    - [Advanced Functionality](https://learn.getservicebox.com/customer?hsLang=en#advanced-functionality)
    - [FAQ](https://learn.getservicebox.com/customer?hsLang=en#faq)
- [Notes](https://learn.getservicebox.com/notes?hsLang=en)
- [To Dos](https://learn.getservicebox.com/to-dos?hsLang=en#main-content)

    - [Getting Started](https://learn.getservicebox.com/to-dos?hsLang=en#getting-started)
    - [To Dos - User Guide](https://learn.getservicebox.com/to-dos?hsLang=en#to-dos-user-guide)
- [Vendor](https://learn.getservicebox.com/vendor?hsLang=en#main-content)

    - [User Guide](https://learn.getservicebox.com/vendor?hsLang=en#user-guide)

[![sblogo-whiteandtransparent120x30\[8666\]](https://learn.getservicebox.com/hs-fs/hubfs/sblogo-whiteandtransparent120x30%5B8666%5D.png?width=120&height=30&name=sblogo-whiteandtransparent120x30%5B8666%5D.png "sblogo-whiteandtransparent120x30[8666]")](https://learn.getservicebox.com/knowledge-base?hsLang=en)

 

<https://www.facebook.com/getservicebox/> <https://x.com/getservicebox> <https://www.instagram.com/getservicebox/?hl=en> <https://www.youtube.com/@JobboxSoftware> <https://www.linkedin.com/company/getservicebox/>

Copyright © 2026