On 2021-04-09 21:08:08 (+0800), Wietse Venema wrote:
Philip Paeps:
On mx1.freebsd.org, we have a configuration that (vastly simplified)
looks something like this:
virtual_maps = hash:/usr/local/etc/postfix/virtual
transport_maps = hash:/usr/local/etc/postfix/transport
We have freebsd.org configured as a Postfix-style virtual domain
virtual:
freebsd.org virtual
There are certain addresses we'd like to catch on mx1 though, before
virtual processing takes place.
e.g. in transport we have
[elided]@freebsd.org: error:5.2.1 User has left this world
However, mail always hits virtual and the transport map appears to be
ignored.
By definition, a recipient address in a virtual alias domain is
rewritten to a recipient address in a different domain. Postfix never
delivers mail "to" a virtual alias domain, which explains why there
is no query for it in the transport map.
To reject mail for a recipient address in a virtual alias domain,
delete the recipient from the virtual alias mapping.
I knew it had to be something simple ... thanks for the explanation,
Wietse.
Time to look closely at the machinery that generates our virtual table.
What fun! :)
Best wishes.
Philip
--
Philip Paeps
Senior Reality Engineer
Alternative Enterprises