Using our integrated IMAP collection tool (pictured below) will result in errors if the email being collected is secured with 2 Factor Authentication (2FA). This extra security feature sends a verification code to a users device that must be entered before the email account can be accessed.
In order to collect from a 2FA enabled account, you must first either generate a secure app password, or temporarily disable 2FA (not recommended, and should be used as a last resort). These steps will vary slightly between email providers. This tutorial focuses specifically on google accounts. For other types of accounts, refer to your email providers documentation:
AOL (Disable 2FA Only)
Sign into your email account, then click your user photo in the top right. Click "My Account"
From the "My Account" page, click "Signing in to Google"
From the "Signing in to Google" page, you will see options for 2-Step Verification, and App passwords.
You can click "2-Step Verification" here, then click the "Turn Off" button to disable 2FA while we collect from the email account. Return to this page when processing is completed to re-enable 2FA. Note that this step should be done as a last resort if you have followed the remaining steps and are still unable to collect from the account.
Click "App passwords", then from the dropdown menu on the new page select "Other".
Enter "Indexed I/O" or whatever identifier you want to use for the app password, then click "Generate".
Congratulations! You have successfully generated an app password. Use this app password as the password for your account when you add a collection in the Indexed I/O User Interface in order to bypass 2FA. It should be displayed on your screen as below:
Once you leave this page you will no longer be able to view your app password. The dialog box will warn you not to store or share this password, which is a good security precaution as it allows complete access to your account while bypassing additional security measures. You should copy it directly from this window to the Indexed I/O UI. If you need to re process the email account you will have to repeat this process to generate a new app password, as the old one should not be stored and there is no way to have Google display it again after creation.