postfix-users March 2011 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Replace Message-Id with header_checks

Re: Replace Message-Id with header_checks

From: Matthias Andree <matthias.andree_at_nospam>
Date: Wed Mar 23 2011 - 13:26:50 GMT
To: postfix-users@postfix.org

Am 23.03.2011 14:19, schrieb Andrea Di Mario:
> Hi, I've a relay server that receives emails from some other. For some
> of these servers, that have a particular prefix, i wrote some
> header_checks' rules to change header, now i want rewrite the
> Message-Id header and i wrote:
>
> if /^Message-Id: <(.*)@prefix.*\.domain\.tld>$/ REPLACE Message-Id:
> <$1@domain.tld>
> endif
>
> It doesn't work. Could you tell me some suggestions?

Don't mess with Message-IDs. They are supposed to be unique, and if
that's not the case, messages may get discarded as duplicates, and
nobody ever knows.