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
Solved! Go to Solution.
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
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
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.