You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
the official guide says it could add smtp servers by Configuring a JNDI location, e.g. the jira one 's documentation is located at here, https://confluence.atlassian.com/adminjiraserver0904/configuring-an-smtp-mail-server-to-send-notifications-1188768602.html#ConfiguringanSMTPmailservertosendnotifications-ConfiguringaJNDIlocation
However, I found it hard to code it into the server.xml.
I found another solution that may add a new xml file, e.g. 'jira.xml', to the path of '/opt/atlassian/jira/conf/Catalina/localhost', which contain Context and Resources.
```
<Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false">
...
<Resource name="mail/JiraMailServer"
auth="Container"
type="javax.mail.Session"
mail.smtp.host="mail.yourcompany.com"
mail.smtp.port="25"
mail.transport.protocol="smtp"
mail.smtp.auth="true"
mail.smtp.user="jirauser"
password="mypassword"
/>
...
</Context>
```
But I still cannot make it succeed. the frontend UI still pops me out with NameNotFoundException: Name [mail/JiraMailServer] is not bound in this Context. Unable to find [mail].
What should I do to add some JNDI resources to jira deployed in kubernetes
thanks.