Add MAILMAN_WEB_SOCIAL_AUTH for social logins
The `MAILMAN_WEB_SOCIAL_AUTH` list contains a default set of social
login provides. This was previously included in `INSTALLED_APPS`.
Separating it to it's own list makes it easier to disable or otherwise
override which social login providers are enabled without the need to
modify `INSTALLED_APPS`.
Older installations where `INSTALLED_APPS` were overridden continues to
work. The `MAILMAN_WEB_SOCIAL_AUTH` is ignored for those and
`INSTALLED_APPS` is used as is.
Replace them with:
* containers' hostnames
* gateway's IP address for default SMTP_HOST
* Core: when SMTP_HOST undef, echo the default value
* docker-compose: add port mapping
* docker-compose: drop network driver conf
* Exim macro: use localhost as LMTP host
* Update README.md
* docker-compose: Limit port mapping to loopback
* Update other docker-compose example files
* Bump to use Alpine 3.12 since 3.8 is now EOL.
* Manually install pip in all images.
* Rename all py- modules to py3- modules.
* Replace mysqldb with mysqlclient library for Mysql support in web.
* Update Postorius, Hyperkitty and django-mailman3.
Also, entrypoint script should compile i18n messages.
* Add git to postorius image.
* Also compile i18n messages in Postorius.
* Add GNU Gettext to the images.
* Do not compilemessages.
* Do not compilemessages.
* Add libffi to all Postorius images.
* Use Django less than a certain version.
* Fix the version constraint.
* Fix uwsgi configuration by using only processes.
Whoosh completely breaks down on 4GB of mail archives, so provide xapian
as an alternative. It's not hooked up automatically, but can be enabled
in the config files.
Related to issue #97.
This way we can depend on alpine's python3 package which is binary
compatible with the rest of the python packages in the distribution.
This requires spelling out python3 explicitly in several places since
alpine still defaults to python 2 for /usr/bin/python.
* Use old style middleware settings for Python 2.
* Make entrypoint python2 and 3 compatible.
* Fix python command to test for mysql server.
* Bettery docker-entrypoint to work with Python 2 & 3
* Add missing braces.
When running the mailman-web container with `UWSGI_STATIC_MAP=/static=/opt/mailman-web-data/static` (as suggested in https://github.com/maxking/docker-mailman#serving-static-files), the Browser receives the CSS files, but refuses to render them because of wrong MIME type (`text/plain`). Also, in the docker logs, a warning shows up that `/etc/mime.types` was not found.
According to the [Alpine package index](https://pkgs.alpinelinux.org/contents?branch=edge&name=mailcap&arch=armhf&repo=main), this file is part of the `mailcap` package. Installing it in the container makes Postorius stop looking ugly again!
* Update mailman-web to use Python 3
* Update configuration
* Python 3.6 image.
* Use alpine 3.7
* Use new style middleware
* Use alpine 3.6
* In Python 3, urlparse was renamed to urllib.parse