I am trying to setup email configuration for Bamboo, same operation worked for confluence. But it always pop out same error.
Server.xml was modified ,and two email.jar was moved to required directory.
The mail settings you entered were not valid. Error thrown was: javax.naming.NameNotFoundException: Name [mail/SmtpServer] is not bound in this Context. Unable to find [mail].
I solved it ~ hah~
it turns out i don't need to add whole piece into server.xml, only the content in Resource tag is enough.
<Context path="/bamboo" docBase="${catalina.base}/atlassian-bamboo" reloadable="true">
<Resource name="mail/GmailSmtpServer"
auth="Container"
type="javax.mail.Session"
mail.smtp.host="smtp.gmail.com"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.user="<your-name>@gmail.com"
password="<your-pw>"
mail.smtp.starttls.enable="true"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>
</Context>
After putting the Resource stanza inside the existing Context tags, I also had to enable less secure app in gmail.
You can find out more here: https://support.google.com/accounts/answer/6010255?hl=en
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.