Configuring Office 365 Exchange Online with Altospam

Compatible MICROSOFT 365

Optimizing Microsoft Exchange Online configuration

Altospam’s integration with 365 increases the security of your 365 online message, thanks to the compatibility and complementarity of the two services, as described in thefollowing article. This procedure enables you to optimize the configuration of Microsoft Exchange Online with Altospam to ensure the best possible email processing and interoperability between the two systems. This procedure consists of 3 phases: activation of recipient filtering, connection filtering and deactivation of 365 filtering to avoid false positives.

Article updated January 22, 2022

Note: Our customers can refer to the detailed procedure available here (after logging in to their management area).

Here is a simplified procedure for other users:

2) Authorize all e-mails from Altospam servers

It is essential to create a Partner connector and add the IP address of your MX servers to it. This addition ensures that e-mails sent from Altospam servers will not be blocked by your mail server.

Partner connector creation

  1. Click on the Home menu
  2. Then Mail Flow
  3. And finally Connectors
Mail flow menu
  1. Click on Add a connector
Add connector
  1. Click on Partner organization
  2. Then Next
Partner Organization
  1. Add Altospam connector name
  2. Then Next
Connector name
  1. Click on Checking that the IP address of the sending server matches
  2. Add the previously retrieved IPs one by one in the field just below. Each addition is validated by clicking on the icon
  3. Then Next
Adding IPs
  1. Check that the box Reject mail if not sent using TLS is ticked.
  2. Then Next
TLS configuration
  1. Check that all information is correct
  2. Then click on Create a connector
Configuration summary
  1. office365 interface validates connector registration
  2. Then click on OK
Connector registration enabled
  1. Check that the connector is active: the checkbox must be ticked. If it is not, tick it.
Active connector

Check that the box Reject mails if not sent using TLS is ticked, then Next, Check that all the information is correct, then click on Create a connector.

Check that the connector is active: the checkbox must be ticked if not.

2) Disable Office365 antispam

To prevent e-mails from being placed in the “junk mail” folder, please follow the procedure below.

Click on the menu Home, Show all, Exchange. In this new Exchange section, click on the Home menu , then Mail Flow, then Rules . Then create a rule as follows:

  1. Click on the + button
  2. And bypass spam filtering
  3. Add the name “Altospam
  4. Select A message header includes -> includes one of these words
  5. Click on Enter text and enter X-ALTOSPAM-HOST and validate.
  6. Click on Enter words and type altospam and validate.
  7. Do not modify this drop-down list, as this will set the threshold to -1.


Old article
(obsolete on the current version of Office 365)

1. Activate recipient filtering

We’re going to activate recipient filtering on 365 so that the exchange of accounts between Altospam and 365 runs smoothly.

administration center

Go to the Exchange Administration Center (EAC) interface, then in the “Mail flow” section (1), select the “Accepted domains” tab (2). Select your domain (3), click on the pencil icon (4) and choose the “authoritative” option (5).

infoThis option can be chosen if and only if all the email addresses in your domain use Office 365. If you are in the process of migrating, recipient filtering cannot be activated.

domain-did-authority

warningDue to a bug, you need to click on the “Save” button, otherwise the change will not be validated, even if the option is already selected.

2. Connection filtering

To force 365 to authorize all emails coming from Altospam servers, you need to add the IP addresses of Altospam servers to the “connection filter”.

Altospam server IPs can be retrieved by simply pinging the MX servers associated with your domain. You can also view them using our tool: https: //www.altospam.com/outil/

connection filter

Go to the “Protection” section (1) and open the “Connection filter” tab (2). Select “Default” (3) then click on the pencil icon (4). Then go to the “Connection filtering” tab (5). Click on the + icon (6) in the authorized IP address section (7), and add the IP addresses of the Altospam servers (as seen above).

add-an-ip-address

3. Disable spam filtering

To avoid false positives generated by Microsoft, it’s wiser not to serialize anti-spam software, i.e. to disable 365’s filtering options. Still in the “Protection” section, select the “Spam filtering” tab and double-click on “Default”. You must ensure that the red and green lists are not configured (no domains or IP addresses added). In the “international junk mail” section, the filtering options must be unchecked. To complete the deactivation of spam filtering, check in “advanced options” that everything is set to Deactivated.

spam-filtering

Normally, once you’ve taken the necessary steps and followed points 1 to 3 of this procedure, recipient filtering should be active and all emails should arrive perfectly fine.

warningEnd of Standard procedure. The following points should only be read in the event of a problem.

——

Still having problems?

If you are still having trouble receiving your emails through 365 despite having implemented the above procedure, please read on:

You still get blocked messages from Microsoft or emails that arrive as Junk Mail. We advise you to install a specific connector. This is more powerful than simply whitelisting our IPs.

Once logged into your Office 365 interface, access your “Exchange Administration Center”. Click on “Mail flow” in the left-hand menu, then select the “Connector” tab.

Click on “+” , to create a new connector, then select: “From: Your organization’s mail server”, and “To: Office 365” . Give the connector a name: “Altospam”. Then select verification by IP address.

Clicking on the “+”, add the IPs of the Altospam servers one after the other (those you had already whitelisted in step 2).


Warning on DNS zone modification requested by 365

warningMicrosoft asks you to make changes to your DNS zone in order to set up an SPF as follows: “v=spf1 include:spf.protection.outlook.com -all”. Please note that the “-all” means that anything that does not come from 365 must be rejected. If you’re in the process of migrating, don’t forget to add your mail servers. What’s more, if other servers or equipment (web server, fax machine, etc.) are sending emails on your behalf, don’t forget to add them.

Additional information provided by Microsoft when spam is detected

If emails are still arriving in junk mail (internal emails, for example), Microsoft has provided us with a PowerShell solution to disable Office 365 protection in depth.

Log on to PowerShell from your PC as Administrator (search for “Windows PowerShell” ), then run the following command:

Set-ExecutionPolicy Unrestricted

Answer “yes” to all questions. Then issue the command

$UserCredential = Get-Credential

Enter your Office 365 Admin ID and password, then run :

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session

Get-mailbox | Set-MailboxJunkEmailConfiguration -enabled $false

You have just deactivated 365’s spam filters. If required, you can restrict the execution strategy again:

Set-ExecutionPolicy Restricted

Test Altospam’s solutions!

Thousands of companies, CTOs, CIOs, CISOs and IT managers already trust us to protect their e-mail against phishing, spear phishing, ransomware, …