On 3/22/2021 7:16 PM, Simon Wilson wrote:
I run multiple local domains, and for the first time need to have
the same username in two of them go to different local accounts.
I.e. my son has a local (LDAP) account "dom". Mail sent to
dom@his-personal-domain reaches that mailbox fine. He now has a
business domain, and I have setup a LDAP account dom.w, so
dom.w@his-business-domain works fine. What I want to be able to do
is rewrite dom@his-business-domain when it is received so it
delivers to dom.w@his-business-domain.
From what I read at http://www.postfix.org/aliases.5.html I don't
think I can do this with aliases directly, as the "name" component
of the alias line is a local address with no domain part. What I
need to have happen (written in alias-style format) is this:
dom@his-personal-domain: dom # this works fine already
dom.w@his-business-domain: dom.w # this works fine already
dom@his-business-domain: dom.w # this is the bit I want to add
How do I achieve this with rewriting or aliasing, i.e. without
having to move to virtual domains?
Simon
You can use virtual_alias_maps for this (NOT virtual_alias_domains).
# virtual_alias
dom@business-domain dom.w@business-domain
-- Noel Jones