On Tue, Aug 16, 2022 at 07:17:39AM -0400, Wietse Venema wrote:
> Postfix can do that (bit see suggestion at the end).
>
> /etc/postfix/main.cf:
> virtual_alias_maps = regexp:/etc/postfix/trap.pcre
>
> /etc/postfix/trap.pcre:
> .+ [email protected]
>
> Instead of .+ you can make it more specific as needed.
And to accept *all* mail:
main.cf:
smtpd_relay_restrictions = check_client_access static:OK, reject
virtual_alias_maps = static:[email protected]
# Define pot.invalid as either a local or virtual mailbox domain
# or just configure a suitable pipe(8) transport. Set up TLS, etc.
...
--
Viktor.