User talk:John4
Subscribe

From OpenNMS

Jump to: navigation, search

Any one had luck using Javamail for Notifications?

I have. --David 21:51, 5 April 2006 (CDT)

We've made the changes to the Java Mail API and whe nwe test the log files say that the e-mails were sent, but nothing comes through. I know Java Mail works on the server that Open NMS is installed and that the SMTP server settings are correct because the other Java Mail sends through it.

Here's what the Java Mail Config file looks like;

  1. The default setting is root@[127.0.0.1]

org.opennms.core.utils.fromAddress=opennms@[192.168.1.89]

  1. This property defines SMTP Host.

org.opennms.core.utils.mailHost=smtp.mail.yahoo.com org.opennms.core.utils.mailer=smtpsend org.opennms.core.utils.transport=smtp org.opennms.core.utils.debug=true

  1. This property defines Mail authentication.
  2. The default setting is false

org.opennms.core.utils.authenticate=true org.opennms.core.utils.authenticateUser=******** org.opennms.core.utils.authenticatePassword=******

  1. This property controls the use of the JMTA, the
  2. default is true
  3. org.opennms.core.utils.useJMTA=true

Any idea where else we can look?

We just changed the JMTA to false based on what we read on the e-mail list, but still do not get the e-mails, even though the system says they were send successfully.

Where else should we be looking?


Not much luck to be had here, although it seems I've one step closer. --User:kolarssam 17:51, 26 April 2006 (CDT)

I had the same problem until I accidently ran accross connections from my OpenNMS box on a different mail server than I was expecting it to use. My problem WAS the org.opennms.core.utils.fromAddress= line. The mail server wouldn't accept the mail because it wasn't from a valid domain. I fixed that by changing the IP to my domain name and I get notifications. NOW my problem is the email server that it's using to send notifications is going away so I'm trying to get it to send off a new mail server but it won't. Even after changing the org.opennms.core.utils.mailHost= line it still sends to the old. Another is getting Availability reports to be sent.

My two problems: 1. Being able to pick which mail server notifications are sent through. 2. Availability reports are going through.

Are there issues with the Java Mailer that need attention?