Le 10/12/2010 21:23, thussvm a écrit :

Because of a domain move we're doing, we're trying to add a reply-to header
in postfix when no reply-to header is already present. The rule we're using
is:

!/^Reply-To/ prepend Reply-To: "Support"<supp...@ourdomain.org>

However, since the check is being applied to each header line we get a bunch
of reply-to's prepended instead of just one. Is there a regex we can use to
say:

If no reply-to header exists anywhere in the headers
    then prepend one reply-to header



no, you can't. postfix header_checks work on one header at a time. so there's no way to have a rule that works on all the headers. and in particular, there's no way to specify a rule that says if "$header doesn't exists".

you need to tell us a little about your problem more so we can help.

Reply via email to