Hello community
I installed alfresco Community 7.2 using Docker Compose on Ubuntu 20.04
I want to implement mail service for notifications. I followed the official documentation but found that I may not have the alfresco-global.properties file where to add the properties.
However, I have four alfresco-global.properties files located at:
/var/lib/docker/overlay2/615da5d5f405f76a9b1eca9143061ab4f42bb7c0221488544ea1ff5bdf61f6dd/diff/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
/var/lib/docker/overlay2/b2b206abb8d61b31245e997d9c528d84ae00ef0df98a6bba10b431c440d6392a/diff/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
/var/lib/docker/overlay2/502e766e1649c6a6c8bb73354bb77a8f6c126acd6d99fad635048a6a2a20b64c/diff/usr/local/tomcat/shared/classes/alfresco-global.properties
/var/lib/docker/overlay2/adce94ea8056b9973759739f4f56379fa832d1739e0c627f50bbc5d32643b25b/diff/usr/local/tomcat/shared/classes/alfresco-global.properties
The first two contain only:
# Disable load of sample site
#
sample.site.disabled=false
And the last two are empty. So I don't know in which files to put the properties
I followed this instruction from the hub ( https://hub.alfresco.com/t5/alfresco-content-services-forum/alfresco-community-6-2-docker-outbound-email-configuration/m-p/306366#M23829 ) where it's the docker-compose.yml file which contains the properties but my email is not sent. In the logs, I get the following errors after adding a user to a site or after assigning a workflow to a user:
2022-06-09 10:48:50,801 ERROR [action.executer.MailActionExecuter] [http-nio-8080-exec-7] Failed to send email to ***********@gmail.com : org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.example.com, 25; timeout -1; nested exception is: java.net.UnknownHostException: smtp.example.com. Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.example.com, 25; timeout -1; nested exception is: java.net.UnknownHostException: smtp.example.com; message exceptions (1) are:Failed message 1: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.example.com, 25; timeout -1; nested exception is: java.net.UnknownHostException: smtp.example.com
Here are the added properties:
-notification.email.siteinvite=true
-Dmail.host=smtp.gmail.com
-Dmail.port=465
-Dmail.username=***************@gmail.com
-Dmail.password=***************
-Dmail.protocol=smtps
-Dmail.smtps.starttls.enable=true
-Dmail.smtps.auth=true
-mail.smtps.starttls.enable=true
-mail.smtps.auth=true
Here are my constraints, what can I do?
Please help me to get out of this. Tanks.