"imap" is not a proper mail server name. Your account settings aren't correct.
Who provides your email service? Or to ask that question another way,
what is the part of your email address after the @ symbol?
Your mail provider will typically have a web page that shows how to
set up an email program. If you need more help, tell us the name of
your email service provider.
Also, your error message is not complete. Right-click on your error
message, copy, then paste it into a reply here.
We can't do much troubleshooting without the complete error message.