From d6ee6123aba5f063405b2a909b9c6a5dea006eaf Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Wed, 25 Aug 2021 08:25:37 +0000 Subject: [PATCH 1/2] Update postfix related documentation --- README.md | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 2127ac1..7306a0b 100644 --- a/README.md +++ b/README.md @@ -390,25 +390,29 @@ relay_domains = regexp:/opt/mailman/core/var/data/postfix_domains ``` -To configure Mailman to use Postfix, add the following to `mailman-extra.cfg` -at `/opt/mailman/core/mailman-extra.cfg`. +To configure Mailman to use Postfix, set `MTA=postfix` under mailman-core +in the docker-compose.yaml: ``` -# mailman-extra.cfg - -[mta] -incoming: mailman.mta.postfix.LMTP -outgoing: mailman.mta.deliver.deliver -# mailman-core hostname or IP from the Postfix server -lmtp_host: localhost -lmtp_port: 8024 -# Postfix server's hostname or IP from mailman-core -smtp_host: smtp.example.com -smtp_port: 25 -configuration: /etc/postfix-mailman.cfg + mailman-core: + + environment: + - MTA=postfix ``` -The configuration file `/etc/postfix-mailman.cfg` is generated automatically +This will auto-generate the configuration to talk to Postfix assuming that +Postfix is available at the gateway address for the container's bridge network +at port 25. The final configuration can be found by executing: + +``` +$ docker exec mailman-core cat /etc/mailman.cfg +``` + +Please verify the output for `[mta]` section to ensure that it points to +the right `smtp_host` (address to reach postfix from mailman-core container) +and `lmtp_host` (address to reach mailman-core container from postfix). + +The configuration file `/etc/postfix-mailman.cfg` is also generated automatically inside the `mailman-core` container and contains the configuration specific for Postfix. From bf0c7c61c5c5a822b58455ea13c65a31010ba4fd Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Wed, 25 Aug 2021 08:38:54 +0000 Subject: [PATCH 2/2] Minor fixes --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7306a0b..af7e3b7 100644 --- a/README.md +++ b/README.md @@ -390,8 +390,8 @@ relay_domains = regexp:/opt/mailman/core/var/data/postfix_domains ``` -To configure Mailman to use Postfix, set `MTA=postfix` under mailman-core -in the docker-compose.yaml: +To configure Mailman to use Postfix, add `MTA=postfix` under mailman-core's +environment section in the `docker-compose.yaml`: ``` mailman-core: