Configure the email section to allow NMIS to send out emails. The settings are straight forward, the mail server to use, the domain the email is coming from, the email address the email should come from an and option to combine emails so notifications about devices are grouped instead of sent individually.
- System -> System Configuration -> NMIS Configuration, choose "email" from the drop down.
If you are using the local host (127.0.0.1) to deliver mail there are a couple of things to remember. Make sure you have the mail daemon running, on CentOS the default is sendmail:
If you leave sendmail with it's default configuration it will need a DNS server to resolve domain names for it. If you don't have DNS setup you will find that emails will be stuck in mail queues. To check this you can try:
You have some options to fix this, here we show how to quickly setup the dnsmasq daemon, you can also disable the DNS requirement and/or enable SMART_HOST, see http://stackoverflow.com/questions/43970/configuring-sendmail-behind-a-firewall). As long as your server can currently resolve names (pinging a named host works, ie ping google.com) then this should fix the problem:
Send a test email
The script <nmis_base>/admin/testmail.pl will send an email to the default user contact1. If you would like to send a test email edit the contact1 contact and set the email address (if your not sure how to do this see the contacts section) . Then run the script:
The emails should show up in the inbox you specified shortly after running the script. If they don't try using the mailq command above, or check out http://www.electrictoolbox.com/show-sendmail-mail-queue/