...
These are the options we have tested and recommend for various email servers.
Configuration | Description | Regular SMTP Server | GMail SMTP Server | Office 365 SMTP Server |
---|---|---|---|---|
mail_combine | Do you want to combine emails for each email target? | true | ||
mail_from | Email address you want to use for NMIS notifications | nmis@domain.com | ||
mail_server | The mail FQDN or IP address | yourmailserver.domain.com | smtp.gmail.com | smtp.office365.com |
mail_server_ipproto | Should we use IPv4 or IPv6 to connect (IPv6 will only | ipv4 | ipv4 | ipv4 |
mail_server_port | The TCP port to use for connection | 25 | 587 | 587 |
mail_use_tls | Should the TLS protocol be used | false | true | true |
mail_use_sasl | Should the SASL protocol be used | false | false | false |
mail_user | The username to login with, blank for nothing | youruser@gmail.com | youruser@office365.com | |
mail_password | The password to login with, blank for nothing | yourpassword | yourpassword | |
mail_domain | domainname to use for SMTP | domain.com | gmail.com | office365.com |
Testing Email Server Connection
...
- Navigate to the admin directory – cd /usr/local/nmis9/admin
- Run the testemailtests.pl file – ./testemailtests.pl
- This will send an email to the Contract configured as Contact1display 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 ./testemailtests.pl debug=5
- Run the testemailtests.pl file – ./testemailtests.pl
If you don't have the file present in the directory indicated you can request support to help or grab file from GitHub
...