You should have already enabled IMAP in Gmail via Mail Settings > Forwarding and POP/IMAP > IMAP Access. Auto-Expunge should be ON by default. If Gmail doesn't work on your Mac after trying to set up the account, and you've already enabled IMAP access, you might need to modify the email server settings in Mail. Using IMAP with Gmail requires the IMAP server settings.
![Mac Mac](http://pop2imap.com/images/gmail_applemail_image5.png)
Apple Mail Gmail Add Your Gmail Account to Apple Mail Using IMAP To set up your Apple mail client to work with Gmail:. Enable IMAP in Gmail. Sign in to Gmail. Click the gear icon in the upper-right and select Gmail settings at the top of any Gmail page. Click Forwarding and POP/IMAP. Select Enable IMAP. Configure your IMAP client and click Save Changes.