29 Commits

Author SHA1 Message Date
Abhilash Raj
fcf719625c Create the var directory before trying to chown.
During cold start, var directory may not exist and we try to chown
the var directory which fails if it doesn't exist. We want to make
and chown the var directory in that case otherwise, mailman will not
be able to write to path `/opt/mailman` to create it's own var
directory.
2024-08-31 15:09:15 +00:00
Pierre-Gildas MILLON
a227c995fd fix: core startup fails if /opt/mailman/mailman-extra.cfg is read-only 2024-08-29 22:20:50 +02:00
Lucas
2e164621e8 Add TLS options for SMTP (#693)
* added smtp security settings for mta

* Update README.md for mailman-core

* change default values according to mailman docs

* added smtp options to README

---------

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
2024-06-07 18:04:45 -07:00
Abhilash Raj
528ddba4d2 fix: Do not log full database url.
Since the database contain credentials, do not log them after
changing from `mysql://` to `mysql+pymysql://`.

Fixes #642
2023-08-28 20:52:51 +05:30
Abhilash Raj
244b73d0f2 fix: Use -P pager=off in the psql commands. (#631)
This allows for non-interactive use and doesn't hang on the user
input in certain conditions, like when the command output is large.

Fixes #610
2023-06-19 20:04:03 -07:00
joergmschulz
df02cb7cbe Add SMTP_USER, SMTP_PASSWORD from environment vars. (#599)
* add smtp user, password from environment

add smtp user, password from environment to mailman.cfg

* Update README.md

document SMTP authentication via docker-compose.yml

* Update README.md

* Create docker-compose-traefik.yml

real life example

* remove examples folder for later use
2023-01-13 18:10:40 -08:00
Abhilash Raj
c5d4fa2f57 Merge branch 'main' into mysql_port 2022-04-14 00:10:10 -07:00
Sven Roederer
119f22b7c9 core/entrypoint: fix typo
Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
2022-03-20 18:44:28 +01:00
Pierre-Gildas MILLON
e79800f49b Improve MySQL endpoint ping with custom ports 2021-12-26 19:44:29 +01:00
Abhilash Raj
5b9b22cc09 Update docker-entrypoint.sh 2021-08-18 21:56:30 -07:00
Abhilash Raj
a1a8d7cd37 Run mailman aliases command as mailman user 2021-08-18 01:26:47 +00:00
Danil Smirnov
0d38c5b793 Fixing the default value for MM_HOSTNAME (#454) 2021-04-01 08:41:56 -07:00
pini-gh
c10aa6fce4 Get rid of hard coded IPs (#441)
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
2021-03-15 10:47:13 -07:00
Danil Smirnov
c42c737ff0 Logging improvement 2021-02-28 13:57:50 +02:00
Danil Smirnov
18bb115947 Fixes for Postorius-only deployment 2021-02-28 13:28:04 +02:00
Danil Smirnov
26327e7389 Won't append configuration to avoid parameters duplication 2020-08-25 13:08:14 +00:00
Danil Smirnov
8284936454 Respect gunicorn.cfg shipped with Mailman core 2020-08-24 14:07:09 +00:00
Danil Smirnov
20fbfe6e77 Suggested change in core/docker-entrypoint.sh
Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
2020-08-24 16:52:00 +03:00
Danil Smirnov
6774539d29 Making Gunicorn configurable 2020-08-23 11:06:18 +00:00
Marvin Greenberg
6f26dc9145 Fix minor typo in docker-entrypoint.sh (#345) 2019-09-08 17:29:29 -07:00
Abhilash Raj
c5d84bfeab Use alpine images instead of Python. (#290)
* Use alpine images instead of Python.

* Minor fix to use python3 -m pip

* Fix settings for paintstore.
2019-01-20 16:39:11 -08:00
Christoph Wagner
bf6689a45e fix mailman.cfg issue
We have to append ">>" to /etc/mailman.cfg and not to overwrite previously written content with ">".
Problem was that the database config made in setup_database was overriden.
2018-07-04 20:18:55 +02:00
richardbrinkman
ccf690b0a0 Fix #210: introduce MTA variable (#237)
* Fix #210: introduce MTA variable

* Fix: typo

* Fix: postfix configuration

* Del: temporary files
2018-06-19 09:09:00 -07:00
skoranda
5a8e7f02fc Inject REST port, user, password from environment (#220)
Enable the port, user, and password used by Core for the REST API to be
injected using environment variables.
2018-03-09 23:24:20 -08:00
Jonas Thiem
d846f1c763 Add code for auto-detecting database class for common cases (issue #137 ) (#150)
* Add code for auto-detecting database class for common cases.

* Fix unintentional space indentation instead of proper tab indentation

* Fix another left-over spaces indentation (sorry)
2017-11-15 19:11:08 -08:00
Abhilash Raj
743bc8522c Force start mailman inside the container.
Even though the 'master.lck' is supposed to prevent race conditions, it needs to
be manually removed if the container did not shutdown gracefully. Remove the
manual check for the lock file and force mailman to remove it.

Also, set the stop_grace_period to 30s, which would allow Core to stop
gracefully and not leave the lock file over. Default value in case of Docker is 10s.
2017-11-03 10:59:08 -07:00
Jonas Thiem
8f702ee98e Add automatic rewrite of mysql:// database to add backend 2017-10-02 23:50:30 +02:00
Abhilash Raj
afb8f09eff Fix MySQL compatibility in the docker images. (#140)
* Fix MySQL compatibility in the docker images.

* Test the containers with MySQL containers too!
2017-09-30 20:38:33 -07:00
Tatsuyuki Ishi
5b20021b91 Rename entrypoint script 2017-07-28 17:46:45 +09:00