
Hi Mark,
Thank you for your reply.
I admit that I don't know Mailman 3 as well as I knew Mailman 2. And the 2 -> 3 upgrade was handled by someone else, who has since left the org. As near as I have been able to discern, Mailman 3 is running on a docker host with four containers running, with mailman, postfix, nginx and django-uswgi in separate containers.
% sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 1b4262f81b98 mailman-nginx:1.21.3 "/docker-entrypoint.…" 3 years ago Up 3 weeks 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp mailman-nginx a5e4fa75ccb3 mailman-postfix:3.5.10-r0 "postfix start-fg" 4 years ago Up 2 weeks 0.0.0.0:25->25/tcp mailman-postfix 7a358c807714 mailman-django-uwsgi:2.0.19.1 "uwsgi --ini uwsgi.i…" 4 years ago Up 3 weeks 8000/tcp mailman-django-uwsgi 9a917897da10 mailman-core:3.3.1 "master" 4 years ago Up 3 weeks 24/tcp, 8001/tcp mailman-core
When I look at main.cf inside mailman-postfix:
transport_maps = hash:/opt/mailman/var/data/postfix_lmtp local_recipient_maps = hash:/opt/mailman/var/data/postfix_lmtp relay_domains = hash:/opt/mailman/var/data/postfix_domains virtual_alias_maps = hash:/opt/mailman/var/data/postfix_vmap-exceptions, hash:/opt/mailman/var/data/postfix_vmap
When I look at the domains in mailman-core, I see:
- owner: cit-sys-engineering@fredhutch.org
show_domains() <Domain fhcrc.org> <Domain fredhutch.org> <Domain lists.fhcrc.org, , alias: lists.fredhutch.org> <Domain lists.hanc.info, , alias: >
When I look at /opt/mailman/var/data/postfix_domains inside the postfix container, that seems to match:
fredhutch.org fredhutch.org lists.fredhutch.org lists.fhcrc.org lists.hanc.info lists.hanc.info
Now, when I look at the entries for a test list on lists.fhcrc.org, postfix_vmap looks like:
pattest@lists.fhcrc.org pattest@lists.fredhutch.org pattest-bounces@lists.fhcrc.org pattest-bounces@lists.fredhutch.org pattest-confirm@lists.fhcrc.org pattest-confirm@lists.fredhutch.org pattest-join@lists.fhcrc.org pattest-join@lists.fredhutch.org pattest-leave@lists.fhcrc.org pattest-leave@lists.fredhutch.org pattest-owner@lists.fhcrc.org pattest-owner@lists.fredhutch.org pattest-request@lists.fhcrc.org pattest-request@lists.fredhutch.org pattest-subscribe@lists.fhcrc.org pattest-subscribe@lists.fredhutch.org pattest-unsubscribe@lists.fhcrc.org pattest-unsubscribe@lists.fredhutch.org
and postfix_lmtp looks like:
pattest@lists.fredhutch.org lmtp:[mailman-core]:24 pattest-bounces@lists.fredhutch.org lmtp:[mailman-core]:24 pattest-confirm@lists.fredhutch.org lmtp:[mailman-core]:24 pattest-join@lists.fredhutch.org lmtp:[mailman-core]:24 pattest-leave@lists.fredhutch.org lmtp:[mailman-core]:24 pattest-owner@lists.fredhutch.org lmtp:[mailman-core]:24 pattest-request@lists.fredhutch.org lmtp:[mailman-core]:24 pattest-subscribe@lists.fredhutch.org lmtp:[mailman-core]:24 pattest-unsubscribe@lists.fredhutch.org lmtp:[mailman-core]:24
But for a test list on lists.hanc.info (the lists that I want to modify the bounce processing for), there is nothing in postfix_vmap, but there are entries in postfix_lmtp:
phtest@lists.hanc.info lmtp:[mailman-core]:24 phtest-bounces@lists.hanc.info lmtp:[mailman-core]:24 phtest-confirm@lists.hanc.info lmtp:[mailman-core]:24 phtest-join@lists.hanc.info lmtp:[mailman-core]:24 phtest-leave@lists.hanc.info lmtp:[mailman-core]:24 phtest-owner@lists.hanc.info lmtp:[mailman-core]:24 phtest-request@lists.hanc.info lmtp:[mailman-core]:24 phtest-subscribe@lists.hanc.info lmtp:[mailman-core]:24 phtest-unsubscribe@lists.hanc.info lmtp:[mailman-core]:24
And in postfix_vmap-exceptions, I added:
phtest-bounces@lists.hanc.info lmtp:[mailman-core]:24, user@gmail.com
I tried the above with and without a comma, and moving the email address before the lmtp entry as well.
Everything else seems to be working — there are over 40k lmtp: entries in postfix_lmtp, and messages are being delivered. I sort of assumed that the lmtp:[mailman-core]:24 thing was a result of all this being dockerized....
Suggestions appreciated.
Thanks,
-p
Pat Hirayama Pronouns: he/him/his Systems Engineer IT | Systems Engineering Fred Hutchinson Cancer Center O 206.667.4856 phirayam@fredhutch.org
From: Mark Sapiro <mark@msapiro.net> Sent: Thursday, June 26, 2025 09:33 To: mailman-users@mailman3.org <mailman-users@mailman3.org> Subject: [MM3-users] Re: redirecting -bounces replies
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
On 6/25/25 10:53, Hirayama, Pat wrote:
Thanks, Mark.
I (finally) started working on this ... and in trying to implement your suggestion — ran into a problem, I think.
The current postfix_vmap has entries like:
list-bounces@lists.domain.info lmtp:[mailman-core]:24
This looks very strange. It should be something like
list-bounces@lists.domain.info list-bounces@alias.domain
where alias.domain is the configured alias domain for the mail host lists.domain.info.
So, when I try adding entries to a separate vmap file, like:
list-bounces@lists.domain.info lmtp:[mailman-core]:24, user@gmail.com
It only goes through normal bounce processing.
If I do:
list-bounces@lists.domain.info user@gmail.com, lmtp:[mailman-core]:24
Then it goes to the gmail address, and no bounce processing happens.
The issue here is the value lmtp:[mailman-core]:24
is completely
wrong. It should be an email address with a syntactically valid domain
name. The domain name isn't a real domain. It is only a name exposed to
Postorius in the postfix_vmap and postfix_lmtp files.
What do you have configured for the alias domain for the lists.domain.info domain? See https://urldefense.com/v3/__https://docs.mailman3.org/projects/mailman/en/la...
If you have this properly configured, adding user@gmail.com in either order in postfix_vmap should work.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://urldefense.com/v3/__https://lists.mailman3.org/mailman3/lists/mailma... Archived at: https://urldefense.com/v3/__https://lists.mailman3.org/archives/list/mailman...
This message sent to phirayam@fredhutch.org