On 9/28/23 11:15, Mark Sapiro wrote:
Lets say you have a few problem lists, list1@example.com and list2@example.com. Put the following in Postfix main.cf
virtual_alias_domains = example.com virtual_alias_maps = regexp:/etc/postfix/temp-aliases
Then create /etc/postfix/temp-aliases with this content
list1-bounces@example.com user@example.net list2-bounces@example.com user@example.net
where user@example.net is the address that should receive the bounces.
I just realized it's not that simple. The above will bounce all mail to the example.com domain other than that addressed to the two -bounces addresses.
A possible fix is to set
list1-bounces@example.com user@example.net
list2-bounces@example.com user@example.net
^(.*)@example.com ${1}@x.example.com
in /etc/postfix/temp-aliases and edit Mailman's var/data/postfix-lmtp
and replace all @example.com
with @x.example.com
Another approach is just to edit Mailman's var/data/postfix-lmtp and remove the list1-bounces@example.com and list2-bounces@example.com entries and add
list1-bounces: user@example.net
list2-bounces: user@example.net
to /etc/aliases
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan