IMAP not working both on Iphone & Mac

IMAP not working both on Iphone & Mac

Hello,

I tried to configure my email account on my Iphone & Mac. Both Imap is not working, SMTP works fine. Why?

It is always saying password not correct. I also tried with other accounts of my team, still does not work.

Thanks!