-----Original Message----- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Ralf Hildebrandt Sent: Thursday, January 28, 2010 3:18 PM To: postfix-users@postfix.org Subject: Re: Add Header
* AMP Admin <ad...@ampprod.com>: > I'm trying to add ONE custom string to the header using the following but > the first one adds it multiple times and the second doesn't work at all. > Thanks for your help! > > > > header_checks = regexp:/etc/postfix/header_checks > > > > WORKS BUT ADDS IT MULTIPLE TIMES: > > /^/ PREPEND MyString > > > > DOES NOT WORK: > > /^DomainKey-Signature:$/ PREPEND MyString /^From:/ PREPEND MyString Please note: When prepending text before a message header line, the prepended text must begin with a valid message header label. -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebra...@charite.de | http://www.charite.de what would a valid message header label be? I was going to use Message-ID: but then I read the following: Message headers added by the cleanup(8) daemon itself are excluded from inspection. Examples of such message headers are From:, To:, Message-ID:, Date:.