<?xml version="1.0" encoding="UTF-8"?>
<issue>
  <id>3588</id>
  <project name="Redmine" id="1"/>
  <tracker name="Defect" id="1"/>
  <status name="Closed" id="5"/>
  <priority name="Normal" id="4"/>
  <author name="Jim Keller" id="5325"/>
  <category name="Email notifications" id="9"/>
  <subject>test email works, notifications do not</subject>
  <description>Just upgraded from 0.8-stable to trunk revision 2806. email.yml appears to be correct (it is below), and test emails from the admin panel go through correctly. However, notifications seem to have stopped working  (e.g. on issue add/issue update). I have confirmed that the notification settings are correct and have tried editing the watchlist to no avail. My environment info is below. The notifications were ok before the upgrade.

Redmine: r2806
Ruby: 1.8.7.72_1,1
Rails: 2.2.2
mySQL: 4.1.22
OS: FreeBSD 6

email.yml:

&lt;pre&gt;
# Outgoing email settings

production:
  delivery_method: :smtp
  smtp_settings:
    address: smtp.mydomainishere.net
    port: 25
    domain: redmine.mydomainishere.net
    authentication: :none

development:
  delivery_method: :smtp
  smtp_settings:
    address: 127.0.0.1
    port: 25
    domain: example.net
    authentication: :login
    user_name: redmine@example.net
    password: redmine


&lt;/pre&gt;</description>
  <start_date>2009-07-05</start_date>
  <due_date></due_date>
  <done_ratio>0</done_ratio>
  <estimated_hours></estimated_hours>
  <custom_fields>
    <custom_field name="Affected version" id="1"></custom_field>
    <custom_field name="Resolution" id="2">Invalid</custom_field>
  </custom_fields>
  <created_on>Sun Jul 05 21:13:10 +0200 2009</created_on>
  <updated_on>Sun Jul 05 22:26:49 +0200 2009</updated_on>
  <journals>
    <journal id="10048">
      <user name="Jean-Philippe Lang" id="1"/>
      <notes>Please, have a look at http://www.redmine.org/issues/2212#note-1.</notes>
      <details>
      </details>
    </journal>
    <journal id="10050">
      <user name="Jim Keller" id="5325"/>
      <notes>Thanks JP, that thread got me to the resolution (by editing the mail logging info and troubleshooting from there). 

Looks like the following happened:

* it looks like the new (0.8.4+) version of Redmine wants to use TLS by default, so in my email.yml, I was first getting openssl errors about the certificate not matching. So I changed 127.0.0.1 as the mailserver to smtp.mydomain.net

* Redmine was now sending email from the full server address as opposed to 127.0.0.1, but postfix was rejecting it (relay access denied) because I didn't have that server set as an allowed relay host, and I wasn't using authentication

Things look good now. Thanks again.
 </notes>
      <details>
        <detail old="1" name="status_id" property="attr" new="3"/>
      </details>
    </journal>
    <journal id="10052">
      <user name="Jean-Philippe Lang" id="1"/>
      <notes>&gt; it looks like the new (0.8.4+) version of Redmine wants to use TLS by default

AFAIK, no such change was done. Anyway, thanks for the feedback.</notes>
      <details>
        <detail old="3" name="status_id" property="attr" new="5"/>
        <detail old="" name="2" property="cf" new="Invalid"/>
      </details>
    </journal>
  </journals>
</issue>
