What are the batch manager settings for Office365 Cloud hosted emails?

There are many different options to choose from when setting up Office 365 cloud-hosted emails. The most commonly used option is Stunnel. The process of setting up the Batch Manager using Stunnel is similar to setting up Gmail, the main difference being that this process will require port 587. (More information on setting up Gmail can be found here.)

The outgoing settings for Office365 are as follows:

[SMTP Outgoing]
protocol = smtp
accept = 25
connect = smtp.office365.com:587
cert = /etc/stunnel/stunnel.pem

The other two options are direct send and SMTP relay.

  • Direct send: Will let any email send as any other email but ONLY to recipients in your domain, so no external email allowed.
  • SMTP relay: A more flexible option, but requires a static IP address on the source. You create a connector in Ofice365 that says "I trust email coming from this IP to send as whoever", which will act like a traditional SMTP server but without the authentication. More information on SMTP can be found here