Comments (7)
Or documenting on how to link your Drupal container to an mail container.
from drupal.
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.
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.
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.
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.
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.
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)
- Add Drupal 9.4 (and remove 9.2) HOT 1
- D9 images don't allow for easy silent composer requires HOT 2
- How can I manage composer files? HOT 1
- docker: drupal site doesnt survive a restart HOT 1
- Drupal fails after updating docker image to >=9.4.6 because of composer HOT 2
- add example for how to install modules HOT 3
- drupal:9.4-php8.1-apache-buster comes with apache version Apache/2.4.38 (Debian) which has Security issue. HOT 5
- Add Drupal 9.5 (and remove 9.3)
- Add Drupal 10.0.0 HOT 1
- Remove opcache.fast_shutdown from PHP settings section HOT 2
- "Failed to get available update data" in Drupal 7.94 HOT 3
- Inquiry for apache compile option HOT 1
- Docker compose volumes not working. HOT 3
- Set the default php.ini (prod or dev) HOT 6
- New docker latest:php8.2-fpm-* images not functional HOT 1
- Add php8.3 [Postponed]
- 10.2.0 released
- Missing ini memory_limit and output_buffering HOT 3
- Drupal Pod is crashing when we enable Readonly file system as True without error HOT 3
- Drupal Pod is crashing when we enable Readonly file system as True without error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drupal.