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?
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.
Hi @Dipti_Chauhan ,
You need to encrypt the values. You can do that using Crypto Support.
Please check the below link
Hope this helps!!
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)
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.