How To Fix “Login to server imap.mail.me.com failed” Issues on Postbox or Thunderbird

There is nothing more annoying than getting repeated email error messages in your email client from an email server. Sometimes this can be caused by issues with the server, or perhaps the connection, or because some configuration has changed or simply because you have not set up your email properly.…

There is nothing more annoying than getting repeated email error messages in your email client from an email server. Sometimes this can be caused by issues with the server, or perhaps the connection, or because some configuration has changed or simply because you have not set up your email properly. Recently in my Postbox app (which is based on the OpenSource Thunderbird project), I started getting repeated login errors coming from my Apple Me.com account, specifically “Login to server imap.mail.me.com failed.” But with a little bit of research, I was able to find a solution.

"Login to server imap.mail.me.com failed" Error
“Login to server imap.mail.me.com failed” Error

Does that warning look familiar? If so, read on for the solution.

iCloud Email Server Information (from Apple)

If you configured your email account (and this could be true for other email clients but I have only tested this with Postbox), you may have some old configurations that need to be changed. You probably set up your Mac.com/MobileMe/iCloud email settings using this Apple Support Document which states the following for setup:

- Advertisements -

Server information

IMAP (Incoming Mail Server) information:

  • Server name: imap.mail.me.com
  • SSL Required: Yes
  • Port: 993
  • Username: [email protected] (use your @me.com address from your iCloud account)
  • Password: Your iCloud password

SMTP (outgoing mail server) information:

  • Server name: smtp.mail.me.com
  • SSL Required: Yes
  • Port: 587
  • SMTP Authentication Required: Yes
  • Username: [email protected] (use your @me.com address from your iCloud account)
  • Password: Your iCloud password

Note: If you receive errors using SSL, try using TLS instead. SSL is required for both IMAP and SMTP connection with iCloud. POP is not supported by iCloud.

Apple's Official Configuration
Apple’s Official Configuration

This is what the configuration looked like in my Postbox setup (based on Apple’s recommendations):

"Wrong" configuration within Postbox
“Wrong” configuration within Postbox

This setup MIGHT NOT work with Thunderbird/Postbox (again, I haven’t tested this with other email clients but if you have issue, you might want to test out the “fix” below).

Corrected iCloud Server Information for Postbox/Thunderbird

After a little bit of research and some trial and error, I was able to successfully change my iCloud email configuration to get it to work. Here is the proper (working) configuration for use with Postbox/Thunderbird:

Server information

IMAP (Incoming Mail Server) information:

  • Server name: imap.mail.me.com
  • SSL Required: Yes
  • Port: 993
  • Username: example@me.com (use your @me.com address from your iCloud account – take just the username from your @me.com address)
  • Password: Your iCloud password

SMTP (outgoing mail server) information:

  • Server name: smtp.mail.me.com
  • SSL Required: Yes
  • Port: 587
  • SMTP Authentication Required: Yes
  • Username: example@me.com (use your @me.com address from your iCloud account – take just the username from your @me.com address)
  • Password: Your iCloud password

Save that configuration and test it out. This is how it looks in my Postbox configuration:

Correct information in Postbox
Correct information in Postbox

And this is how it looks in the SMTP settings:

Correct SMTP information in Postbox
Correct SMTP information in Postbox

Note: you can potentially try the other Authentication option of “STARTTLS” if the “SSL/TLS” doesn’t work

Also remember, MobileMe (or Me.com) and Mac.com are now officially called iCloud so if you have a MobileMe email address like [email protected] or a Mac.com address like [email protected], it is now (also) [email protected].

Just removing the “@me.com” from the User Name seems to make that silly error (“Login to server imap.mail.me.com failed”) message go away. Give it a test and let me know if it worked for you. If it does work, let me know what email client it worked on.

HTD says: Don’t you hate these tiny little configuration changes?

- Advertisements -