How can I solve the "Username and Password not accepted" or "EOF" error when sending a test email via SMTP?
Troubleshooting
EOF or Username and Password not accepted.
As a backup administrator, you may wish to use a "Custom SMTP Server" to send backup status reports. However, even after entering the correct information for the SMTP host, port, username and password, you might still run into a "Username and Password not accepted" error or an "EOF" error when clicking the "send a test email" link. Please try the troubleshooting solutions below:
For the Gmail SMTP server, please try one of the solutions listed below:
Solution 1
For the sake of security and privacy, we recommend that you create an App password to grant permissions to access your Google Account.
- Go to your Google Account.
- On the left navigation panel, click Security.
Under "Signing in to Google", select 2-Step Verification and follow the on-screen steps to enable it.
If you don't have this option, it may be because 2-Step Verification has not been set up in your domain. In that case, please contact your domain administrator to enable it or proceed with Solution 2.
Under "Signing in to Google", select App passwords.
At the bottom, click Select app and choose "Mail", then click Select device and choose the device you're using. Finally, click GENERATE.
Copy and paste the displayed password into the CubeBackup console and send a test email to verify whether all settings are correct.
Solution 2
You can also allow less secure app access.
- Go to your Google Account.
- On the left navigation panel, click Security.
- In the "Less secure app access" panel, click Turn on access.
- Switch on "Allow less secure apps".
- Now you can go back to the CubeBackup console and send a test email to verify whether all settings are correct.
x509: certificate signed by unknown authority
CubeBackup will connect to your custom SMTP server using TLS. If you are using an internal SMTP server with a self-signed certificate, CubeBackup may recognize the connection as insecure and return the error message above and reture the error message below.
If you trust the SMTP server, CubeBackup supports skipping the certification verification of your custom SMTP service. Before getting started with this configuration, please be sure to enable the CubeBackup API on your CubeBackup server.
Then you can call the Update the system settings API, passing along the "SkipVerifyTLS": true
attribute as a JSON payload. See the System settings object
for a full list of parameters you can configure through this API.
curl -L \ --request PATCH ".../api/v1/system/settings" \ --header "Authorization:255c6...88111" \ --header "Content-Type: application/json" \ --data '{"SkipVerifyTLS": true}'
Please return to the CubeBackup web console and send a test message to verify the settings are now working correctly.