EV Observe - Use Microsoft 365 as SMTP Relay

Last modified on 2023/06/05 20:10

Customers without an email server can configure EV Observe to use Microsoft 365 as an SMTP relay and send emails from a Box.

Notes

  • You define the sender email address for notifications sent from a Box or from the SNP in the Web app. To do so, select Organization > Sites in the menu and specify the Sender email field.
           Web application - Sender email.png

Best Practice

  • Modify the file called /etc/email-addresses to check that emails are correctly sent using the root user.

Caution

  • Microsoft 365 will relay messages only if the From field in the email is identical to the email address of the authentication account (user@partner.dom).

Procedure: How to use Microsoft 365 as an SMTP relay

Step 1: Disable IPv6 in Exim4

1. Open the configuration file called /etc/exim4/exim4.conf.template.

2. Search for the rows indicated below.

# Macro defining the main configuration directory.
# We do not use absolute paths.
.ifndef CONFDIR
CONFDIR = /etc/exim4
.endif

3. Add the following row immediately after these rows.

disable_ipv6 = true

4. Save your modifications.
 

Step 2: Configure Exim4

1. Run the command below to open the Exim4 configuration tool.

dpkg-reconfigure exim4-config

2. Specify the required information and click <OK> each time to validate your input.

  • Use the configuration: Select the Send via (smarthost) relay - no local email option.
  • System email name: Specify the name of your local network depending on your domain.
  • List of IP addresses: Enter the addresses 127.0.0.1 ; ::1. Note: Use a semicolon to separate the different addresses.
  • Other destinations whose emails must be accepted: Leave this blank.
  • Domain name visible to local users: Specify the name of your local network depending on your domain.
  • Network name or IP address of the smarthost system: Enter the value smtp.office365.com::587.
  • Minimize DNS queries (on-demand connections)?: Select the No value.
  • Separate the configuration into multiple files: Select the No value.

At the end of the configuration, Exim4 will restart automatically. The email server will be operational.
 

Step 3: Finish the configuration

1. Configure the email addresses.

  • Open the configuration file called /etc/email-addresses.
  • Add the rows below.
    Replace {your_email_address} with your email address in the following format, user@partner.dom.

nagios: {your_email_address}
root: {your_email_address}

2. Configure the aliases.

  • Open the configuration file called /etc/aliases.
  • Modify the row below for the root user.

root: :blackhole:

3. Configure the password.

  • Open the configuration file called /etc/exim4/passwd.client.
  • Add the row below and replace the following:
    • {your_email_address} with the email address in the following format, user@partner.dom
    • {password} with the password of your account

{your_email_address}:{password}

Caution: The user@partner.dom account must be identical to the email address you specified earlier in the Web app in the Organization > Sites > Sender email field.

4. Run the command below to restart Exim4.

service exim4 restart

Tags:
Powered by XWiki © EasyVista 2022