The GMail-IMAPD module allows users to access their Gmail account with an IMAP client by running a server which accepts IMAP connections.