Here Are the IMAP Settings You Need to Set Up Gmail
To access a Gmail account in your email program or mobile device via the IMAP protocol, activate IMAP in Gmail. Open Gmail in a web browser. Select the Settings gear in the upper-right corner. Select See all settings . Select the Forwarding and POP / IMAP tab. In the IMAP access section, select Enable IMAP .