<?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: Nuxeo Connexion to SMTP Google Mail - GMail in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326838#M13839</link>
    <description>&lt;P&gt;Yes I test with my company mail account.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2011 10:20:38 GMT</pubDate>
    <dc:creator>Benjamin_Jalon1</dc:creator>
    <dc:date>2011-12-21T10:20:38Z</dc:date>
    <item>
      <title>Nuxeo Connexion to SMTP Google Mail - GMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326832#M13833</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;This post is a copy/paste of a community forum question I posted as I don't know the better place to ask. Sorry for double posting if this is raising problems to anyone.&lt;/P&gt;
&lt;P&gt;I juste gave a new try to Nuxeo 5.5 using a fresh install on ubuntu server LTS and I'm not succeeding in configurating mail service (we use GoogleMail). I have seen a lot of related post and according to them my configuration seems to be correct (at least to me...):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;nuxeo.notification.eMailSubjectPrefix="[Nuxeo]"
mail.smtp.host=smtp.gmail.com
mail.smtp.port=587
mail.smtp.usetls=true
mail.smtp.auth=true
mail.smtp.username=myuser@mycompany.com
mail.smtp.password=myuserpassword
mail.from=myuser@mycompany.com
mailservice.user=myuser@mycompany.com
mailservice.password=myuserpassword
mail.store.protocol=imap
mail.transport.protocol=smtp
mail.user=myuser@mycompany.com
mail.debug=true
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note: I have used this configuration on a mail client so I'm sure the credentials and settings are correct.&lt;/P&gt;
&lt;P&gt;When I try to send an email notification (I use the email feature on one document to test it) I got the following warning in the /var/log/nuxeo/console.log (Is there somewhere else to check for logs (I have nothing in mail.log, syslog or any other nuxeo.log) (I have activated the mail.debug = true option)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2011-12-20 11:49:54,252 WARN [org.nuxeo.ecm.platform.ec.notification.NotificationEventLis tener] Failed to send notification email to 'recipient@company.com': javax.mail.AuthenticationFailedException: null
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It seems to be a warning only but the e mail is never delivered.&lt;/P&gt;
&lt;P&gt;Could this be an email settings problem or a java problem or whatsoever ? I really don't know how to troubleshoot this&lt;/P&gt;
&lt;P&gt;Many thanks in advance&lt;/P&gt;
&lt;P&gt;Snarf&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2011 13:56:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326832#M13833</guid>
      <dc:creator>snarf77_</dc:creator>
      <dc:date>2011-12-20T13:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Connexion to SMTP Google Mail - GMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326833#M13834</link>
      <description>&lt;P&gt;In my case that works I have this configuration:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;mail.from=no-reply@nuxeo.com
#mail.smtp.usetls=false
mail.smtp.usetls=true
#mail.smtp.host=localhost
mail.smtp.host=smtp.gmail.com
#mail.smtp.port=25
mail.smtp.port=587
#mail.smtp.username=anonymous
mail.smtp.username=bjalon@nuxeo.com
#mail.smtp.auth=false
mail.smtp.auth=true
#mail.smtp.password=password
mail.smtp.password= ... 
#mail.debug=false
mail.debug=true
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I test it on 5.4.2, 5.5 and it works.&lt;/P&gt;
&lt;P&gt;About the password, I had a problem that must be fixed since 5.4.3:
&lt;A href="https://jira.nuxeo.com/browse/NXBT-311" target="test_blank"&gt;https://jira.nuxeo.com/browse/NXBT-311&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;But maybe you have other special character not well escaped. If this is the case you can create a ticket into our JIRA.&lt;/P&gt;
&lt;P&gt;[Edit] bug is still here so that may be your problem... So to escape &amp;amp; you must replace it into your nuxeo.conf by that&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;amp;amp;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can follow the bug here:
&lt;A href="https://jira.nuxeo.com/browse/NXP-5470" target="test_blank"&gt;https://jira.nuxeo.com/browse/NXP-5470&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Once, I had a trouble like you since I change my password.&lt;/P&gt;
&lt;P&gt;I see &lt;A href="http://www.google.com/support/forum/p/gmail/thread?tid=38d3716c704a4fdb&amp;amp;hl=en"&gt;here&lt;/A&gt; to use this url:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.google.com/accounts/DisplayUnlockCaptcha" target="test_blank"&gt;https://www.google.com/accounts/DisplayUnlockCaptcha&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Maybe it will work for you.&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;If you continue to have trouble maybe you can look into your logs sometimes messages are explicit. I let you looking this answer:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://answers.nuxeo.com/questions/950/mail-debug-option" target="test_blank"&gt;http://answers.nuxeo.com/questions/950/mail-debug-option&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;logs are into $NUXEO/log/server.log&lt;/P&gt;
&lt;P&gt;For developers, I just want to explain that we are using the standard java mail library and you can look into our code that mail sends is made like that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;InitialContext ic = new InitialContext();
javax.mail.Session session = getSession();
(Session) ic.lookup("java:comp/env/Mail");

MimeMessage msg = new MimeMessage(session);

msg.setFrom(new InternetAddress(session.getProperty("mail.from")));
Object to = "bjalon@nuxeo.com";
msg.setRecipients(javax.mail.Message.RecipientType.TO,
        InternetAddress.parse((String) to, false));

... Build your message ...
javax.mail.Transport.send(msg);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Dec 2011 14:29:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326833#M13834</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2011-12-20T14:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Connexion to SMTP Google Mail - GMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326834#M13835</link>
      <description>&lt;P&gt;Many thanks for answering.&lt;/P&gt;
&lt;P&gt;Unfortunately I have no "&amp;amp;" character in the username I supplied.
[edit] nor password [/edit]&lt;/P&gt;
&lt;P&gt;I have a dash (-) in the e mail of the nuxeo user I want to send the email but I don't think this could be an issue.&lt;/P&gt;
&lt;P&gt;I have a moment ago seen some post related to "external mail user" so I must say that the username used for authenticate against gmail is not a user declared in nuxeo (but the e mail recipient is of course a nuxeo user). Could this be a cause ?&lt;/P&gt;
&lt;P&gt;At last, can anyone help me to understand the ajax fault and how to investigate that ?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Snarf&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2011 15:10:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326834#M13835</guid>
      <dc:creator>snarf77_</dc:creator>
      <dc:date>2011-12-20T15:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Connexion to SMTP Google Mail - GMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326835#M13836</link>
      <description>&lt;P&gt;No there is no link between the Nuxeo users and the external mail user.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2011 16:55:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326835#M13836</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2011-12-20T16:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Connexion to SMTP Google Mail - GMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326836#M13837</link>
      <description>&lt;P&gt;for ajax fault create another question...&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2011 20:23:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326836#M13837</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2011-12-20T20:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Connexion to SMTP Google Mail - GMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326837#M13838</link>
      <description>&lt;P&gt;I finally succeed in making it work if I use a credential like user@gmail.com.
Using user@mycompany.com (with mycompany using gmail server for email service) it failed each time.&lt;/P&gt;
&lt;P&gt;bjalon:
Do you use bjalon@nuxeo.com as user to authenticate or is it only for the example ? as it seems for me to be the main root cause.
it seems I will have to create a fake googlemail account just for nuxeo server to authenticate in my case.&lt;/P&gt;
&lt;P&gt;Is there some known issues related to entreprise googlemail service against classical gmail account ?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Snarf&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2011 09:30:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326837#M13838</guid>
      <dc:creator>snarf77_</dc:creator>
      <dc:date>2011-12-21T09:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Connexion to SMTP Google Mail - GMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326838#M13839</link>
      <description>&lt;P&gt;Yes I test with my company mail account.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2011 10:20:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326838#M13839</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2011-12-21T10:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Connexion to SMTP Google Mail - GMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326839#M13840</link>
      <description>&lt;P&gt;Yes I did that and the password can't be more simple ...&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2011 11:00:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326839#M13840</guid>
      <dc:creator>snarf77_</dc:creator>
      <dc:date>2011-12-21T11:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Connexion to SMTP Google Mail - GMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326840#M13841</link>
      <description>&lt;P&gt;I had a trouble like you since I change my password.&lt;/P&gt;
&lt;P&gt;I see &lt;A href="http://www.google.com/support/forum/p/gmail/thread?tid=38d3716c704a4fdb&amp;amp;hl=en"&gt;here&lt;/A&gt; to use this url:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.google.com/accounts/DisplayUnlockCaptcha" target="test_blank"&gt;https://www.google.com/accounts/DisplayUnlockCaptcha&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Maybe it will work for you.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2012 11:14:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326840#M13841</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-01-01T11:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo Connexion to SMTP Google Mail - GMail</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326841#M13842</link>
      <description>&lt;P&gt;I tried all the ways mentioned above but still cannot make it work to send out email notification.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2013 11:04:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-connexion-to-smtp-google-mail-gmail/m-p/326841#M13842</guid>
      <dc:creator>Tùng_Aroma</dc:creator>
      <dc:date>2013-11-29T11:04:12Z</dc:date>
    </item>
  </channel>
</rss>

