> On Feb 17, 2017, at 1:04 PM, Marek Kozlowski <[email protected]>
> wrote:
>
> I'm searching for a possibbility of rewriting (senders') addresses only
> for all mail originating from my system - no matter if it is local or
> remote delivery. I mean: rewriting sender's address for mail from SASL
> authenticated users and leaving as is for all other mail. May I ask for
> some tips?
Apply suitable canonical_maps with submission via port 587. Do not offer
SASL authentication with the port 25 inbound MX service.
You can use a separate Postfix instance for the MSA, or, alternatively,
just a separate master.cf smtpd(8) service on port 587 along with a
"-o cleanup_service_name=submission_cleanup" setting and a additional
cleanup(8) that has "-o canonical_maps=$submission_canonical_maps",
optionally the same "-o canonical_maps" override could also be specified
for the submission smtpd(8).
--
Viktor.