Use this configuration for getting incoming mail from your google[apps] account.
- Mail Server: imap.gmail.com
- Username: user@domain.com
- Password: *****
- Mail Protocol: imap 2
- SSL Options: SSL Certificate
- Validations: Do Not Validate SSL Cert
- Refresh Timeout: 1 minute
- Email per Page: 25
https://www.vtiger.com/blogs/?p=623