TLS Host name verification | Community
Skip to main content
June 4, 2019
Solved

TLS Host name verification

  • June 4, 2019
  • 4 replies
  • 2294 views

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.
Best answer by user05162

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

user05162Adobe EmployeeAccepted solution
Adobe Employee
June 4, 2019

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.

aemcq5Author
June 4, 2019

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

Adobe Employee
June 4, 2019

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

aemcq5Author
June 4, 2019

Thanks much JaideepBrar​. Perfectly understandable.