<?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 Re: Only admin can send email to Alfresco in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296124#M249254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That sounds very much like index + localization issues. When a node is created it is inherently assigned a "locale" based on the locale of the current user. This locale may be used during SOLR indexing to determine how property values are indexed, e.g. how tokens are built etc. During searching, the query will use the current user's locale to handle tokens, which may be different from the locale the node was indexed with (due to its locale assignment). This can have an impact on text similarity queries like your test cases with / without the use of wildcards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you want to look for an exact match it is always recommended to use&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TYPE:"cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson" AND =cm:email:"&lt;/SPAN&gt;&lt;A class="" href="mailto:myaccount@mymaildomain.com" rel="nofollow noopener noreferrer"&gt;myaccount@mymaildomain.com"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- quotation marks simplify text search by avoiding encoding for most characters (except quotation marks themselves)&lt;/P&gt;&lt;P&gt;- =my&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rop:value is the expression to look for exact matches - just my&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rop:value or @my&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rop:value are always locale-sensitive term / phrase queries&lt;/P&gt;&lt;P&gt;- the @ in @my&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rop:value is absolutely superflous in FTS query syntax - it is a remainder from the underlying Lucene query syntax and mostly relevant for backwards compatibility for Lucene queries before Alfresco introduced FTS (somewhere in Alfresco 2.x or 3.0 years ago). Unfortunately a lot of documentation / internet examples still include this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2016 11:59:14 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2016-12-15T11:59:14Z</dc:date>
    <item>
      <title>Only admin can send email to Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296119#M249249</link>
      <description>I set up a test user 'test' with email myaccount@mymaildomain.com. 'test' is in the EMAIL_CONTRIBUTORS group and also has writing access to the folder the mail is sent to.Anyway, when I send an email from the above account, mail delivery fails: "554 The user 'anonymous' is not in the email contribut</description>
      <pubDate>Wed, 14 Dec 2016 12:21:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296119#M249249</guid>
      <dc:creator>heike</dc:creator>
      <dc:date>2016-12-14T12:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Only admin can send email to Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296120#M249250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have configured alfresco as inbound email server. Are you trying to send email from Alfresco? Yes then you need to configure it for outbound emails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/5.0/concepts/email-outboundsmtp-props.html" title="http://docs.alfresco.com/5.0/concepts/email-outboundsmtp-props.html" rel="nofollow noopener noreferrer"&gt;OutboundSMTP configuration properties | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 13:06:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296120#M249250</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2016-12-14T13:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Only admin can send email to Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296121#M249251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe he is really trying to setup Alfresco as an inbound SMTP server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I cannot see what you did wrong or missed. You are right that the user should have been identified by the email adress instead of using the anonymous sender. As long as you have not changed the mail.server.allowed.senders or mail.server.blocked.senders from the default values I cannot see a cause for this.&lt;/P&gt;&lt;P&gt;You may want to set the logger for org.alfresco.email.server.EmailServiceImpl to DEBUG to log any messages about issues resolving the user from the address.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 13:39:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296121#M249251</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-12-14T13:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Only admin can send email to Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296122#M249252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Axel Faust&lt;/B&gt;‌, you are right, I am trying to set up Alfresco as an inbound SMTP server. I use the default values for mail.server.allowed.senders and mail.server.blocked.senders. I set the logger for org.alfresco.email.server.EmailServiceImpl to debug as you suggested, this is the result:&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;2016-12-15 10:11:21,201 DEBUG [...] getUsername from: myaccount@mymaildomain.com&lt;BR /&gt;2016-12-15 10:11:21,286 DEBUG [...] unable to find user for from: myaccount@mymaildomain.com,trying message.from next&lt;BR /&gt;2016-12-15 10:11:21,286 DEBUG [...] getUsername from: myaccount@mymaildomain.com&lt;BR /&gt;2016-12-15 10:11:21,313 DEBUG [...] userName = : null&lt;BR /&gt;2016-12-15 10:11:21,314 DEBUG [...] unable to find user for from - return anonymous:&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I looked at the source code for EmailServiceImpl, there the method getUsername is used to identify the user from the email address via the query: TYPE:cm\&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson +@cm\:email:&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myaccount@mymaildomain.com" rel="nofollow noopener noreferrer"&gt;myaccount@mymaildomain.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try this query in the node browser, I find user test. Somehow, getUsername doesn't find it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 09:51:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296122#M249252</guid>
      <dc:creator>heike</dc:creator>
      <dc:date>2016-12-15T09:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Only admin can send email to Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296123#M249253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Funnily enough, if I try the query: TYPE:cm\&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson + @cm\:email:&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:adminaccount@whatever.com" rel="nofollow noopener noreferrer"&gt;adminaccount@whatever.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;where &lt;A href="mailto:adminaccount@whatever.com" rel="nofollow noopener noreferrer"&gt;adminaccount@whatever.com&lt;/A&gt; is admin's email, the node browser doesn't find the node. Although it does find the node with the query: TYPE:cm\&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson + @cm\:email:adminaccount*&lt;/P&gt;&lt;P&gt;When user test and user admin both have the same email address &lt;A href="mailto:myaccount@mymaildomain.com," rel="nofollow noopener noreferrer"&gt;myaccount@mymaildomain.com,&lt;/A&gt; the query&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TYPE:cm\&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson + @cm\:email:&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:myaccount@mymaildomain.com" rel="nofollow noopener noreferrer"&gt;myaccount@mymaildomain.com&lt;/A&gt;&lt;SPAN&gt; finds only test, not admin, although&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TYPE:cm\&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson + @cm\:email:myaccount* finds both.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 11:34:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296123#M249253</guid>
      <dc:creator>heike</dc:creator>
      <dc:date>2016-12-15T11:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Only admin can send email to Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296124#M249254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That sounds very much like index + localization issues. When a node is created it is inherently assigned a "locale" based on the locale of the current user. This locale may be used during SOLR indexing to determine how property values are indexed, e.g. how tokens are built etc. During searching, the query will use the current user's locale to handle tokens, which may be different from the locale the node was indexed with (due to its locale assignment). This can have an impact on text similarity queries like your test cases with / without the use of wildcards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you want to look for an exact match it is always recommended to use&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TYPE:"cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson" AND =cm:email:"&lt;/SPAN&gt;&lt;A class="" href="mailto:myaccount@mymaildomain.com" rel="nofollow noopener noreferrer"&gt;myaccount@mymaildomain.com"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- quotation marks simplify text search by avoiding encoding for most characters (except quotation marks themselves)&lt;/P&gt;&lt;P&gt;- =my&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rop:value is the expression to look for exact matches - just my&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rop:value or @my&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rop:value are always locale-sensitive term / phrase queries&lt;/P&gt;&lt;P&gt;- the @ in @my&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rop:value is absolutely superflous in FTS query syntax - it is a remainder from the underlying Lucene query syntax and mostly relevant for backwards compatibility for Lucene queries before Alfresco introduced FTS (somewhere in Alfresco 2.x or 3.0 years ago). Unfortunately a lot of documentation / internet examples still include this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 11:59:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296124#M249254</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-12-15T11:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Only admin can send email to Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296125#M249255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the source code here: &lt;A class="link-titled" href="https://github.com/Alfresco/community-edition/blob/master/projects/repository/source/java/org/alfresco/email/server/EmailServiceImpl.java" title="https://github.com/Alfresco/community-edition/blob/master/projects/repository/source/java/org/alfresco/email/server/EmailServiceImpl.java" rel="nofollow noopener noreferrer"&gt;EmailServiceImpl.java&lt;/A&gt;, there I found the query used in the getUsername method (though with quotation marks, I admit). I just used the node browser to see what the query results are, but I obviously can't change the query in EmailServiceImpl. With the queries you suggest the node browser finds everything as expected...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 12:44:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296125#M249255</guid>
      <dc:creator>heike</dc:creator>
      <dc:date>2016-12-15T12:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Only admin can send email to Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296126#M249256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may be that the service is running in a different default locale then the user was created in. Since the admin user was created with the system locale that would explain why it works with that user.&lt;/P&gt;&lt;P&gt;It would be great if you could create a ticket in the Alfresco JIRA system since this is likely a bug in core Alfresco and the query should really be updated (if only to support transactional queries in stead of index queries).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case you might be able to fix the problem by correcting the locale of the user. If you view the cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;erson object for the user in the node browser you should see a sys:locale property. Simply set that to the same value as the admin user (e.g. via JavaScript Console).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 12:52:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296126#M249256</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-12-15T12:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Only admin can send email to Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296127#M249257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, changing test user's locale did the trick. Thank you so much for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(By the way: I installed Alfresco using a locale different from "en_US", never changed anything, so Alfresco is running in that locale ever since. Anyway, admin is the only user whose sys:locale property corresponds, all other users (like existing sample users abeecher etc. or new users created via Share) have locale "en_US" - although my browser's locale is the same as Alfresco's. So I'll have to find a way to make sure that all users supposed to be able to send emails to Alfresco have the same locale the server is running in.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 05:49:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296127#M249257</guid>
      <dc:creator>heike</dc:creator>
      <dc:date>2016-12-16T05:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Only admin can send email to Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296128#M249258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same problem as &lt;A __default_attr="145022" __jive_macro_name="user" _jive_internal="true" class="jive_macro jive_macro_user link-titled" href="https://community.alfresco.com/people/heike" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp; and your tip also did the trick for me.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 01:31:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/only-admin-can-send-email-to-alfresco/m-p/296128#M249258</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-01-19T01:31:20Z</dc:date>
    </item>
  </channel>
</rss>

