Re: Delivering some domain's email locally and some via relay transport

2020-06-11 Thread julio covolato
Em 11/06/2020 06:58, Andrew Beverley escreveu: Dear all, I have a domain, for which I would like to deliver some email locally (as a virtual domain) and some email via a relay (using a transport map). The differentiation is based on the recipient address. For example, I would like us...@example

Re: Delivering some domain's email locally and some via relay transport

2020-06-11 Thread Viktor Dukhovni
On Thu, Jun 11, 2020 at 01:48:17PM -0400, Wietse Venema wrote: > > 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 > t

Re: Delivering some domain's email locally and some via relay transport

2020-06-11 Thread Wietse Venema
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

Re: Delivering some domain's email locally and some via relay transport

2020-06-11 Thread 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. Many thanks,

Re: Delivering some domain's email locally and some via relay transport

2020-06-11 Thread Wietse Venema
If most recipients are remote. then use relay_domains and list the remote recipients in relay_recipient_maps. virtual_alias_maps: us...@example.com user1@localhost relay_recipient_maps: us...@example.com whatever transport_maps: example.com: [host.example.com] and relay_domain

Re: Delivering some domain's email locally and some via relay transport

2020-06-11 Thread Wietse Venema
Andrew Beverley: > Thanks for the reply Wietse, > > > > I have a domain, for which I would like to deliver some email locally > > > (as a virtual domain) and some email via a relay (using a transport > > > map). The differentiation is based on the recipient address. > > > > Assuming that most rec

Re: Delivering some domain's email locally and some via relay transport

2020-06-11 Thread Andrew Beverley
Thanks for the reply Wietse, > > I have a domain, for which I would like to deliver some email locally > > (as a virtual domain) and some email via a relay (using a transport > > map). The differentiation is based on the recipient address. > > Assuming that most recipients are local, use virtual_

Re: Delivering some domain's email locally and some via relay transport

2020-06-11 Thread Wietse Venema
Andrew Beverley: > Dear all, > > I have a domain, for which I would like to deliver some email locally > (as a virtual domain) and some email via a relay (using a transport > map). The differentiation is based on the recipient address. Assuming that most recipients are local, use virtual_alias_do

Delivering some domain's email locally and some via relay transport

2020-06-11 Thread Andrew Beverley
Dear all, I have a domain, for which I would like to deliver some email locally (as a virtual domain) and some email via a relay (using a transport map). The differentiation is based on the recipient address. For example, I would like us...@example.com to be delivered locally, but to have email f