535 No SMTP server defined - while mail server is configured in Confluence

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following appears in the atlassian-confluence.log (or atlassian-confluence-outgoing-mail.log from 7.11)

javax.mail.AuthenticationFailedException: 535 No SMTP server defined. Use real server address instead of 127.0.0.1 in your account.

Diagnosis

While you have a mail server properly configured, still the above error message appears in the logs. It can happen that before an upgrade there were no problems, but when upgrading to another version of Confluence, suddenly the same settings won't work.

Cause

Anti-virus software is blocking connection to the mail server. We have experienced these symptoms with Avast antivirus, but the same problem may happen with different products.

Workaround

Disable the mail-related modules of your antivirus software, then re-enable them one-by-one to see which may be causing the issue.

Resolution

Disable antivirus software or configure it to exclude Confluence process and/or Tomcat from spam/mail protection.

Last modified on Jan 11, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.