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 take as an example email@example.com and password. The equipment (SNB or SNP) will have as hostname hostnameand the name of the local network will be local.lan. You will need to change these values to those that match your configuration.
ATTENTION Office 365 only accepts to relay messages if the "From" field of the email is the same as the email address of the authentication account (firstname.lastname@example.org). 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
After these lines, add the following line
disable_ipv6 = true
- Configuring EXIM4 in the traditional way : dpkg-reconfigure exim4-config
- Use the "Send via smarthost" configuration - no local mail
- System email name: local.lan
- IP address list : unchanged (127.0.0.1 ; ::1 )
- Other destinations for which email must be accepted: empty
- Visible domain name for local users : local.lan
- smarthost : smtp.office365.com::587
- Answer NO then NO to the last 2 questions
- Edit /etc/email-addresses
- Add the following lines:
- nagios: email@example.com
- root: firstname.lastname@example.org
- Edit /etc/aliases
- Change the line for the root user: root: :blackhole:
- Edit /etc/exim4/passwd.client
- Add line *:email@example.com:motdepasse
- Restart exim4