iCloud IMAP (inactive)

When I delete an email on my iPhone, it does not get deleted on my iMac. In Mail preferences, under Accounts, it shows iCloud IMAP (inactive). Maybe this is the problem. I don't know what to do to make it active. Would appreciate any help. Thank you.
 
Top