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_domains and virtual_alias_maps, some recipients resolving to a local email address and some resolving remotely. us...@example.com user1@localhost us...@example.com user2@host.other.example > For example, I would like us...@example.com to be delivered locally, > but to have email for us...@example.com relayed to another server using a > transport map. No transport map should be needed if most recipients are local. > I have this working, by listing the domain in both > virtual_alias_domains and relay_domains, and setting up the required > virtual addresses and transport rules. However, I get the warning: > > warning: do not list domain example.com in BOTH virtual_alias_domains > and relay_domains Pick one. - If most recipients are local, then use virtual_alias_domains as shown above. - If most recipients are remote. then use relay_domains and list the remote recipients in relay_recipient_maps. Wietse > Is what I would like to do possible as an official configuration? Can I > safely ignore the warnings? > > Postfix version 3.4.8 > > I am doing most of the above configuration using mysql maps. > > Many thanks, > > Andy >