crazy-max / docker-dokuwiki

DokuWiki Docker image
MIT License
43 stars 19 forks source link

Sending notification emails? #7

Closed gwerbin closed 4 years ago

gwerbin commented 4 years ago

Hi, thanks for putting this Dockerfile together!

One thing that's apparently lacking is outgoing email notification support. Do you happen to know how that could be added? Unfortunately my own experience level with this stuff ranges from "minimal" to "nonexistent".

It looks like the required steps are something like this:

  1. Install and configure MSMTP to act as a sendmail alternative, because the Busybox built-in sendmail is very limited
  2. Configure PHP to use MSMTP as above, via sendmail_from and sendmail_path in php.ini file.
  3. Add the appropriate variables to the Docker-compose file for your send-from address, SMTP account info, etc., and inject them into the Dockerfile where needed.

Does that seem right?

And step 3 this actually need to be done? Or can php.ini be safely written in the data directory from the "host side", once the container has been created?

crazy-max commented 4 years ago

Hi @gwerbin, I have updated the compose example which provides a simple SMTP relay service to be used with Dokuwiki and its SMTP plugin.

gwerbin commented 4 years ago

Wow, thank you!