Forums

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

OVH Email config is not working

Jonas Weiß June 27, 2019

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

1 answer

1 accepted

0 votes
Answer accepted
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 28, 2019

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

Jonas Weiß June 28, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events