On 10 Jun 2014, at 13:02, Eero Volotinen <eero.voloti...@iki.fi> wrote:
> I need to rewrite incoming headers for one email address, how to do this? > > The main reason to do this is jira that accepts email only from one defined > emails > and I need to import mailinglist mails to that system. > > for example I need to rewrite centos mailing-list from header to from > my@email address so that I can import mail to jira system .. > > yes, really stupid but way to do this but.. If you are importing archived mail, just alter it outside Postfix, drop it in the pickup queue, and let it run its course? This would work fine for newly incoming messages, too. Pipe it to a script that does this for you, a script that will pipe it into JIRA for example, in the format it expects. Generally easier, and more reliable, than solving it at the header rewriting stage. Mvg, Joni