06-14-2022 09:12 AM
Hello community,
I have configured the alfresco-global.properties file so that I can send emails with my email address. After the change I restarted the server. Despite this, the emails go out with the address [email protected]. I paste the configuration made to the alfresco-global.properties file
notification.email.siteinvite=true
mail.host=smtps.exmaple.com
mail.port=465
[email protected]
mail.password=***********
mail.encoding=UTF-8
[email protected]
mail.from.enabled.=true
mail.protocol=smtps
mail.smtp.auth=true
mail.smtp.starttls.enable=true
mail.smtp.timeout=30000
In the above configuration I expect that the emails sent by Alfresco should go out with the address [email protected], but this does not happen. I hope some of you can give me the solution.
Best regards
Antonio
06-15-2022 03:33 PM
It should work as long as you have set the properties in alfresco-global.properties file correctly. Refer here: https://docs.alfresco.com/content-services/5.2/config/email/#outbound-smtp-configuration-properties
Also make sure you have not overriden those properties via JMX. JMX updates takes preference.
I also noticed, a "." (dot) character at the end of "mail.from.enabled.=true", It should be "mail.from.enabled=true"
Also be aware that "mail.from.enabled" property has some impacts on how the emails are sent. With this property enabled, system tries to send email based on the user who is trying to invite a user for example. STMP servers doesn't permit impersonating other users. And you may get error like "[email protected]
not allowed to send as [email protected];"
so you must understand the implications of "mail.from.enabled". See here for more info: https://docs.alfresco.com/content-services/latest/config/email/#outbound-smtp-configuration-properti...
This config should be enough for outbound emails (based on your inputs):
mail.host=smtps.exmaple.com mail.port=465 mail.username=[email protected] mail.password=Password mail.encoding=UTF-8 mail.from.default=[email protected] mail.protocol=smtps
mail.smtp.auth=true
mail.smtp.starttls.enable=true
Here is another sample config list that works locally for me:
mail.host=smtp.office365.com mail.port=25 mail.username=xxxxxxxxx mail.password=xxxxxxxxx mail.encoding=UTF-8 [email protected] mail.smtp.starttls.enable=true mail.smtp.auth=true
06-15-2022 03:33 PM
It should work as long as you have set the properties in alfresco-global.properties file correctly. Refer here: https://docs.alfresco.com/content-services/5.2/config/email/#outbound-smtp-configuration-properties
Also make sure you have not overriden those properties via JMX. JMX updates takes preference.
I also noticed, a "." (dot) character at the end of "mail.from.enabled.=true", It should be "mail.from.enabled=true"
Also be aware that "mail.from.enabled" property has some impacts on how the emails are sent. With this property enabled, system tries to send email based on the user who is trying to invite a user for example. STMP servers doesn't permit impersonating other users. And you may get error like "[email protected]
not allowed to send as [email protected];"
so you must understand the implications of "mail.from.enabled". See here for more info: https://docs.alfresco.com/content-services/latest/config/email/#outbound-smtp-configuration-properti...
This config should be enough for outbound emails (based on your inputs):
mail.host=smtps.exmaple.com mail.port=465 mail.username=[email protected] mail.password=Password mail.encoding=UTF-8 mail.from.default=[email protected] mail.protocol=smtps
mail.smtp.auth=true
mail.smtp.starttls.enable=true
Here is another sample config list that works locally for me:
mail.host=smtp.office365.com mail.port=25 mail.username=xxxxxxxxx mail.password=xxxxxxxxx mail.encoding=UTF-8 [email protected] mail.smtp.starttls.enable=true mail.smtp.auth=true
Explore our Alfresco products with the links below. Use labels to filter content by product module.