Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sendmail service #9

Closed
kdelfour opened this issue Apr 8, 2015 · 8 comments
Closed

Add sendmail service #9

kdelfour opened this issue Apr 8, 2015 · 8 comments

Comments

@kdelfour
Copy link
Contributor

kdelfour commented Apr 8, 2015

I would like to know why you don't integrate sendmail service to docker ghost container. It will help you to minimize the config modification.

You can integrate this in your config.

mail: {
  transport: 'SMTP',
  options: {service: 'sendmail',}
},
@tianon
Copy link
Member

tianon commented Apr 9, 2015

The discussion in docker-library/wordpress#30 is important here too, since email is still a huge general problem that isn't solved in a good general way for Docker users yet.

@jrub
Copy link

jrub commented May 12, 2015

I guess this depends on the library Ghost uses to send emails, nodemailer. In fact, they have a common place where all common email services have their configuration: https://github.com/andris9/nodemailer-wellknown/blob/master/services.json I don't see there sendmail, though.

@pascalandy
Copy link
Contributor

pascalandy commented Sep 15, 2016

I use Mailgun. Just pass the env-var when launching your container :)

Also, supporting SendMail as nothing to do with this docker image.

mail: {
            transport: 'SMTP',
            options: {
                service : process.env.EMAIL_SERVICE,
                auth: {
                    user: process.env.EMAIL_USER,
                    pass: process.env.EMAIL_PASSWORD
                }
            }
        },

IMHO, we should close this issue.

@zicklag
Copy link

zicklag commented Sep 27, 2017

Could what @pascalandy mentioned be worked into the official image so that you could configure mail through environment variables?

@SISheogorath
Copy link

in >=1.0 it's no longer needed. See https://docs.ghost.org/docs/config#section-running-ghost-with-config-env-variables

For >1.0 I don't think there will be a change in the current handling

@zicklag
Copy link

zicklag commented Sep 27, 2017

Cool, Thanks!

@ghost
Copy link

ghost commented Jan 16, 2018

@SISheogorath How can mail be configured via environment var? I am hoping to use Mailgun and I am having trouble finding anything helpful in the docs for Ghost or this Docker image. Any help you can offer up would be greatly appreciated!

@tianon
Copy link
Member

tianon commented Jan 16, 2018

@rucuriousyet combining https://docs.ghost.org/docs/config#section-running-ghost-with-config-env-variables with https://docs.ghost.org/docs/mail-config#section-mailgun:

$ docker run ... \
    -e mail__transport=SMTP \
    -e mail__options__service=Mailgun \
    -e [email protected] \
    -e mail__options__auth_pass=1234567890 \
    ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants