It actually shows the below error in the error log. it makes no sense considering that I am able to login with the email account elsewhere. The account is fine, I am sure of that.
Mail Import Cannot connect to EmailAddress #IMAP Errors-> LOGIN failed.;LOGIN failed.;LOGIN failed.;Too many login failures tasks.php 185