If a mail server rejects your login information
If a mail server doesn’t accept your user name and password, try these suggestions.
Make sure you enter the password for your email account, not the login password for your Mac or the password for another account.
Make sure you enter uppercase and lowercase characters where needed.
Verify your login information in Mail by choosing Mail > Preferences, then clicking Accounts. If your email account provider offers webmail, try using your account name and password to access it. If that doesn’t work (or you don’t have webmail), contact your provider.