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 ?


I tried : docker-compose.yml

version: '2'
    image: namshi/smtp
      - 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

I can't receive emails from my MT4 Platform

Updated August 22, 2018 07:00 AM

Office365 SMTP Email - Rejected with no trace in log

Updated February 14, 2018 10:00 AM