Altering 'From' address for a list

I've been directed by management to change/munge the 'From' address of a mailing list that is used for announcements to a non-list address. This is in addition to providing the specific 'Reply-to' address via configuration which has already been done. In other words instead of seeing an email with a header like so:
Date: Wed, 19 Aug 2015 13:00:46 -0400 From: Administrators <admin@mail.pos.net> Reply-To: helpdesk@mail.pos.net To: : , : Subject: [admin] Test email
to something like this:
Date: Wed, 19 Aug 2015 13:00:46 -0400 From: helpdesk@mail.pos.net Reply-To: helpdesk@mail.pos.net To: : , : Subject: [admin] Test email
I'm using Mailman version 2.1.12 with Postfix (version 2.6.6-6.el6_5 provided by RHEL/CentOS package) as the MTA.
I have tried setting up /etc/postfix/generic file to munge the address, but no setting that I make has made any difference, things continue to show a 'From:' address as admin@mail.pos.net and inside the headers I see that the 'Sender:' line looks like this: Sender: admin-bounces@mail.pos.net
I've tried the following entries in the /etc/postfix/generic file:
admin@mail.pos.net helpdesk@mail.pos.net admin-bounces@mail.pos.net helpdesk@mail.pos.net admin-owner@mail.pos.net helpdesk@mail.pos.net admin@localhost.pos.net helpdesk@mail.pos.net admin-bounces@localhost.pos.net helpdesk@mail.pos.net admin-owner@localhost.pos.net helpdesk@mail.pos.net admin helpdesk@mail.pos.net
I *have* added 'smtp_generic_maps = hash:/etc/postfix/generic' to the /etc/postfix/main.cf file and I *have* done 'postmap hash:/etc/postfix/generic' after adding/changing entries and I *have* done /etc/init.d/postfix restart after making the changes.
However, the 'From:' and 'Sender:' remain the same when I receive an email from the list, no matter what entries are added to to the generic table.
This is all being done so that even if someone chooses to ignore the 'Reply-to' address if they reply to a posted message, it will go to this help desk email address and not to the group.
Thanks in advance for your help.
Tony

On 08/19/2015 11:31 AM, Tony Stocker wrote:
mailman-users@python.org is not the best resource for generic Postfix questions. I suggest you join the postfix-users@postfix.org list and post there. See <http://www.postfix.org/lists.html>.
That said, I think you can accomplish what you're trying to do with sender_canonical_maps instead of smtp_generic_maps.
Also note, if you rewrite the -bounces address, you will break Mailman's automated bounce processing and the helpdesk will have to deal with bouncing addresses manually.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 08/19/2015 11:31 AM, Tony Stocker wrote:
mailman-users@python.org is not the best resource for generic Postfix questions. I suggest you join the postfix-users@postfix.org list and post there. See <http://www.postfix.org/lists.html>.
That said, I think you can accomplish what you're trying to do with sender_canonical_maps instead of smtp_generic_maps.
Also note, if you rewrite the -bounces address, you will break Mailman's automated bounce processing and the helpdesk will have to deal with bouncing addresses manually.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Tony Stocker