Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

"You must specify the server type." error, while configuring SMTP via jndi.

xiaodong shi
September 27, 2018

Hi, 

Can someone help on this? Thanks in advance.

"You must specify the server type." error, while configuring SMTP via jndi.

The server.xml was updated:

<Resource name="mail/JiraSmtpServer"
auth="Container"
type="javax.mail.Session"
mail.smtp.host="XXX.com"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.user="XXX@XXXcom"
password="password"
mail.smtp.starttls.enable="true"
mail.debug="true"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>

 

And i also move the java.mail.jar,java.mail.api.jar and activation.jar from /WEB-INF/lib to /JIRA/lib folder.

1 answer

0 votes
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 27, 2018
xiaodong shi
September 27, 2018

Thanks for your advice.

I followed the KB to configure JNDI location and move the mail.XX.jar.

Now, the error is "You must specify the server type". Looks like the SMTP server type is not defined correctly. can't identifed the issue.

xiaodong shi
September 27, 2018

Well, I restarted the jira instances serveral times and the mail works fine now. Maybe there's a cache in there.

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 27, 2018

Ohh ..good to hear.... the issue has been solved.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events