504 Error Setting up SMTP Server

Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

An error occurs when sending a test email:

1 2 3 4 5 6 com.atlassian.mail.MailException: javax.mail.MessagingException: 504 Command parameter not implemented at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:191) at com.atlassian.confluence.admin.actions.mail.SendTestEmailAction.execute(SendTestEmailAction.java:52) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)

Cause

The host name is not set to the FQDN (Fully Qualified Domain Name).

Resolution

  1. Use the "hostname" command to set the host to the FQDN (Fully Qualified Domain Name).

  2. Change:

    1 2 % hostname myhost

    To:

    1 2 % hostname myhost.mydomain.com
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.