On 9/27/23 06:35, Mohsen Masoudfar wrote:
I am interested to know more about the reasons behind these bounces, they are all handled by Postfix and deleted. ...>>> Is there a way to send them to a mailbox? Or prevent them from being deleted, so that I can look into the message body?
Presumibly you have settings for Postfix like those at https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.ht... or https://docs.mailman3.org/en/latest/install/virtualenv.html#setup-mta
The simplest way is to deliver bounces to some user instead of Mailman. This will disable automated bounce processing for the list so it should be done temporarily only to see a few bounce messages and then reverted.
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.
There are also ways to save copies of all mail received by Postfix. See, e.g., https://www.electricmonk.nl/log/2015/03/06/keep-an-archive-of-all-mails-goin...
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan