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' services: smtp: image: namshi/smtp environment: - SMARTHOST_ADDRESS=smtp.office365.com - SMARTHOST_PORT=25 - SMARTHOST_USERfirstname.lastname@example.org - SMARTHOST_PASSWORD=password
When I send the email I have "Client was not authenticated to send anonymous mail during MAIL"