https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-07-04T22:02:49ZRedmineRedmine - Feature #5814: Hard time configuring email notifications - Must issue a STARTTLS command first. https://www.redmine.org/issues/5814?journal_id=179562010-07-04T22:02:49ZLeonardo De Araujo
<ul></ul><p>Forgot to mention:</p>
<p>Redmine 0.9.5<br />on WEBrick 1.3.1<br />ruby 1.8.7<br />on Windows<br />mysql</p>
<p>Thanks</p>
<p>Leonardo</p> Redmine - Feature #5814: Hard time configuring email notifications - Must issue a STARTTLS command first. https://www.redmine.org/issues/5814?journal_id=179572010-07-05T04:51:03ZFelix Schäfer
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Invalid</i></li></ul><ol>
<li>Please use the forums for support requests, the bugtracker is for bugs and feature requests only,</li>
<li>Please <em>please</em> put anything you paste from config files or logs in <code>< pre> < /pre></code> tags (well, minus the spaces I put in there for them not to trigger) for legibility,</li>
<li>I haven't read through the whole thing because it's too hard without proper formatting, but see these instructions on how to <a href="http://redmineblog.com/articles/setup-redmine-to-send-email-using-gmail/" class="external">configure redmine to use gmail for outgoing emails</a>, and from what I've seen you have begun meddling at places you shouldn't, stick to modifying <code>email.yml</code> and take out any other modifications you might have made in your previous process.</li>
</ol> Redmine - Feature #5814: Hard time configuring email notifications - Must issue a STARTTLS command first. https://www.redmine.org/issues/5814?journal_id=182002010-07-11T00:11:28ZJoël Lamotte
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>Hi!</p>
<p>I have exactly the same problem (google app + "Must issue a STARTTLS command first." issue) and I'm a newcommer from TRAC to RedMine (actually reviewing it for potential migration of a big project of mine).</p>
<p>Now reading this answer is not helpfull at all Felix. You should know that not everybody asking for help will know about redmine-specific text formating (ok it's common but that's not the point) and can forget about it if they knew.</p>
<p>About 1. , I don't understand : it really looks like a bug, because I don't find any way to make it work. The pointed page don't help at all. It just don't work. I got the error reported by Leonardo and I tried variants based on discussions on this very forum, without any success. I'm not sure what's the origin of the problem but it's serious matter in my case.</p>
<p>So please, can you take a look to this issue? It really bothers me. And it seem I'm not the only one.</p>
<p>(is it normal that i'm allowed to modify ticket status while I'm a newcomer?)</p> Redmine - Feature #5814: Hard time configuring email notifications - Must issue a STARTTLS command first. https://www.redmine.org/issues/5814?journal_id=182012010-07-11T00:12:27ZJoël Lamotte
<ul></ul><p>Joël Lamotte wrote:</p>
<blockquote>
<p>Hi!</p>
<p>I have exactly the same problem (google app + "Must issue a STARTTLS command first." issue) and I'm a newcommer from TRAC to RedMine (actually reviewing it for potential migration of a big project of mine).</p>
<p>Now reading this answer is not helpfull at all Felix. You should know that not everybody asking for help will know about redmine-specific text formating (ok it's common but that's not the point) and can forget about it if they knew.</p>
<p>About 1. , I don't understand : it really looks like a bug, because I don't find any way to make it work. The pointed page don't help at all. It just don't work. I got the error reported by Leonardo and I tried variants based on discussions on this very forum, without any success. I'm not sure what's the origin of the problem but it's serious matter in my case.</p>
<p>So please, can you take a look to this issue? It really bothers me. And it seem I'm not the only one.</p>
<p>(is it normal that i'm allowed to modify ticket status while I'm a newcomer?)</p>
</blockquote>
<p>And I forgot : this should be a Bug, not a Feature. I can't change it mysellf.</p> Redmine - Feature #5814: Hard time configuring email notifications - Must issue a STARTTLS command first. https://www.redmine.org/issues/5814?journal_id=182082010-07-11T11:10:45ZFelix Schäfer
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>Joël Lamotte wrote:</p>
<blockquote>
<p>Now reading this answer is not helpfull at all Felix. You should know that not everybody asking for help will know about redmine-specific text formating (ok it's common but that's not the point) and can forget about it if they knew.</p>
</blockquote>
<p>There's a text formatting help, and just asking/pointing it out usually has the result that this part of the answer is readily ignored.</p>
<blockquote>
<p>About 1. , I don't understand : it really looks like a bug, because I don't find any way to make it work. The pointed page don't help at all. It just don't work. I got the error reported by Leonardo and I tried variants based on discussions on this very forum, without any success. I'm not sure what's the origin of the problem but it's serious matter in my case.</p>
<p>So please, can you take a look to this issue? It really bothers me. And it seem I'm not the only one.</p>
</blockquote>
<p>If it's a bug, it's a bug in ActionMailer, which is part of rails, not in redmine, so still a support request. I don't know why gmail smtp configuration is so complex, it seems it's the only service that generates so much problems, but the best help you will find is with rails, see <a href="http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration-for-gmail" class="external">the ActionMailer configuration example for GMail</a> , though IIRC the plugin isn't needed anymore in recent ruby and rails versions as TLS will automatically be used if necessary.</p>
<p>Again, this is a configuration problem, please use the forums for further assistance.</p> Redmine - Feature #5814: Hard time configuring email notifications - Must issue a STARTTLS command first. https://www.redmine.org/issues/5814?journal_id=185602010-07-21T13:21:24ZJoël Lamotte
<ul></ul><p>Hi,</p>
<p>I'm getting back to this issue because I found a solution that works for me and I think should be added to the wiki page.</p>
<p>I made a "last" search on google to try to find a solution to this problem (someone suggest to install a smtp server for redmine but I find it a bit overkill if it's just for this) and I found this : <a class="external" href="http://davidebenini.it/2009/06/25/rails-233-ruby-187-gmail-smtp-settings/">http://davidebenini.it/2009/06/25/rails-233-ruby-187-gmail-smtp-settings/</a></p>
<p>The important part being :</p>
<p>"The most important line is enable_starttls_auto => true."</p>
<p>So just to check, I edited my redmine email config file and added "enable_starttls_auto: true" to get similar code :</p>
<pre>
production:
delivery_method: :smtp
smtp_settings:
tls: true
enable_starttls_auto: true
address: "smtp.gmail.com"
port: '587'
domain: "smtp.gmail.com"
authentication: :plain
user_name: "your_email@gmail.com"
password: "your_password"
</pre>
<p>And then fired a test email using a google app account.</p>
<p>It worked.</p>
<p>So maybe it's just that line that is missing in the documentation (specific to google apps) and that would really help other people.<br />Should I add it myself to the wiki page? ( this one <a class="external" href="http://redmineblog.com/articles/setup-redmine-to-send-email-using-gmail/">http://redmineblog.com/articles/setup-redmine-to-send-email-using-gmail/</a> )<br />Is it really a solution that works for everyone?</p>
<p>Anyway I'm happy I fixed the last showstopper for more serious use of redmine for my projects :)</p> Redmine - Feature #5814: Hard time configuring email notifications - Must issue a STARTTLS command first. https://www.redmine.org/issues/5814?journal_id=185622010-07-21T13:53:35ZFelix Schäfer
<ul></ul><p>Joël Lamotte wrote:</p>
<blockquote>
<p>Should I add it myself to the wiki page?</p>
</blockquote>
<p>Yes.</p>
<blockquote>
<p>( this one <a class="external" href="http://redmineblog.com/articles/setup-redmine-to-send-email-using-gmail/">http://redmineblog.com/articles/setup-redmine-to-send-email-using-gmail/</a> )</p>
</blockquote>
<p>No, that is an article, but feel free to add it to <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/EmailConfiguration">EmailConfiguration</a>, maybe even in a specific subparagraph for "gmail and other TLS-requiring SMTP servers".</p>
<blockquote>
<p>Is it really a solution that works for everyone?</p>
</blockquote>
<p>No, IIRC that will only work with "recent" enough ruby and rails versions (1.8.7 patchset 2xx and 2.3.5),</p> Redmine - Feature #5814: Hard time configuring email notifications - Must issue a STARTTLS command first. https://www.redmine.org/issues/5814?journal_id=185662010-07-21T15:35:00ZJoël Lamotte
<ul></ul><p>Thanks, I added a subparagraph to the wiki page.</p>