NMIS provides the capability to notify users when various events are detected.  The main method of notification is using email, but many others are available.

Configuring Mail Server

To access the settings, from the menu access "System -> System Configuration -> NMIS Configuration"

From the configuration widget select "email"

The required configuration needs to be put in here:

Email Server Configuration Table

These are the options we have tested and recommend for various email servers.

ConfigurationDescriptionRegular SMTP ServerGMail SMTP ServerOffice 365 SMTP Server
mail_combineDo you want to combine emails for each email target?true
mail_fromEmail address you want to use for NMIS notificationsnmis@domain.com
mail_serverThe mail FQDN or IP addressyourmailserver.domain.comsmtp.gmail.comsmtp.office365.com

Should we use IPv4 or IPv6 to connect (IPv6 will only
work if you have end to end IPv6 connectivity)

mail_server_portThe TCP port to use for connection25587587
mail_use_tlsShould the TLS protocol be usedfalsetruetrue
mail_use_saslShould the SASL protocol be usedfalsefalsefalse
mail_userThe username to login with, blank for nothing
mail_passwordThe password to login with, blank for nothing
mail_domaindomain name to use for SMTPdomain.comgmail.comoffice365.com

Testing Email Server Connection

Once you have configured your email server, it is best to test it. To begin, log in to your NMIS server:


  • Navigate to the admin directory – cd /usr/local/nmis8/admin/
    • Run the testemail.pl file – ./testemail.pl 
      • this will send an email to the Contact configured as Contact1
      • If there was any error you can debug it with ./testemail.pl debug=true


  • Navigate to the admin directory – cd /usr/local/nmis9/admin
    • Run the tests.pl file – ./tests.pl
      • This will display a list of options to add to the command. Adding act = email will send a test email using the contact table. i.e ./tests.pl act= email
      • If there was any error you can debug it with ./tests.pl debug=5

If you don't have the file present in the directory indicated you can request support to help or grab file from GitHub 

Github Instructions:



GMAIL Issues:

If you still are having problems with testing email to your Contact1, please turn on option for Access for less secure apps, in the link https://support.google.com/accounts/answer/6010255

You will be able to see all the missing steps in you google accounts.

  • No labels