Follow these steps:
Go to https://appleid.apple.com and sign in with your Apple ID.
Under Sign-In and Security, select App-Specific Passwords.
Click Generate an app-specific password.
Enter a label such as “Marco app” and click Create.
Confirm your Apple ID password if asked.
Copy the generated password and paste it into Marco when connecting your Apple account.
Note: This requires two-factor authentication to be enabled on your Apple ID.
That’s all you need to securely connect your Apple email to Marco.