MuleSoft · Email Connector

EMAIL:AUTHENTICATION

Short answer

EMAIL:AUTHENTICATION means authentication against the mail server failed. For Gmail with two-factor authentication, use an app-specific password instead of the account password.

VerifiedLast verified

01Error text

MuleSoft error
Error type: EMAIL:AUTHENTICATION

02Likely causes

  • Authentication failed.
  • For Gmail, an account with two-factor authentication needs an app-specific password. Without two-factor authentication, the docs say to enable "Less Secure Apps" in the Gmail account.

03How to fix it

  1. Check the user and password on the email connection configuration.
  2. For Gmail with two-factor authentication, create an app-specific password and use it.
  3. If the password still fails for Gmail, use Google's unlock captcha page that the docs link to, then run the flow again.
  4. Turn on connector logging: in log4j2.xml add <AsyncLogger name="org.mule.extension.email" level="DEBUG" />.
  5. For protocol detail, add <email:property key="mail.debug" value="true" /> to the IMAP or SMTP connection element.
  6. Handle the failure with an error handler of type EMAIL:AUTHENTICATION.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.