To resolve this compatibility issue, implement the Simple Mail Transfer Protocol (SMTP) relay and check the configuration afterwards.
- Add the SMTP Server feature.
- Go to Start > Server Manager.
- Click Add roles and features.
- A new window will pop up then click Next until you reach Select features.
- Select SMTP Server.
- Select also the Include management tools if Internet Information Services (IIS) Management Console and IIS 6 Management Compatibility features if these are not yet installed.
- Start the Simple Mail Transport Protocol (SMTP) service via services.msc and change the startup type to "Automatic".
- Open the IIS 6.0 Manager and expand the hostname.
- Right-click [SMTP Virtual Server #1] and select Properties.
- Navigate to General tab > IP Address > Advanced.
- Click Add and select the IP address of the server.
- On the TCP port field, type "587" and click OK.
- On the General tab, select the actual IP address of the server from the IP address drop-down list.
- Go to Access tab > Authentication.
- Make sure that the "Anonymous access" check box is ticked and click OK.
- On the Access tab, click Connection.
- Mark the "Only the list below" radio button and add the IP address of the OSCE server.
- On the Access tab, select Relay.
- Mark the "Only the list below" radio button and add the IP address of the OSCE server.
- Go to Delivery tab > Outbound Security.
- Select "Anonymous access".
- Untick the "TLS encryption" check box.
- On the Delivery tab, select Outbound Connections and change the TCP port to "25".
- Go to the Delivery tab > Advanced.
- Get the server name by logging into the O365 Admin Portal:
- Click Domain.
- Select the domain being used.
- Copy the MX record from the DNS setting and use that address.
You can also check this Microsoft KB Article for more details on getting the server name.
After the procedure above, the relay is now configured. To check if netstat -a if 0.0.0.0:587 is listening:
- Open a Notepad and type the following:
FROM: <source email address>
TO: <destination email address>
SUBJECT: Test email
This is a test email sent from my SMTP server - Name this file as Email.txt and save it in C:\InetPub\MailRoot\Pickup.
- After a few minutes, check if the file is automatically moved to C:\InetPub\MailRoot\Queue folder. When the SMTP server delivers the mail, the file is automatically deleted from the local server.
- If you received the test mail in Office 365, the relay is working.
If the SMTP server cannot deliver the message, use the non-delivery report (NDR), which is created under the C:\InetPub\MailRoot\BadMail folder, to diagnose the delivery issues.
To configure OfficeScan/Apex One to send emails via relay:
- On the OfficeScan/Apex One web console, navigate to Administration > Notifications > General Settings.
- Enter the following information:
SMTP server: IP_ADDRESS of the relay
Port: 587
From: Email address of the Office 365 (e.g. test@mailbox_office365.com) - Save the settings.
- Go to IIS Manager and select the OfficeScan/Apex One site.
- Open the SMTP email feature and mark the "Store e-mail in pickup directory" radio button.
- Set the path of the pickup directory (e.g. C:\InetPub\MailRoot\Pickup) and click Apply.
- Test the notification by creating an Eicar test in one of the OfficeScan/Apex One-protected machines.
For more information, refer to this article: SMTP Relay with Office 365.