Update postfix related documentation

This commit is contained in:
Abhilash Raj
2021-08-25 08:25:37 +00:00
committed by GitHub
parent 26c3f4709d
commit d6ee6123ab

View File

@@ -390,25 +390,29 @@ relay_domains =
regexp:/opt/mailman/core/var/data/postfix_domains regexp:/opt/mailman/core/var/data/postfix_domains
``` ```
To configure Mailman to use Postfix, add the following to `mailman-extra.cfg` To configure Mailman to use Postfix, set `MTA=postfix` under mailman-core
at `/opt/mailman/core/mailman-extra.cfg`. in the docker-compose.yaml:
``` ```
# mailman-extra.cfg mailman-core:
<snip>
[mta] environment:
incoming: mailman.mta.postfix.LMTP - MTA=postfix
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
``` ```
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 inside the `mailman-core` container and contains the configuration specific
for Postfix. for Postfix.