If you can't connect Yahoo Mail to Outlook, double-check the IMAP settings. If you have 2-factor authentication set up, you must log in that way.