Giter Site home page Giter Site logo

Comments (7)

koen253janssen avatar koen253janssen commented on May 30, 2024 2

Or documenting on how to link your Drupal container to an mail container.

from drupal.

tianon avatar tianon commented on May 30, 2024 1

See docker-library/wordpress#30 for a very closely related discussion. The TL;DR is that it's hard to configure this in such a way that it's sane-by-default for most use cases, so I think documenting how to configure it might be a safer solution overall.

from drupal.

juliencarnot avatar juliencarnot commented on May 30, 2024

Documenting a good way to get around the issue would be great, as this function is also needed for password recovery for example...

from drupal.

sitarane avatar sitarane commented on May 30, 2024

After failing to link the sendmail to this one, I went with the smtp auth drupal module to be able to send email from another server. Uneleguant solution that I would roll back as soon as someone can document how to send mail from a linked container (or adds the functionality to this one).

from drupal.

mstenta avatar mstenta commented on May 30, 2024

Simple solution - extend the Drupal image with a custom Dockerfile and add SSMTP:

Dockerfile:

# Inherit from the Drupal 8 image.
FROM drupal:8

# Install SSMTP.
RUN apt-get install -y ssmtp

I also add configuration to SSMTP to relay through AWS SES or Mandrill, but I think the above works without anything extra.

from drupal.

tianon avatar tianon commented on May 30, 2024

I don't think there's a good generic solution we can apply here, but https://www.drupal.org/docs/develop/local-server-setup/managing-mail-handling-for-development-or-testing does have some good ideas, including pointers to https://www.drupal.org/project/smtp and https://www.drupal.org/project/phpmailer_smtp, one of which is definitely what I'd be using to solve this if I were running Drupal in my environment (either should be able to SMTP to a sidecar exim4 or otherwise container just as well as it can SMTP to an external provider).

Another option is something like ssmtp (as mentioned), but as ssmtp is technically deprecated I'd probably suggest msmtp instead.

from drupal.

skyred avatar skyred commented on May 30, 2024

Agreed. I am closing this issue.

For reference, if you want mailhog to intercept all emails, you can install mhsendmail

from drupal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.