In **Settings → Email**, choose the iCloud preset.

At appleid.apple.com, open **Sign-In and Security → App-Specific Passwords** and generate one. In Settings, the username is your full iCloud email address. The password is the app-specific password, not your Apple ID password.