On Wed, Mar 06, 2019 at 05:59:55PM +0100, Matteo Cazzador wrote:

> I define in mydestination a domain like example.com
> 
> Then in transport i do this:
> 
>       virtual...@example.com fax:localhost
> 
> I've a problem when I receive a mail for "t...@example.com"
> 
> "User unknown in local recipient table" and this is correct too but
> 
> Is there a solution to forward to another smtp server when I receive 
> mail for "t...@example.com" to avoid "User unknown in local recipient table".

It sounds like you want to configure a domain in which maiil for
some users is delivered locally, while mail for others is relayed.
Typically, you'd configure the domain for remote delivery by default,
and rewrite the recipients that need local delivery.

    http://www.postfix.org/STANDARD_CONFIGURATION_README.html#some_local
    http://www.postfix.org/ADDRESS_CLASS_README.html
    http://www.postfix.org/postconf.5.html#local_recipient_maps
    http://www.postfix.org/postconf.5.html#relay_recipient_maps
    http://www.postfix.org/postconf.5.html#parent_domain_matches_subdomains

Note that "virtual_alias_maps" applies to all recipients, not just
those in virtual_alias_domains.

-- 
        Viktor.

Reply via email to