Google has a option to keep the Two Steps Verification activated and connect your email on external apps, it is a alternative case if you wouldn't like to turn the two steps off.
2. On App passwords area, go into Select app and choose "Other".
3. Then on Select device put your site URL on the field and click on Generate.
4. The generated password will appear on the screen, just copy and paste it on your eDirectory email settings.
5. Connecting the password on your site.
Just remembering Google settings for email configuration:
Email: Your email account.
Username: Your email account.
Password: The generated password.