Skip Navigation
Expand
Configuring google mailboxes with and without 2 step verification
Answer ID 7775   |   Last Review Date 12/23/2018

Does techmail work with gmail hosted mailboxes with 2-Step Verification enabled?

Environment:

Oracle B2C Service, Techmail

Resolution:

Google has implemented 2-Step verification for mailboxes. By default, if techmail is configured to use the account password it will be unable to access these mailboxes and will return authentication errors when accessing these mailboxes.

In order to allow techmail to run on gmail mailboxes there are 2 options:

1. Disable 2-step verification and allow access for less secure apps.

This can be done by following these steps:

1. Go to the google account settings (https://myaccount.google.com/)

2. Under the 'Signing in' section, make sure 2-Step verification is off

3. Under the same section, make sure the 'Access for less secure apps' option is set to 'Allowed'

Make sure the 'Access for less secure apps' option is set to 'Allowed'


After performing these steps, techmail will run successfully on the gmail mailbox.

See 'Access for less secure apps' for more information about this option.

2. Enable 2-step verification and generate a specific application password for Techmail:

1. Go to the google account settings (https://myaccount.google.com/)

2. Under the 'Signing in' section, make sure 2-Step verification is On
Make sure 2-Step verification is On

3. Under the 'Signing in' section, click App passwords

4. On the next 'App passwords screen', select Other (custom name) from the first dropdown, type in a name for the application such as 'Techmail' and press 'Generate'
Select Other (custom name) from the first dropdown, type in a name for the application such as 'Techmail' and press 'Generate'

5. The next screen, 'Generated app passwords', will contain a password under the 'Your app password for your device' heading.
The Generated app passwords', will contain a password under the 'Your app password for your device' heading.
6. Copy this password and use it in the console for the mailbox using the account you have been configuring. This password will replace the account password and will allow techmail to have full access to the mailbox.

See 'Sign in using App Passwords' for more information.

Available Languages for this Answer:

Notify Me
The page will refresh upon submission. Any pending input will be lost.