Issue with CQ Mail service | Community
Skip to main content
Dipti_Chauhan
Community Advisor
Community Advisor
September 15, 2021

Issue with CQ Mail service

  • September 15, 2021
  • 4 replies
  • 1876 views

Hello

   We are getting issue with SMTP configuration. We tried debugging it and found these logs

DEBUG SMTP: protocolConnect returning false, host=[HOST], user=crx, password=<null>

 

We are passing username n password on cq mail service n it seems it not picking those username/pwd

 

Any idea what can be the issue?

 

Thanks

Dipti

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Asutosh_Jena_
Community Advisor
Community Advisor
September 15, 2021

Hi @dipti_chauhan 

 

I believe you are using com.day.cq.mailer.DefaultMailService service and providing the configurations.

If you see it's not picking the correct value, can you please check if there is a default config available under /apps/system/config

 

Please ensure the correct run mode is picked while providing these configurations.

 

Apart from these I don't see any other reason these values will not be picked.

 

Thanks!

Dipti_Chauhan
Community Advisor
Community Advisor
September 15, 2021

Hi @asutosh_jena_ 

     Its only username n pwd , all others configs are getting picked.

 

Thanks

Dipti

Asutosh_Jena_
Community Advisor
Community Advisor
September 15, 2021

It should be. If not can you encrypt using AEM Crypto service and then add it?

 

Thanks!

Adobe Employee
September 15, 2021

Hi @dipti_chauhan ,

 

You need to encrypt the values. You can do that using Crypto Support.

Please check the below link

https://bimmisoi.blogspot.com/2020/08/crypto-support-in-aem.html

 

Hope this helps!!
Thanks

Vijayalakshmi_S
Level 10
September 15, 2021

Hi @dipti_chauhan,

Per the config property description, smtp.password can be either plain text or encrypted using crypto support. 

 

If you can try in any lower environments/in local, amend the config by being in Felix console and see if all the values are picked this way.

Example :  you can enable "Debug Email",  disable if you have already or try changing the From address (just for testing)

 

If this didn't work, try to restart the OSGi component - com.day.cq.mailer.DefaultMailService and/or bundle - Day Communique 5 Mailer(com.day.cq.cq-mailer)

Dipti_Chauhan
Community Advisor
Community Advisor
September 15, 2021

Hi All

 thanks for your response.

This got resolved.We had issue with port as outbound was blocked for the port and due to connectivity issue username /pwd was not getting printed.weird but this was the case.After resolving port issue these started printed in logs.

 

Thanks

Dipti