Authentication for Gmail SMTP server not working

I have two Gmail accounts. One account works fine, I can log in and send email with my username and password.


My other account allows me to receive email, but I can not sent email with the Gmail smtp server. If I try to use the SMTP server with my other gmail account, then the emails get sent from that account, which is not what I want. It keeps saying my username or password are incorrect and will not sent the message. But they are correct, I have my username as "username" server name "smtp.gmail.com" TLS Certification: None Port: 465 Use SSL: Yes Authentication: Password

Intel Core 2 Duo 2GHZ, Mac OS X (10.6.2), 2 GB RAM, 160 GB HDD, Superdrive, GeForce 9400 256MB VRAM

Posted on Sep 19, 2015 9:40 PM

Reply
2 replies

Sep 20, 2015 7:41 AM in response to tyler82

Take each of the following steps that you haven't already tried, testing after each one. Back up all data before making any changes.

Step 1

From the Mail menu bar, select

Window ▹ Connection Doctor

Double-click the problem SMTP (outgoing mail) account in the window that opens. it. Another window will open, showing a list of all the outgoing mail accounts. The one you clicked will be selected.

Select the Advanced tab in the settings for the account and check the box marked

Automatically detect and maintain account settings

if it's not already checked.

If there's more than one problem account, repeat. Close the window and save the changes.

Step 2

Open the SMTP server list again. Make a note of the settings of the problem server, then click the minus-sign button to delete it, and confirm. Click the plus-sign button and recreate the account with the same settings.

If you're using Gmail, delete the account completely in the Internet Accounts preference pane and recreate it. The "detect and maintain" option must be selected in the Advanced settings for the incoming mail account.

The messages will be resynchronized with the server automatically, which may take hours if the mailboxes are very large.

Step 3

Quit Mail if it's running. Launch the Keychain Access application and enter the name of the outgoing mail server in the search box. For example, if you use Gmail, enter

smtp.gmail.com

Make a note of the password, then delete the keychain item(s). The next time Mail connects to the server, it will prompt for the password. Enter it and save the password in the keychain.

Step 4

If you're using Gmail, log in to your account on the website and, in the account settings, click the link to "Sign-in and security". There should be a option somewhere on the page to "Allow less secure apps". Enable that option and save the change. Note: I don't use Gmail and I haven't tested this solution myself. If it doesn't work, either go to the Google user forums for help, stop trying to use Gmail with Mail, or just stop using Gmail altogether (highly recommended.)

Sep 20, 2015 11:59 AM in response to Linc Davis

Thanks Linc! I deleted the Gmail account from my "Internet Accounts" pane in System Preferences and my SMTP is now working. I actually tried this step before with no success, but I think I still had the Mail app open the whole time, so that could have screwed things up. If anyone else has this problem, make sure you Mail.app is quit before deleting and reinstalling the gmail account in System Preferences.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Authentication for Gmail SMTP server not working

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.