> On May 11, 2017, at 11:55 AM, Andrew Beverley <[email protected]> wrote:
>
> I've tried setting relay_domains and
> relay_recipient_maps accordingly, but what I failed to mention in my
> first email is that the domain in question is a virtual domain. As
> such, emails that I would like forwarded (in relay_domains) are being
> rejected with "User unknown in virtual alias table".
Remove the domain from "virtual_alias_domains" and add it to "relay_domains",
then add a suitable transport table entry to route recipients that were not
rewritten to a suitable relay nexthop.
relay_domains = example.com
relay_recipient_maps = ... matches any mailboxes you want to accept that
... are not already listed in virtual_alias_maps
transport:
example.com smtp:[overthere.example.com]
> Is there a way that I can get what would normally be a virtual domain
> catch-all to be relayed to another host?
See above. However, not sure what you mean by "catch-all", if you want
some addresses to be handed off, don't use a catch-all to divert them.
--
Viktor.