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:

>>> show_domains()
<Domain fhcrc.org>
<Domain fredhutch.org>
<Domain lists.fhcrc.org, , alias: lists.fredhutch.org>
<Domain lists.hanc.info, , alias: >
- owner: cit-sys-engineer...@fredhutch.org
>>>

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:

patt...@lists.fhcrc.org                             patt...@lists.fredhutch.org
pattest-boun...@lists.fhcrc.org                     
pattest-boun...@lists.fredhutch.org
pattest-conf...@lists.fhcrc.org                     
pattest-conf...@lists.fredhutch.org
pattest-j...@lists.fhcrc.org                        
pattest-j...@lists.fredhutch.org
pattest-le...@lists.fhcrc.org                       
pattest-le...@lists.fredhutch.org
pattest-ow...@lists.fhcrc.org                       
pattest-ow...@lists.fredhutch.org
pattest-requ...@lists.fhcrc.org                     
pattest-requ...@lists.fredhutch.org
pattest-subscr...@lists.fhcrc.org                   
pattest-subscr...@lists.fredhutch.org
pattest-unsubscr...@lists.fhcrc.org                 
pattest-unsubscr...@lists.fredhutch.org

and postfix_lmtp looks like:

patt...@lists.fredhutch.org                        lmtp:[mailman-core]:24
pattest-boun...@lists.fredhutch.org                lmtp:[mailman-core]:24
pattest-conf...@lists.fredhutch.org                lmtp:[mailman-core]:24
pattest-j...@lists.fredhutch.org                   lmtp:[mailman-core]:24
pattest-le...@lists.fredhutch.org                  lmtp:[mailman-core]:24
pattest-ow...@lists.fredhutch.org                  lmtp:[mailman-core]:24
pattest-requ...@lists.fredhutch.org                lmtp:[mailman-core]:24
pattest-subscr...@lists.fredhutch.org              lmtp:[mailman-core]:24
pattest-unsubscr...@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:

pht...@lists.hanc.info                        lmtp:[mailman-core]:24
phtest-boun...@lists.hanc.info                lmtp:[mailman-core]:24
phtest-conf...@lists.hanc.info                lmtp:[mailman-core]:24
phtest-j...@lists.hanc.info                   lmtp:[mailman-core]:24
phtest-le...@lists.hanc.info                  lmtp:[mailman-core]:24
phtest-ow...@lists.hanc.info                  lmtp:[mailman-core]:24
phtest-requ...@lists.hanc.info                lmtp:[mailman-core]:24
phtest-subscr...@lists.hanc.info              lmtp:[mailman-core]:24
phtest-unsubscr...@lists.hanc.info            lmtp:[mailman-core]:24


And in postfix_vmap-exceptions, I added:

phtest-boun...@lists.hanc.info                lmtp:[mailman-core]:24, 
u...@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
phira...@fredhutch.org
________________________________
From: Mark Sapiro <m...@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-boun...@lists.domain.info                lmtp:[mailman-core]:24

This looks very strange. It should be something like
```
list-boun...@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-boun...@lists.domain.info                lmtp:[mailman-core]:24, 
> u...@gmail.com
>
> It only goes through normal bounce processing.
>
> If I do:
>
> list-boun...@lists.domain.info                u...@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/latest/src/mailman/docs/mta.html*unusual-postfix-configuration__;Iw!!GuAItXPztq0!lk52z6S25pPCaLuRNT4aZ5V0dcMaO1c2hkv7JZB93ZVBRtNlyZ6plEr4m485PGc5Iga1dOjnX948WP8$

If you have this properly configured, adding u...@gmail.com in either
order in postfix_vmap should work.

--
Mark Sapiro <m...@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-le...@mailman3.org
https://urldefense.com/v3/__https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/__;!!GuAItXPztq0!lk52z6S25pPCaLuRNT4aZ5V0dcMaO1c2hkv7JZB93ZVBRtNlyZ6plEr4m485PGc5Iga1dOjn0-Mcc0E$
Archived at: 
https://urldefense.com/v3/__https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/H4S7B7VGVAAJ5GEIGOQRYX2IPQCHPGHZ/__;!!GuAItXPztq0!lk52z6S25pPCaLuRNT4aZ5V0dcMaO1c2hkv7JZB93ZVBRtNlyZ6plEr4m485PGc5Iga1dOjn2hEt8u0$

This message sent to phira...@fredhutch.org
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/HDRKWJPMRI4QBQ56Q3J4GISYTBLWQUNY/

This message sent to arch...@mail-archive.com

Reply via email to