<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Configure mail service in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/configure-mail-service/m-p/129988#M35158</link>
    <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;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&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;notification.email.siteinvite=true&lt;BR /&gt;mail.host=smtps.exmaple.com&lt;BR /&gt;mail.port=465&lt;BR /&gt;mail.username=example@example.com&lt;BR /&gt;mail.password=***********&lt;BR /&gt;mail.encoding=UTF-8&lt;BR /&gt;mail.from.default=example@example.com&lt;BR /&gt;mail.from.enabled.=true&lt;BR /&gt;mail.protocol=smtps&lt;BR /&gt;mail.smtp.auth=true&lt;BR /&gt;mail.smtp.starttls.enable=true&lt;BR /&gt;mail.smtp.timeout=30000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Best regards &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 13:12:59 GMT</pubDate>
    <dc:creator>antonioparadiso</dc:creator>
    <dc:date>2022-06-14T13:12:59Z</dc:date>
    <item>
      <title>Configure mail service</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/configure-mail-service/m-p/129988#M35158</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;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&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;notification.email.siteinvite=true&lt;BR /&gt;mail.host=smtps.exmaple.com&lt;BR /&gt;mail.port=465&lt;BR /&gt;mail.username=example@example.com&lt;BR /&gt;mail.password=***********&lt;BR /&gt;mail.encoding=UTF-8&lt;BR /&gt;mail.from.default=example@example.com&lt;BR /&gt;mail.from.enabled.=true&lt;BR /&gt;mail.protocol=smtps&lt;BR /&gt;mail.smtp.auth=true&lt;BR /&gt;mail.smtp.starttls.enable=true&lt;BR /&gt;mail.smtp.timeout=30000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Best regards &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 13:12:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/configure-mail-service/m-p/129988#M35158</guid>
      <dc:creator>antonioparadiso</dc:creator>
      <dc:date>2022-06-14T13:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Configure mail service</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/configure-mail-service/m-p/129989#M35159</link>
      <description>&lt;P&gt;It should work as long as you have set the properties in alfresco-global.properties file correctly. Refer here:&amp;nbsp;&lt;A href="https://docs.alfresco.com/content-services/5.2/config/email/#outbound-smtp-configuration-properties" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/5.2/config/email/#outbound-smtp-configuration-properties&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also make sure you have not overriden those properties via JMX. JMX updates takes preference.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I also noticed, a "." (dot) character at the end of "mail.from.enabled.=true", It should be "mail.from.enabled=true"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Also be aware that &lt;STRONG&gt;"mail.from.enabled"&lt;/STRONG&gt; 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 "&lt;SPAN&gt;example@example.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;not allowed to send as user1@example.com;&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;so you must understand the implications of "&lt;SPAN&gt;mail.from.enabled&lt;/SPAN&gt;". See here for more info:&amp;nbsp;&lt;A href="https://docs.alfresco.com/content-services/latest/config/email/#outbound-smtp-configuration-properties" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/latest/config/email/#outbound-smtp-configuration-properties&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This config should be enough for outbound emails (based on your inputs):&lt;/P&gt;
&lt;PRE&gt;mail.host=&lt;SPAN&gt;smtps.exmaple.com&lt;/SPAN&gt;
mail.port=&lt;SPAN&gt;465&lt;/SPAN&gt;
mail.username=&lt;SPAN&gt;example@example.com&lt;/SPAN&gt;
mail.password=Password
mail.encoding=UTF-8
mail.from.default=&lt;SPAN&gt;example@example.com&lt;/SPAN&gt;
&lt;SPAN&gt;mail.protocol=smtps&lt;/SPAN&gt;&lt;BR /&gt;mail.smtp.auth=true&lt;BR /&gt;&lt;SPAN&gt;mail.smtp.starttls.enable=true&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;P&gt;Here is another sample config list that works locally for me:&lt;/P&gt;
&lt;PRE&gt;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&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jun 2022 19:33:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/configure-mail-service/m-p/129989#M35159</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2022-06-15T19:33:58Z</dc:date>
    </item>
  </channel>
</rss>

