On Mon, Jul 08, 2024 at 08:34:57PM -0400, Robert Fuhrer via Postfix-users wrote:
> Hi John,
> 
> I've already got that dovecot LDA config line in master.cf (it's how
> delivery for the one login user is set up), though without the "-f"
> flag. I guess the LDA is pulling the "from" address from the email
> headers.

That not a good idea, pass the real envelope address to the delivery
agent.

> I think the right thing for me to do is remove unix:passwd.byname from
> local_recipient_maps, and add instead a distinct hand-crafted map for
> all local users (login and non-login), so I don't pollute the map with
> extraneous system-related users.

Sure, but typically you'd alias some of those system users (that run
cron jobs that may trigger email error reports) to a human operator.

> Also, I should empty the home_mailbox and mailbox_command settings (as
> you've done), and let the Dovecot LDA handle authentication and
> locating the user's Maildir.

Note "authentication" is not something the LDA need be concerned with,
that's IMAP.  The LDA just has to locate the mailbox, and deliver the
mail there with as the right user/group.

> (I was confused about how home_mailbox
> was used; I thought it might have been passed by PostFix into the
> Dovecot LDA,

There's no mechanism for that.  The LDA is just given the message
envelope and content.

-- 
    Viktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to