Configure SMTP with Office 365 Docker

by DorianB   Last Updated January 04, 2018 14:00 PM

I would like to have a SMTP server that sends emails through office 365. I have a docker based server and I would like to have a simple container to configure one time. Then I would specify into my other services (in same network) to use it to send emails through my office 365 account.

How should I do this ?

EDIT :

I tried : docker-compose.yml

version: '2'
services:
  smtp:
    image: namshi/smtp
    environment:
      - SMARTHOST_ADDRESS=smtp.office365.com
      - SMARTHOST_PORT=25
      - SMARTHOST_USER=noreply@mydomain.tld
      - SMARTHOST_PASSWORD=password

When I send the email I have "Client was not authenticated to send anonymous mail during MAIL"



Related Questions



Office365 SMTP Email - Rejected with no trace in log

Updated February 14, 2018 10:00 AM

Windows SBS 2003 - Relay via SBS to Office 365

Updated April 18, 2018 11:00 AM