On 18/10/20 7:10 am, IL Ka wrote:
Thank you all. This is how I fixed it (after Bill Cole's email): I
needed to substitute envelope (MAIL FROM:) to match my address, but
the message (along with it's headers) shouldn't be touched.
sender_canonical_classes = envelope_sender # Only change envelope,
not body
sender_canonical_maps = regexp:/etc/postfix/sender_canonical_map # In
this file I change envelope
address to my domain.
Google is now perfectly happy with both SPF and DKIM.
Shouldn't we add this recipe to the official postfix documentation?
Don't forget about bounce notifications. So rather than rewriting
addresses using sender_canonical_maps, you might be better off looking
into Sender Rewriting Scheme (SRS)?
Nick.