If you don't have an in-house mail server, and you use Office 365, it is possible to configure ServiceNav to use Office365 as an SMTP relay.
You will need your email address, account and password.
In the following, we will use as an example firstname.lastname@example.org password. The server (SNB or SNP) will have as its hostname hostnameand the domain name of the local network will be local.lan. You will need to change these values to those that suit your configuration.
CAUTION Office 365 will only accept relayed messages if the "From" field of the email is the same as the email address of the authenticating account (email@example.com). The sender of notifications sent from a ServiceNav Box or from the NPS is defined in Organization, Sending email address field. To test the correct sending of emails from a root user, edit the /etc/email-addresses file.
Steps to follow
At the beginning of the file, find the following lines
# Macro defining the main configuration directory. # We do not use absolute paths. .ifndef CONFDIR CONFDIR = /etc/exim4 .endif
Below these lines, add the following line
disable_ipv6 = true
- Configure EXIM4 in the traditional way : dpkg-reconfigure exim4-config
- Use the "Send via smarthost" configuration - no local mail
- System email name: hostname
- IP address list : unchanged (127.0.0.1 ; ::1 )
- Other destinations for which email must be accepted: empty
- Domain name visible to local users : local.lan
- smarthost : smtp.office365.com::587
- Answer NO then NO to the last 2 questions
- Change /etc/email-addresses
- Add the following lines :
- nagios: firstname.lastname@example.org
- root: email@example.com
- Change /etc/aliases
- Change the line for the root user : root: :blackhole:
- Change /etc/exim4/passwd.client
- Add the line *:firstname.lastname@example.org:password
- Restart exim4