dreamfactorysoftware / df-docker

Docker container for DreamFactory.
59 stars 56 forks source link

enabled mailing from DF #31

Closed philicious closed 8 years ago

philicious commented 8 years ago

containerized DF couldnt mail yet.

This is a more general problem with Docker containers and ssmtp probably the most common fix. and simple. for more info see https://github.com/docker-library/php/issues/135 https://github.com/docker-library/wordpress/issues/30

For configuration you add environment variables like

SSMTP_mailhub=mx.acme.com
SSMTP_AuthUser=df
SSMTP_AuthPass=s3cret
SSMTP_UseTLS=YES
SSMTP_UseSTARTTLS=YES

All configuration options from here http://manpages.ubuntu.com/manpages/trusty/man5/ssmtp.conf.5.html are working, prfixed with SSMTP_

good to know:

df-arif commented 8 years ago

@philicious , Thanks for the PR. It looks good. However, can you please update the README about this feature. You can create a new section at the bottom of the README for this. I will merge the PR once you update the README.

philicious commented 8 years ago

@df-arif sure. how about a matrix with all possible config options (mandatory, optional) in general? Its quite a few meanwhile but not all from .env-dist

df-arif commented 8 years ago

@philicious, sure. That will be even better. Thanks!

philicious commented 8 years ago

@df-arif will do tomorrow then. already 11pm over here

philicious commented 8 years ago

@df-arif have a look at https://github.com/philicious/df-docker/blob/master/README.md if thats looking ok for you

df-arif commented 8 years ago

@philicious , Thanks for updating the README. It looks good. PR merged.