Sidebar

How do I troubleshoot the following Error javax.mail.AuthenticationFailedException ?

0 votes
528 views
asked Jan 19, 2018 by garrett-h-6007 (240 points)

1 Answer

0 votes

Is this the full error? If there is more information it may guide you further. You can check the qie logs for more detailed error as well:

https://www.qvera.com/kb/index.php/5/where-are-the-log-files-for-qie?show=5#q5

The AuthenticationFailedException tells me the server could not authenticate you.

Couple of things to check:
1. Username and password are correct.
2. Are you using TLS when you shouldn't or not using TLS when you should (Some servers require TLS and give authentication errors if not used.)
3. Is the QIE server authorized on the SMTP server (Some servers only allow certain IP address or range to relay on the SMTP port)
4. Make sure SMTP is allowed (Gmail and other services make you update the preferences to allow SMTP relay. Here is a website on how to allow SMTP in Gmail: https://support.google.com/a/answer/2956491?hl=en).

answered Jan 19, 2018 by brandon-w-8204 (33,270 points)
commented Oct 19, 2020 by ardi-j-9343 (120 points)
I just wanted to add that I was getting this error when I tried to setup my G Suite account, and I resolved it by generating an App Password as described here:

https://support.google.com/accounts/answer/185833?hl=en&authuser=1
...