Hi,
I'm trying to connect with my OVH email post box. I'm using the following configuration at server.xml:
<Resource name="mail/GmailSMTPServer"
auth="Container"
type="javax.mail.Session"
mail.smtp.host="ssl0.ovh.net"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.user="BN@xx.de"
password="PW"
mail.transport.protocol="smtp"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>
The error in my confluence dashboard is:
An error has occurred with sending the test email:
com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: 535 5.7.1 Authentication failed
I already tried different configurations but sadly none of them worked... Would be great if you could help me to fix this :)
Thanks and best regards
Jonas
Hey Jonas, welcome to the Community!
I noticed your port is set to 465 - this generally means SSL/TLS is enabled. Assuming that is indeed the case, you'll need to update that line as well:
mail.transport.protocol="smtps"
That lets Tomcat know to use smtps (secure) instead of the unencrypted protocol you'd normally expect over port 25.
You might have already seen the Configuring a Server for Outgoing Mail document - it provides steps for setting up an SMTP server through Confluence's web interface. I didn't see anything specific about your configuration that indicated you might need to do a manual setup, so it might be worth exploring backing out your changes to server.xml and configuring through the web interface instead. Just ensure the Use TLS option is enabled if you go through the web interface.
Cheers,
Daniel
Hi Daniel,
Thanks for you fast response! Everything works now - it was my mistake a typo. However the online configuration doesn't work (I think its still this bug: https://jira.atlassian.com/browse/CONFSERVER-43330) but I could configure everything successful with JNDI.
Regards
Jonas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.