Documentation

Configure Exim emailing with Microsoft Office365

On the page

Do you need help?

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.

warning svgrepo com 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
  1. 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
  2. Edit /etc/email-addresses
    • Add the following lines:
    • nagios: user@partenaire.dom
    • root: user@partenaire.dom
  3. Edit /etc/aliases
    • Change the line for the root user: root: :blackhole:
  4. 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).
  5. Restart exim4

You may also be interested in

Replace a ServiceNav Box Ubuntu 16.04 with a ServiceNav Box 4.17 Ubuntu 20.04

en_GB

Our next events

Our upcoming webinars

Our Previous Webinars

Welcome to ServiceNav!

Do you need some help? More information about our products? Write to us!
We will never sell or share your personal data with third parties. You have taken note of our privacy policy.
We use cookies to ensure the best experience on our site. If you continue to use this site, we will assume that you are satisfied with it.

Reserve your place

We will never sell or share your personal data with third parties. You have taken note of our privacy policy.