Documentations

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 n'accepte de relayer des messages que si le champ "From" du courriel est le même que l'adresse courriel du compte d'authentification (user@partenaire.dom).
L'émetteur des notifications envoyées depuis une ServiceNav Box ou depuis la SNP est défini dans Organisation, champ Adresse mail émettrice.
Pour tester le bon envoi des courriels depuis un utilisateur root, modifier le fichier /etc/email-addresses.

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
    • 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
  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
  5. Restart exim4

You may also be interested in

en_GB

Welcome to ServiceNav!

Do you need some help? More information about our products? Write to us!
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

You have taken note of our privacy policy.