Configuring Exchange Online For Outbound Emails Through Xeams

Sending outbound is similar to inbound but in the opposite direction.

O356-Outbound.png


Setup Before Xeams When Xeams is not in the picture for outbound

  • Messages to foreign domains will be delivered directly to the final destination without Xeams

Setup After Xeams Configure Exchange 365 to forward outbound emails to Xeams

Configuration within Xeams

  • Allow Xeams to relay emails from Exchange using the following steps:
    • Go to Server Configuration / SMTP Configuration
    • Click the tab for Relaying
    • Add *.outbound.protection.outlook.com for Host name/IP address.
    • Put yourDomainName.com in the Sender Restrictions field.
    • Click Add Host


Configuration within Exchange

This is a two-step process. First you have to create a Send-Connector and then have to create a transport rule. Following steps demonstrate the steps:
Creating a Connector
  • Go to mail flow, connectors
  • Create a new connector. Screen shot...
  • Specify a name and ensure check Turn it on. Screen shot...
  • Next, select the answer for Transport Rule. Screen shot...
  • Select Route emails through these smart hosts and specify the public IP address of your network (where Xeams is running). Screen shot...
  • Enable TLS if SSL is enabled on your Xeams. Screen shot...
  • Finally, ensure the settings are correct and save
Creating a Transport Rule
  • Click Create a new rule... in mail flow. Screen shot...
  • Click More Options towards the bottom
  • Apply this rule to messages where sender is located inside the organization and Redirect the message to... previously created connector. Screen shot...
  • Choose the connector. Screen shot...
  • Save

Setting up SPF, DKIM and DMARC When outbound emails go through Xeams

SPF

  • We recommend you configure the SPF record for you domain to:
    v=spf1 a mx include:spf.protection.outlook.com -all
  • SPF Records are added as TXT type in your DNS server. Check this page for details.

DKIM

  • Refer to this page in order to add DKIM records for your domain.
  • Every domain in your system will have its own DKIM record
  • Xeams can automatically generate public/private keys necessary for DKIM. The web interface of Xeams will display the key values for DKIM.
  • DKIM records also go in your DNS server.

DMARC

  • Similar to SPF, DMARC records also go in your DNS server.
  • Typically value for DMARC record is:
    "v=DMARC1; p=none; rua=mailto:dmarc.rua@yourdomain.com"
  • Refer to this page for details.