On Sun, Nov 20, 2022 at 08:42:41PM +0100, Jaroslaw Rafa wrote:

> > The default setting is:
> > 
> >     $ postconf -d home_mailbox
> >     home_mailbox =
> 
> I *want* to have mail stored in ~/Maildir (but only for actual human users
> of course, not for system ones). Can I achieve that without setting
> home_mailbox ?

You could, for example, reserve local(8) delivery for just selected
users via:

  main.cf:
    indexed = ${default_database_type}:${config_directory}/
    mydestination =
    transport_maps = ${indexed}transport
    virtual_alias_maps = ${indexed}virtual
    virtual_alias_domains = $myorigin

  transport:
    local.invalid   local:dummy

  virtual:
    # @$myorigin is optional, all others explicit
    curly   curly@local.invalid
    larry   larry@local.invalid
    moe     joe@local.invalid
    ...

Only addresses aliased to "local.invalid" get local delivery.  Also
reject inbound bound where the sender address is in the "invalid"
TLD.  "reject_unknown_sender_domain" is sufficient for that.

-- 
    Viktor.

Reply via email to