title: OpenNMS Email Notification not working
body: <p>I have installed OpenNMS Horizon and configured notifcations as follows:</p>
  
  <ol>
  <li>users admin and rtc have an email address;</li>
  <li>both are part of the Email-Admin group (Admin / Configure Notifications Destination Paths);</li>
  <li>notifications have been turned on (Admin / Event Management);</li>
  <li><p>for testing purposes, I have configured a custom nodeDown event, which has the Email-Admin group on its destination path (My Node DOWN Alert; OpenNMS-defined node event: nodeDown; uei.opennms.org/nodes/nodeDown)</p>
  
  <p><strong>Current Rule:</strong></p>
  
  <pre><code>(IPADDR != '0.0.0.0')
  </code></pre></li>
  <li><p>I have set up a gmail account in xxx as follows:</p>
  
  <p>org.opennms.core.utils.useJMTA=false</p>
  
  <p>org.opennms.core.utils.transport=smtps</p>
  
  <p>org.opennms.core.utils.mailHost=smtp.gmail.com</p>
  
  <p>org.opennms.core.utils.smtpport=587</p>
  
  <p>org.opennms.core.utils.smtpssl.enable=true</p>
  
  <p>org.opennms.core.utils.authenticate=true</p>
  
  <p>org.opennms.core.utils.authenticateUser=XXX@gmail.com</p>
  
  <p>org.opennms.core.utils.authenticatePassword=XXX</p>
  
  <p>org.opennms.core.utils.starttls.enable=true</p>
  
  <p>org.opennms.core.utils.messageContentType=text/html</p>
  
  <p>org.opennms.core.utils.charset=us-ascii</p>
  
  <p>org.opennms.core.utils.fromAddress=OpenNMS Administrator </p></li>
  <li><p>Gmail is configured with setting <em>allow less secure applications</em>.</p></li>
  </ol>
  
  <p><strong>My Question:</strong></p>
  
  <p>When I am powering off my test machine, I can see a <em>nodeDown</em> event in the Horizon Dashboard. However, the system does not send an email notification. </p>
  
  <p>According to notefid.log (/opt/opennms/logs/notifd.log) the system does not even try to send an email.</p>
  
  <p>Changing the port to org.opennms.core.utils.smtpport=465 is not working either. </p>
  
  <p>What am I missing? Please advise! </p>
  
  <p><strong>EDIT</strong></p>
  
  <ol>
  <li><p>Email is working properly with this configuration (/opt/opennms/etc/javamail-configuration.properties):</p>
  
  <pre><code>org.opennms.core.utils.useJMTA=false
  org.opennms.core.utils.transport=smtps
  org.opennms.core.utils.mailHost=smtp.gmail.com
  org.opennms.core.utils.smtpport=465    
  org.opennms.core.utils.smtpssl.enable=true
  org.opennms.core.utils.authenticate=true
  org.opennms.core.utils.authenticateUser=xxx@gmail.com
  org.opennms.core.utils.authenticatePassword=xxx
  org.opennms.core.utils.starttls.enable=true
  org.opennms.core.utils.messageContentType=text/html
  org.opennms.core.utils.charset=us-ascii
  org.opennms.core.utils.fromAddress=OpenNMS Administrator &lt;xxx@gmail.com&gt;
  </code></pre></li>
  <li><p>A scheduled outage prevented the system from sending emails. The scheduled outage did not vanish upon deletion. I had to add a second outage and then delete the first entry.</p></li>
  </ol>