We wanted to overwrite com.day.cq.mailer.DefaultMailService attributes and added and deployed this as run mode configuration xml but as soon as we add this configuration under /apps/custom-path, workflow email stopped triggering and when we delete it from custom-path, it start working again.
here is what we have in com.day.cq.mailer.DefaultMailService.xml
Also noticed, DefaultMailService OSGI conguration from system console screen is loading value from our custom path but as soon as we update it or click save , it is converting DefaultMailService node type to nt:file from sling:OsgiConfig where all the attributes are stored under jcr:data node value of binary data type.
Anything wrong with xml or how we can make it work?
I think I am following Configuring participant e-mail notification .In the mean time, I removed DefaultMailService from custom path and tried to update from address from OSGI console (which is now coming from OOB config under /system/config) but it does not generate any workflow email if I update from address to anything which is not in adobecqms domain.
For example: Email will trigger for from address= "email@example.com" but will not trigger for "firstname.lastname@example.org". it was very strange and looks like bug or some kind of cross validation happening behind the scene.