Prerequisites
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 user@partenaire.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 (user@partenaire.dom).
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
Edit /etc/exim4/exim4.conf.template
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 (to be adapted according to your field)
- 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 (to be adapted according to your field)
- smarthost : smtp.office365.com::587
- Answer NO then NO to the last 2 questions
- Edit /etc/email-addresses
- Add the following lines:
- nagios: user@partenaire.dom
- root: user@partenaire.dom
- Edit /etc/aliases
- Change the line for the root user: root: :blackhole:
- Edit /etc/exim4/passwd.client
- Add line : *:user@partenaire.dom:motdepasse
(the account user@partenaire.dom must correspond to the address entered in the field "Sending e-mail address" of the tab "Organization", "Companies" in ServiceNav).
- Add line : *:user@partenaire.dom:motdepasse
- Restart exim4