TLS Host name verification | Community
Skip to main content
Level 2
Jun 4, 2019 1:02 PM UTC
Solved

TLS Host name verification

The client is using AEM 6.4 SP2. The corporate mail server uses TLS. hence, in the Day CQ Mail Service, the TLS has been enabled.

The corporate mail server also requires that the mail sender turn off the hostname verification. Is there any way, the Day CQ Mail Service can turn off the hostname verification?

The alternative would be to write a custom "send mail" code that has the hostname verification turned off. Of course, the first preference would be to use the out of of box Day CQ Mail Service instead.

Thanks very much for reviewing my question in this post!!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
user05162Accepted solution
Employee
Jun 4, 2019 1:31 PM UTC

I checked the code for default mail service and it just reads the options available at "Day CQ Mail Service" and process the email. As far as I can check, there is no option to disable hostname verification and you have to write a custom mail service.

4 replies

aemcq5Author
Level 2
Jun 4, 2019 5:55 PM UTC

Thanks much JaideepBrar​. Perfectly understandable.

Translate
Employee
Jun 4, 2019 5:35 PM UTC

Rajnish, It's Adobe internal code and only available for Adobe employees.

Translate
aemcq5Author
Level 2
Jun 4, 2019 2:20 PM UTC

JaideepBrar​, much appreciate responding to your quick response. I would agree with your rationale that if the implementation does not have any option (to turn on/off hostname verification), it does not implement it. May I ask where I could view the code for "com.day.cq.mailer.DefaultMailService" implementation? Thanks again

Translate
user05162Accepted solution
Employee
Jun 4, 2019 1:31 PM UTC

I checked the code for default mail service and it just reads the options available at "Day CQ Mail Service" and process the email. As far as I can check, there is no option to disable hostname verification and you have to write a custom mail service.

Translate