Expand my Community achievements bar.

SOLVED

TLS Host name verification

Avatar

Level 2

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!!

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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.

View solution in original post

4 Replies

Avatar

Correct answer by
Employee Advisor

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.

Avatar

Level 2

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

Avatar

Employee Advisor

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

Avatar

Level 2

Thanks much JaideepBrar​. Perfectly understandable.