you may be helful this
You can configure your mail server with two server type.
[1] POP server:
server name : pop.gmail.com
port : 995
User Name : youremailid@gmail.com
Password : your gmail password
SSL/TLS : yes
[2] IMAP server:
server name : imap.gmail.com
port : 993
User Name : youremailid@gmail.com
Password : your gmail password
SSL/TLS : yes
Actions to Perform on Incoming Mails:
Create a New Record = crm.lead ["define the object name from where you want to this email"]
Now click on the "Fetch Now" button.