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 admin@alfresco.com. I paste the configuration made to the alfresco-global.properties file
notification.email.siteinvite=true
mail.host=smtps.exmaple.com
mail.port=465
mail.username=example@example.com
mail.password=***********
mail.encoding=UTF-8
mail.from.default=example@example.com
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 example@example.com, 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 "example@example.com
not allowed to send as user1@example.com;"
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=example@example.com mail.password=Password mail.encoding=UTF-8 mail.from.default=example@example.com 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 mail.from.default=admin@example.com 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 "example@example.com
not allowed to send as user1@example.com;"
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=example@example.com mail.password=Password mail.encoding=UTF-8 mail.from.default=example@example.com 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 mail.from.default=admin@example.com 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.