증상
When sending a test email via an SSL connection (configured as a JNDI resource), mail won't be sent and the following error message is displayed:
com.atlassian.mail.MailException: com.sun.mail.smtp.SMTPSendFailedException:
530 5.7.0 Must issue a STARTTLS command first.
|
원인
In the JNDI SMTP resource configuration, mail.smtp.starttls.enable
isn't turned on.
해결방법
- Double check if "JNDI Location" is specified in SMTP Server Setup
- Edit <JIRA_Installation_Home>/conf/server.xml (Standalone) or <Catalina_Home>/conf/server.xml (Ear/War)
- In the SmtpServer resource section, set
mail.smtp.starttls.enable
as "true" and configure mail.smtp.socketFactory.class
property. A resource configuration sample is shown as below:< Resource name = "mail/SmtpServer"
auth = "Container"
type = "javax.mail.Session"
mail.smtp.host = "mail.mycompany.com"
mail.smtp.port = "587"
mail.smtp.auth = "true"
mail.smtp.user = "jira@mycompany.com"
password = "mypassword"
mail.smtp.starttls.enable = "true"
mail.smtp.socketFactory.class = "javax.net.ssl.SSLSocketFactory"
/>
|