Andrew Beverley:
> On Thu, 11 Jun 2020 13:16:25 -0400 (EDT) wie...@porcupine.org wrote:
> > Please look at  the second half of my response?
> 
> I discounted the other option in the response, as at the moment most
> recipients are local. Thank you for the other follow up email though;
> I will try that shortly.

Third option:

All recipients in virtual_alias_maps:

/etc/postfix/main.cf:
    virtual_alias_maps = hash:/etc/postfix/virtual
    # example.com in virtual_alias_domains NOT relay_domains
    virtual_alias_domains = example.com
    transport_maps = hash:/etc/postfix/transport

/etc/postfix/virtual:
   # local adresses for local recipients
    us...@example.com   ..local address...
    # 1-1 aliases for remote recipients
    us...@example.com   us...@example.com
    us...@example.com   us...@example.com

Remote recipients in transport_maps:

/etc/postfix/transport:
   # The [] is needed to suppress MX lookups which would cause mail loops.
    us...@example.com   smtp:[host.example.com]
    us...@example.com   smtp:[host.example.com]

        Wietse

Reply via email to