https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292008-07-02T21:03:17ZRedmineRedmine - Feature #1412: SMTP server config should be moved from environment.rbhttps://www.redmine.org/issues/1412?journal_id=36842008-07-02T21:03:17ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>I propose to move the mail settings to a file similar to database.yml (eg. email.yml), with a section for each environment (production, development ...).</p>
<p>It would like this:</p>
<pre>
production:
delivery_method: :smtp
smtp_settings:
address: smtp.somenet.foo
port: 25
domain: somenet.foo
authentication: :login
user_name: redmine@somenet.foo
password: redmine
perform_deliveries: true
development:
[...]
</pre>
<p>What do you think ?</p> Redmine - Feature #1412: SMTP server config should be moved from environment.rbhttps://www.redmine.org/issues/1412?journal_id=36872008-07-02T22:37:55ZEric Davis
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>I propose to move the mail settings to a file similar to database.yml (eg. email.yml), with a section for each environment (production, development ...).</p>
<p>What do you think ?</p>
</blockquote>
<p>That should work good. I've seen several projects use a format like that.</p> Redmine - Feature #1412: SMTP server config should be moved from environment.rbhttps://www.redmine.org/issues/1412?journal_id=36932008-07-03T08:48:37ZAnonymous
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote>
<p>I propose to move the mail settings to a file similar to database.yml (eg. email.yml), with a section for each environment (production, development ...).</p>
</blockquote>
<p>Hi Jean-Philippe, yes that would be fine.</p>
<p>Thanks</p>
<p>Russell</p> Redmine - Feature #1412: SMTP server config should be moved from environment.rbhttps://www.redmine.org/issues/1412?journal_id=37342008-07-04T20:52:49ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Target version</strong> set to <i>0.8</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed in <a class="changeset" title="Email delivery configuration moved to an unversioned YAML file (config/email.yml, see the sample ..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1625">r1625</a>.<br />SMTP settings should now be entered in config/email.yml (see the sample email.yml.example).</p> Redmine - Feature #1412: SMTP server config should be moved from environment.rbhttps://www.redmine.org/issues/1412?journal_id=41012008-07-28T08:38:51ZRoger Hunwicks
<ul></ul><p>It took me a while to figure out how to get Redmine to send emails using an internal SMTP server that doesn't require authentication - Google turned up some settings for ActionMailer that didn't work - so I thought I would document it here in case it is useful for anyone else.</p>
<p>If you are getting "authentication not enabled" when you try and send a test email, you need to configure your email.yml like:<br /><pre>
production:
delivery_method: :smtp
smtp_settings:
address: mailserver.domain.tld
port: 25
domain: thisserver.domain.tld
</pre></p>
<p>I.e. remove the lines relating to authentication, user_name and password.</p> Redmine - Feature #1412: SMTP server config should be moved from environment.rbhttps://www.redmine.org/issues/1412?journal_id=41022008-07-28T09:20:44ZAnonymous
<ul></ul><p>Roger Hunwicks wrote:</p>
<blockquote>
<p>It took me a while to figure out how to get Redmine to send emails using an internal SMTP server that doesn't require authentication - Google turned up some settings for ActionMailer that didn't work - so I thought I would document it here in case it is useful for anyone else.</p>
<p>If you are getting "authentication not enabled" when you try and send a test email, you need to configure your email.yml like:<br />[...]</p>
<p>I.e. remove the lines relating to authentication, user_name and password.</p>
</blockquote>
<p>Took me a while to find this too. For non-ruby users, things like this do need documenting somewhere.</p>
<p>Cheers</p>
<p>Russell</p> Redmine - Feature #1412: SMTP server config should be moved from environment.rbhttps://www.redmine.org/issues/1412?journal_id=70032009-01-30T01:18:14ZRyan Macaluso
<ul></ul><p>I gave up on using gmail as SMTP server and used this method to use the IIS SMTP server. I also had to give access in IIS for my computer (acting as the server) to relay email and then notifications worked.</p>
<p>I am so glad I found this solution!!!</p>
<p>Thanks,<br />Ryan</p>