On Tue, Apr 11, 2023 at 12:49:18AM +0800, tom--- via Postfix-users wrote:

> > You can create virtual(5) aliases for any address you want, with
> > any syntactically valid rewrite target(s) of your choice.
> > 
> > Neither the LHS nor the RHS addresses need be in domains under your
> > control.  The virtual(5) alias table rewrites **all** recipient
> > addresses.
> 
> Thank you. So what’s the usage of virtual alias domains?

Have you read:

    https://www.postfix.org/ADDRESS_CLASS_README.html

    The virtual alias domain class.

    Purpose: hosted domains where each recipient address is aliased to an
    address in a different domain, for example, a local UNIX system account
    or a remote address. A virtual alias example is given in the
    VIRTUAL_README file.

    Domain names are listed in virtual_alias_domains. The default value is
    $virtual_alias_maps for Postfix 1.1 compatibility.

    Valid recipient addresses are listed with the virtual_alias_maps
    parameter. The Postfix SMTP server rejects invalid recipients with "User
    unknown in virtual alias table". The default value is $virtual_maps for
    Postfix 1.1 compatibility.

    There is no mail delivery transport parameter. Every address must be
    aliased to an address in some other domain.

Which also links to:

    https://www.postfix.org/VIRTUAL_README.html#canonical

Perhaps implicit in the above references is that Postfix accepts
incoming mail for (valid) recipients in virtual_alias_domains, even when
the client is not listed in mynetworks or SASL authenticated, ...

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

Reply via email to