Thanks for the help, I do appreciate it.
I am using the docker images provided by the mailman project.
The containers are up and running
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9dbad91fe50b maxking/mailman-web:0.3 "docker-entrypoint.s…" 6 seconds ago Up 5 seconds 127.0.0.1:8000->8000/tcp, 127.0.0.1:8080->8080/tcp mailman-web 7005bf66498e maxking/mailman-core:0.3 "docker-entrypoint.s…" 7 seconds ago Up 6 seconds 127.0.0.1:8001->8001/tcp, 127.0.0.1:8024->8024/tcp mailman-core b5336023fa94 postgres:9.6-alpine "docker-entrypoint.s…" 7 seconds ago Up 7 seconds 5432/tcp dockermailman_database_1
I was looking on the docker host for "/etc/postfix-mailman.cfg." so that explains why it is not there.
I have been digging in more and it looks like the mailman-core is not processing or accepting mail or/and the connection gets lost. But I can send mail from mailman in docker.
On the docker host my /etc/postfix/main.cf has
transport_maps = regexp:/opt/mailman/core/var/data/postfix_lmtp local_recipient_maps = regexp:/opt/mailman/core/var/data/postfix_lmtp relay_domains = regexp:/opt/mailman/core/var/data/postfix_domains
My docker yaml has
mailman-core: image: maxking/mailman-core:0.3 container_name: mailman-core hostname: mailman-core . . ports:
- "127.0.0.1:8001:8001" # API
- "127.0.0.1:8024:8024" # LMTP - incoming emails
But when I send a message, the docker host machine in /var/log/email/ shows "connection refused" & "lost connection" to mailman-core port 8024
2021-08-06T09:08:41.885213-04:00 dockerhost postfix/cleanup[109782]: D630B3083ED0: message-id=<4805A7DC-E100-4851-B1BB-E6C1806568A1@sender.com> 2021-08-06T09:08:41.896943-04:00 dockerhost postfix/qmgr[105559]: D630B3083ED0: from=<USER@sender.com>, size=8308, nrcpt=1 (queue active) 2021-08-06T09:08:41.949022-04:00 dockerhost postfix/lmtp[109783]: connect to localhost[::1]:8024: Connection refused 2021-08-06T09:08:41.974225-04:00 dockerhost postfix/lmtp[109783]: D630B3083ED0: to=<test@mailman-docker.###.####>, relay=localhost[127.0.0.1]:8024, delay=0.11, delays=0.05/0.02/0.04/0, dsn=4.4.2, status=deferred (lost connection with localhost[127.0.0.1] while receiving the initial server greeting)
The /opt/mailman/core/mailman-extra.cfg files has
# 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: outbound-mail-server.######.### smtp_port: 25 configuration: /etc/postfix-mailman.cfg [mailman]
.