Unable to add SMTP Server in JIRA due to error: "501 Syntax error in parameters or arguments"

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

  • Unable to add SMTP server in JIRA with following error: "501 Syntax error in parameters or arguments"

atlassian-jira.log に次のメッセージが表示される。

An error has occurred with sending the test email:
com.atlassian.mail.MailException: javax.mail.MessagingException: 501 Syntax error in parameters or arguments

	at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:179)
	at com.atlassian.jira.web.action.admin.mail.SendTestMail.doExecute(SendTestMail.java:93)
Caused by: javax.mail.MessagingException: 501 Syntax error in parameters or arguments

診断

Enabling DEBUG logging.

JIRA 5+

 

  1. Log in as a user with the 'JIRA System Administrators' global permission.
  2. Choose the cog icon  at top right of the screen, then choose JIRA Admin. Then choose System > Troubleshooting and Support > Logging & Profiling to open the 'Logging' page, which lists all defined log4j categories (as package names) and their current logging levels.
    Keyboard shortcut: 'g' + 'g' + start typing 'logging & profiling'
  3. カテゴリーのログ レベルを変更するには、該当するパッケージ名に関連付けられたログ レベルのリンクをクリックします。カテゴリーのログをオフにするには、該当するパッケージ名に関連付けられた「オフ」リンクをクリックします。


Pre JIRA 5

メールプロトコルの詳細をロギングする


atlassian-jira.log に次のメッセージが表示される。

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host <smtp_server>, port 25, isSSL false
220 SMTP Gateway: Authorized Use Only! Violators will be prosecuted service ready; Thu, 24 Jan 2013 18:57:39 -0500
DEBUG SMTP: connected to host <smtp_server>, port: 25

EHLO <hostname>
501 Syntax error in parameters or arguments
HELO <hostname>
501 Syntax error in parameters or arguments

原因

The mail server rejects the client connection, since the HELO command expects a fully qualified domain name from the client.

ソリューション

When you start JIRA, pass it the following parameter:

-Dmail.smtp.localhost=<computer_name>

Substitute the JIRA server name(FQDN) for <computer_name>. See Setting Properties and Options on Startup.

最終更新日 2018 年 11 月 6 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.