Less Secure Apps Setting In Gmail. Google secure the account for unwanted access by using less secure app features. Turn on “allow less secure apps” enable imap settings in gmail account.

This is the solution to this issue, especially if you still received a “this setting is managed by your domain administrator.” even if you do manage to get to the “enable less secure apps” page. Toggle to turn this feature 'on'. Google recently introduced a new email setting that may cause connections to the gmail smtp server to fail.
Before you download a copy of gmail emails to local system, you need to enable imap of your gmail account.
Jika anda sudah mengaktifkan 2 factor authentication anda tidak akan bisa mendapat akses ini. On this page, simply select “turn on” from the two options. Click here to access less secure app access in my account. Timeout periods vary per app.