Phew, that was dumb of me. It finally worked!
I wanted to verify google gmail accounts but it could never work. The mistake that I made was with the "receive email" server.
For gmail, it should be: imap.gmail.com
NOT imap.googlemail.com
Also, deathbycaptcha works. Its just that sometimes it is...