On Sun, Aug 30, 2020 at 05:58:01PM +0100, Nick wrote:

> I would like to have a postconf(5) parameter such as
> "local_via_submission = yes" which changes that path to something like
> 
>   sendmail(1) -> postdrop(1) -> maildrop -> pickup(8) -> smtpd(8) ->
>   cleanup(8) -> incoming

Sorry, that's not possible, but see:

    http://www.postfix.org/MULTI_INSTANCE_README.html
    http://www.postfix.org/MULTI_INSTANCE_README.html#split

for a way to separate local submission from outbound mail processing,
even on an SMTP relay.  Keep in mind however, that SASL authentication
of each user will not be possible, the user is long gone by the time
the null-client instance is using SMTP to forward the mail.

All you can do is parse the "uid" out of the "Received:" header added by
"pickup", and apply whatever policy is appropriate to the rest of the
message.

-- 
    Viktor.

Reply via email to