Peer Heinlein:
> Am 17.04.2013 23:31, schrieb Wietse Venema:
> > Peer Heinlein:
> >> local_header_rewrite_clients = permit
> > 
> > I don't recall that "permit" is valid in this context.
> 
> static:all hasn't worked too.

It rewrites both envelope sender and header sender, as expected.
Perhaps you have another address rewriting stage down-stream
of the cleanup server.

        Wietse

$ postconf header_checks sender_canonical_maps sender_canonical_classes
header_checks = static:hold
sender_canonical_maps = hash:/tmp/sender_canonical
sender_canonical_classes = envelope_sender, header_sender
$ postmap -s hash:/tmp/sender_canonical
f...@example.com b...@example.com
$ sendmail -f f...@example.com <<EOF whatever
? From: FOO <f...@example.com>
? To: Whatever <whatever>
? 
? blah blah
EOF
$ mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
3F6BCAC2958!     303 Wed Apr 17 19:23:13  b...@example.com
                                         whate...@porcupine.org

-- 0 Kbytes in 1 Request.
$ postcat -q 3F6BCAC2958
*** ENVELOPE RECORDS hold/3F6BCAC2958 ***
...
named_attribute: rewrite_context=local
...
sender: b...@example.com
...
recipient: whate...@porcupine.org
*** MESSAGE CONTENTS hold/3F6BCAC2958 ***
Received: by hades.porcupine.org (Postfix, from userid 0)
        id 3F6BCAC2958; Wed, 17 Apr 2013 19:23:13 -0400 (EDT)
From: FOO <b...@example.com>
To: Whatever <whate...@porcupine.org>
Message-Id: <20130417232313.3f6bcac2...@hades.porcupine.org>
Date: Wed, 17 Apr 2013 19:23:13 -0400 (EDT)

blah blah
*** HEADER EXTRACTED hold/3F6BCAC2958 ***
*** MESSAGE FILE END hold/3F6BCAC2958 ***

Reply via email to