javax.mail.authenticationfailedexception Notification is not emailed.
Kyle Morgan <[email protected]>
| Newsgroups | gmane.network.opennms.install |
|---|---|
| Message-ID | <2012731171218.923975@kmorgan> |
I am having trouble configuring email to send my notifications. Notifications have been turned on and both the admin account and the two user accounts in the destination path have valid email addresses. This is the error I have in notifd.log 2012-07-31 16:35:10,118 ERROR [Thread-465392] JavaMailNotificationStrategy: send: Error sending notification. org.opennms.javamail.JavaMailerException: Java Mailer messaging exception: javax.mail.AuthenticationFailedException at org.opennms.javamail.JavaMailer.sendMessage(JavaMailer.java:453) at org.opennms.javamail.JavaMailer.mailSend(JavaMailer.java:246) at org.opennms.netmgt.notifd.JavaMailNotificationStrategy.send(JavaMailNotificationStrategy.java:65) at org.opennms.netmgt.notifd.ClassExecutor.execute(ClassExecutor.java:63) at org.opennms.netmgt.notifd.NotificationTask.run(NotificationTask.java:260) Caused by: javax.mail.AuthenticationFailedException at javax.mail.Service.connect(Service.java:319) at org.opennms.javamail.JavaMailer.sendMessage(JavaMailer.java:440) ... 4 more Below is the javamailer-configuration.properties file. The changes I have made are in Red (I am not sure if color is an option, thus they are underlined as well) anything I needed to modify from default I left commented out and added a line, that didn't cause the issue as I had tried it differently before. I wanted to be able to see the defaults as I worked to figure it out this time. ################################################################################ # This file is the configuration for the the JavaMailer class. It is used to # specify the details of the JavaMailer system properties ################################################################################ # # Properties are defined but commented out indicating the default values. # # # This property defines system sender account. # # The default setting is root@[127.0.0.1] #org.opennms.core.utils.fromAddress=root@[127.0.0.1] org.opennms.core.utils.fromAddress=TheEmailAddress # # These properties define the SMTP Host. # #org.opennms.core.utils.mailHost=127.0.0.1 org.opennms.core.utils.mailHost=smtp.gmail.com #org.opennms.core.utils.mailer=smtpsend org.opennms.core.utils.transport=smtp #org.opennms.core.utils.debug=true org.opennms.core.utils.smtpport=25 org.opennms.core.utils.smtpssl.enable=false #org.opennms.core.utils.quitwait=true # # This property controls the use of the JMTA # if it is true, mailHost will be ignored org.opennms.core.utils.useJMTA=false # # These properties define the Mail authentication. # #org.opennms.core.utils.authenticate=false org.opennms.core.utils.authenticate=true #org.opennms.core.utils.authenticateUser="opennms" org.opennms.core.utils.authenticateUser="TheEmailAddress" #org.opennms.core.utils.authenticatePassword="opennms" org.opennms.core.utils.authenticatePassword="ThePassword" #org.opennms.core.utils.starttls.enable=false org.opennms.core.utils.starttls.enable=true # # These properties configure message content # org.opennms.core.utils.messageContentType=text/plain org.opennms.core.utils.charset=us-ascii ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-install mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-install