# Authentication Error - Check your username and password. (IMAP)View Log, In "Add your icloud account"

**URL:** <https://community.getmailspring.com/t/authentication-error-check-your-username-and-password-imap-view-log-in-add-your-icloud-account/8870>\
**Category:** Bug Reports\
**Tags:** icloud, accounts, macos\
**Created:** [October 2, 2024, 7:33pm UTC](https://community.getmailspring.com/t/authentication-error-check-your-username-and-password-imap-view-log-in-add-your-icloud-account/8870 "2024-10-02T19:33:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blogsofwardotdotme](https://community.getmailspring.com/user_avatar/community.getmailspring.com/blogsofwardotdotme/32/9358_2.png) [@blogsofwardotdotme](https://community.getmailspring.com/u/blogsofwardotdotme)\
**Post date:** [October 2, 2024, 7:33pm UTC](https://community.getmailspring.com/t/authentication-error-check-your-username-and-password-imap-view-log-in-add-your-icloud-account/8870/1 "2024-10-02T19:33:46Z")

</div>

Hi there  
In Add your iCloud account, I entered my app specific password, “vymj-xxxx-xxxx-ongo”, without quotation.  
My email is of course my icloud email from apple.  
This is my log:  
Important: iCloud requires that you create a unique app password for email apps like Mailspring. Follow these instructions to create one and then paste it below.

> **[Sign in to apps with your Apple ID using app-specific passwords - Apple Support](https://support.apple.com/en-us/102654)**
>
> App-specific passwords allow you to sign in to your account securely when you use third-party apps with your Apple ID.

----------IMAP----------  
connect mailcore::IMAPSession:0x7ff7bfefe890

- OK [CAPABILITY XAPPLEPUSHSERVICE IMAP4 IMAP4rev1 SASL-IR AUTH=ATOKEN AUTH=PLAIN AUTH=ATOKEN2] (2427B15-26fa31e5f649) [st43p00im-tygg10060401.me.com](http://st43p00im-tygg10060401.me.com)  
ssl connect [imap.mail.me.com](http://imap.mail.me.com) 993 2  
connect ok  
login  
1 LOGIN " @icloud.com" \*\*\*\*\*\*\*\*\*  
1 NO [AUTHENTICATIONFAILED] Authentication Failed  
I repeated many times. Thank you
