Settings -> Forwarding and POP/IMAP -> IMAP access> Enable IMAP -> Save changes
Configured GLPI
In your Collector, you must enter your IMAP authentication parameters. Google provides authentication settings to enter on third-party applications here.
You can find the generic configuration of a collector here.