Support Article

There is an authentication failure sending an email via SMTP

SA-33223

Summary



There is an authentication failure sending an email via SMTP


Error Messages



javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:914)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:825)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:730)
at javax.mail.Service.connect(Service.java:366)
at javax.mail.Service.connect(Service.java:246)


Steps to Reproduce



Test Connectivity


Root Cause



A software use or operation error The email server does not require authentication and it is an error to provide authentication.
Using the tracer when testing connection the following details were observed in pySMTPDebugInfo property on the ParameterPageContent after calling Data-Email-Account.SMTPConnectivity.

DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM XOAUTH2
DEBUG SMTP: mechanism LOGIN not supported by server
DEBUG SMTP: mechanism PLAIN not supported by server
DEBUG SMTP: mechanism DIGEST-MD5 not supported by server
DEBUG SMTP: Using mechanism NTLM
DEBUG NTLM: type 1 message: 4E 54 4C 4D 53 53 50 00 01 00 00 00 03 B2 00 00 09 00 09 00 30 00 00 00 10 00 10 00 20 00 00 00 69 70 2D 31 37 32 2D 31 36 2D 31 35 30 2D 34 35 44 4F 52 46 53 4D 41 49 4E
DEBUG SMTP: AUTH NTLM command trace suppressed
DEBUG SMTP: AUTH NTLM failed


Resolution



Perform the following local-change:

Do not specify any credentials in the Email Account, save, test connectivity.

Published February 2, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.