Email Alerts Are Not Working

Issue:

Email alerts are not being received as expected.

Troubleshoot:

It may be because the IP address of your e-mail server or the access credentials have changed. Or perhaps connection to the email server is being blocked by a firewall.

You can check the email configuration from the NexOSS V6.1 or later or SDReporter V7.4 or later. If you have an earlier release, check the email configuration file.

  • Trigger Alerts Configuration File.

    NexOSS_$HOME/WebServer/webapps/analyzer/WEB-INF/classes/log4j.properties.
    
  • Error Alerts Configuration file:

    $NexOSS_HOME/WebServer/webapps/logs/WEB-INF/classes/log4j.properties
    
  • Example Configuration file:

    log4j.appender.EMAIL_ALERT.Subject =Alert from Traffic Analyzer - %X{Key-Email-Subject}
    log4j.appender.EMAIL_ALERT.SMTPHost =15.16.12.52
    log4j.appender.EMAIL_ALERT.SMTPProtocol =smtp
    log4j.appender.EMAIL_ALERT.SMTPPort =25
    log4j.appender.EMAIL_ALERT.SMTPDebug =false
    log4j.appender.EMAIL_ALERT.SMTPUsername =
    log4j.appender.EMAIL_ALERT.SMTPPassword =
    log4j.appender.EMAIL_ALERT.From =Fraud.TransNexus@ABC.com
    log4j.appender.EMAIL_ALERT.To =NOC@ABC.com,admin@ABC.com
    log4j.appender.EMAIL_ALERT =com.transnexus.log4j.net.SMTPAppender
    log4j.appender.EMAIL_ALERT.layout =org.apache.log4j.PatternLayout
    log4j.appender.EMAIL_ALERT.layout.ConversionPattern=%m
    log4j.appender.EMAIL_ALERT.BufferSize =1
    

Use the following command to verify email alerts are working as expected, but cannot connect to the SMTP mail server.

[ossadmin@co1-bssdr1-01 logs]$ pwd
/home/ossadmin/OSS/SDReporter/nexoss/WebServer/logs
[ossadmin@co1-bssdr1-01 logs]$
[ossadmin@co1-bssdr1-01 logs]$ grep "Could not connect to SMTP host" catalina.out
javax.mail.MessagingException: Could not connect to SMTP host: 15.16.12.52, port: 25;