On Mon, Aug 21, 2017 at 03:00:15PM +0000, Jiang Wen Dong wrote:
>
> Finally ,I found generic table does not work, but canonical table works fine:
> local_header_rewrite_clients = static:all    ### This config is important.
> I should have be patient to read about Postfix address rewriting.
> sender_canonical_maps = regexp:/etc/postfix/canonical_sender

I do not recommend the use of sender_canonical_maps, the problem
with this is that there is no good way to distiguish between sender
headers and recipient headers.  A sender may include himself in a
"Cc:" header, which should be rewritten just like the "From:"
header, but is not with "sender_canonical_maps".

Instead, one would typically rewrite all headers and the envelope
sender, leaving only the envelope recipients unmodified if those
should be left alone.

    canonical_maps = ...
    canonical_classes = envelope_sender, header_sender, header_recipient

Much of course depends on what you're trying to achieve with
"sender-only" rewriting.  Good luck.

-- 
        Viktor.

Reply via email to